Re: [Samba] 8.3 short names question
Dave Abouav pisze: I have a Samba server installed on FreeBSD (latest releases of both), and an old Windows application that uses the 8.3 short names in directory listings. I have the problem that the 8.3 file names returned are quite strange, and hardly resemble the originals. Some examples: Hy Energy - HIl81N~K 5700_files - 5s2IOA~P KWJ ENG - KA7YD3_N CPS-100 - (blank) I used an Ethereal trace to verify that these are indeed the short file names coming from the server (in the Trans2 FindFirst2 response). This seems to affect both directory names and files. I have no problems with long file names. The files were originally created on a Windows PC, and were then copied to my FreeBSD machine by putting them onto an external USB hard drive, and then mounting this hard drive on the FreeBSD box. Any idea why the 8.3 names are so weird? Is this typical for Samba now? I can open the files no problem, but it will be a pain for my engineer to figure out which file is which. Thanks, Dave HI. I have exactly the same problem, but i use samba with linux Any infos are welcome ! Irens. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Cross-compiling for ARM with 3.0.24
Hello, change this in your configure line: --host=i686 --target=arm-linux This fixes your error (remove the --build=...). BTW: I pre-set the following variables: export samba_cv_HAVE_MEMORY_KEYTAB=set export samba_cv_USE_SETEUID=set export samba_cv_HAVE_WRFILE_KEYTAB=set export ac_cv_path_KRB5_CONFIG=${KERBEROS}/tools/krb5-config export ac_cv_path_CUPS_CONFIG=${CUPS}/cups-config And fix the config.h: CFG=include/config.h if test -f $CFG ; then echo #define HAVE_GETTIMEOFDAY_TZ 1 $CFG echo #define USE_SETEUID 1 $CFG echo #define HAVE_IFACE_IFCONF 1$CFG fi If you need winbind, you might have to add the nsswitch/winbind_nss_linux.o - object file to the WINBIND_NSS_OBJ in the Makefile. Mitch Trope schrieb: Hello all, I am attempting to cross-compile Samba 3.0.24 for the ARM platform using on an Ubuntu Dapper box using arm-linux-gcc 3.4.0. I am using the following script to call configure: #!/bin/bash ac_cv_func_prctl=no linux_getgrouplist_ok=no ./configure --without-krb5 --without-ldap --without-ads --disable-cups --without-swat --prefix=/home/tropem/samba-build --host=arm-linux --build=i386-linux The console error is: checking for __open64... yes checking for creat64... yes checking for prctl... yes configure: error: cannot run test program while cross compiling See `config.log' for more details. [...] Thanks, Mitch Trope Bye, Martin -- Martin Zielinski [EMAIL PROTECTED] Software Development SEH Computertechnik GmbH www.seh.de -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] ntlogon.conf
On Mon, Feb 19, 2007 at 02:16:17AM -0800, [EMAIL PROTECTED] wrote: Hey Everyone... I'm hoping this is an easy one. I am using the ntlogon scripts that come with the samba examples (ntlogon.py and ntlogon.conf). It's working fine, except for one thing. I'm trying to set entries up for the groups Domain Admins or other groups with spaces in the name. The example that comes with it shows ... [Group-admins] I tried the following... [Group-Domain Admins] [Group-Domain Admins] but neither seemed to work. Anyone know to get this working correctly for groups which have spaces in the name? I write small c (yacc) program and use in production long time. ;) master file example for my university (a-la ntlogon.conf): # include statement := '.' included text # map statement := drive_letter '=' server share '{' allowed_list '}' ';' # allowed_list := [!] { user | '@' group | '*' } [ ',' ... ] . call stage1.bat ; r = matfac studgroup { @Domain Admins, @Students Supervisor, @students }; s = matfac students { @Domain Admins, @Students Supervisor }; t = matfac tools ; u = matfac geomgroup { @Domain Admins, @GeomDepGroup }; v = matfac vmipgroup { @Domain Admins, @VmipDepGroup }; x = matfac msdfs { ! @students }; y = matfac homes { swp, ! * }; . call stage2.bat ; /swp -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Mapping linux directories
Hi, How do I go about creating user specified drives on Win2k and XP clients i.e. mapping linux directories to different users. I am wondering if you could specify more then one logon drive = X thing. Could it be done without running logon.bat on client machines? Ned -- View this message in context: http://www.nabble.com/Mapping-linux-directories-tf3299673.html#a9178915 Sent from the Samba - General mailing list archive at Nabble.com. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba3 ldap password change
Hello to all, I got samba3 PDC working with ldap. But I' m still wondering how to set important things about the users passwords. The first thing when a user login the first time should be to change his/her password? Where do I set when the passwords expire and how do I set it to 60 days? I do not work mith Microsoft's usrmgr because of Vista clients.I look at my samba/ldap with LDAP Admin. Does someone manage this point with this tool? greetings Daniel -- Feel free - 5 GB Mailbox, 50 FreeSMS/Monat ... Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] 8.3 short names question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave Abouav wrote: Any idea why the 8.3 names are so weird? Is this typical for Samba now? It is by design.You might want to look at the mangling method option in smb.conf(5). cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF5DJuIR7qMdg1EfYRAjcvAJ9eFe7GjECNu0nkP0uyx5wTcB6jAACdHtHT bzlkq3aob5m464Z1Vtd4Dkk= =keNJ -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Duplicate group mappings - which ones to delete?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul Smith wrote: I'll have a play with the net groupmap modify and net groupmap delete commands after hours and will post back my findings. Thanks for your help. I'm pretty behind on email so I'm just scanning, but you know about 'net groupmap cleanup' right ? If I undestand the original problem, you are seeing duplicate entries for some mappings which sounds like you domain SID has been changed at some point. cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF5DMFIR7qMdg1EfYRAijlAKDLsKBJYhQrOVxgB5mbbhuomSbhrACg4lFB 2gL+7eT1/l2aWqRrQ5Qe4Zc= =yEHT -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Move a Samba PDC from Solaris to Linux
Hello, we want to move our Samba PDC controller from a Solaris (2.8) machine to a Linux (CentOS4.4) machine. We have the following plan (on both servers is Samba installed. We use the passdb-backend smbpasswd): 1) Stop Samba on the Solaris machine 2) Copy all machine accounts from Solaris /etc/passwd to Linux /etc/passwd 3) Copy the following files from Solaris to Linux: samba/private/* samba/conf/smb.conf samba/var/locks/*.tdb 4) Poweroff the Solaris machine 5) Change the name of the Linux machine (to the name of the Solaris machine) 6) Start Samba on the Linux machine Will that work? Are the tdb files platform independent? After the move are all Windows clients still in the windows-domain? Thanks. Best regards, Ralf -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] vista: error accessing profile, xp works (solved)
Solved: host msdfs = no is needed. Rainer Rainer Traut schrieb: Hi, I have problems with our fist Vista machine to create/access the server profile. The machine has joined the domain without hitch. When logging in I am informed by vista the userprofile could not be retrieved. Logging in the user a XP machine works perfect. Server profile is created with xp but not with vista. The user is allowed to create a new dir in the profile folder. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] vista: error accessing profile, xp works (solved)
On Tue, Feb 27, 2007 at 03:23:48PM +0100, Rainer Traut wrote: Solved: host msdfs = no is needed. Really? msdfs root = no on the profile share is not enough? I'm asking because I've changed the msdfs root default to no, and if Vista really barfs at host msdfs = yes then we might have to reconsider. Volker pgp1eJirct7Ik.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Move a Samba PDC from Solaris to Linux
Hello, we want to move our Samba PDC controller from a Solaris (2.8) machine to a Linux (CentOS4.4) machine. We have the following plan (on both servers is Samba installed. We use the passdb-backend smbpasswd): 1) Stop Samba on the Solaris machine 2) Copy all machine accounts from Solaris /etc/passwd to Linux /etc/ passwd 3) Copy the following files from Solaris to Linux: samba/private/* samba/conf/smb.conf samba/var/locks/*.tdb 4) Poweroff the Solaris machine 5) Change the name of the Linux machine (to the name of the Solaris machine) 6) Start Samba on the Linux machine Will that work? Are the tdb files platform independent? After the move are all Windows clients still in the windows-domain? I don't know if the tdb files are platform independent(I assume they are, referring to http://lists.samba.org/archive/samba-technical/2004- March/034778.html), but with the migration described above, you can go back anyway. I'd suggest you test your new server with one or several clients, and if it fails, go back. Of course, that might require a scheduled downtime, but judging by the migration plan described above, you'll need that anyway... Cheers, Roeme Thanks. Best regards, Ralf -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba PGP.sig Description: This is a digitally signed message part -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] How to change this status?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On the machine tribal-sfn2, i have had a normal and useable lan, (after some difficulties) Now i have: [EMAIL PROTECTED]:~ smbclient -L//tribal-sfn2 Password: Domain=[TRIBAL-SFN2] OS=[Unix] Server=[Samba 3.0.23d-19.2-1179-SUSE-SL10.2] tree connect failed: NT_STATUS_BAD_NETWORK_NAME [EMAIL PROTECTED]:~ Yesterday after upgrading a machine to SuSE 10.3 i get the same: [EMAIL PROTECTED]:~ smbclient -L//ibm-sfn4 Password: Domain=[IBM-SFN4] OS=[Unix] Server=[Samba 3.0.24-6-1173-SUSE-SL10.3] tree connect failed: NT_STATUS_BAD_NETWORK_NAME [EMAIL PROTECTED]:~ How to solve this? - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.2-34-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.2 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFF5EV4X5/X5X6LpDgRAp+pAKC77qQn0bnG5PaC5X10lXLBZw57ZwCeP3Fc X0x/7B9sNrwQEBouDr5hea8= =rWjk -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Duplicate group mappings - which ones to delete?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 CC'ing back to list for archives. Paul Smith wrote: As you can see, everything looks fine except from the two parts group mappings and the users mapping: parts (S-1-5-21-3597458131-155160113-1223051555-132073) - parts parts (S-1-5-21-3597458131-155160113-1223051555-132074) - parts users (S-1-5-21-3597458131-155160113-1223051555-132075) - users From what I remember the net groupmap cleanup wouldn't help me here as these are legitimate, but incorrect, mappings. I think I'm happy to delete the users mapping but don't quite know how to proceed with the parts duplicates. Yup. You are correct. 'net groupmap cleanup' won't help. but a $ net groupmap delete \ sid=S-1-5-21-3597458131-155160113-1223051555-132074 Should do the trick. cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF5Eg7IR7qMdg1EfYRApf0AJ0WsbGPfmd8pWJP9L8FzkB0W9I8bwCcDhuM 0H6V0nXqe2Ilm8/FV45IO/4= =fzX6 -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to change this status?
On Tue, Feb 27, 2007 at 03:51:36PM +0100, M9. wrote: Now i have: [EMAIL PROTECTED]:~ smbclient -L//tribal-sfn2 Remove the //. Volker pgpS1U26bRWQl.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to change this status?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Volker Lendecke schreef: On Tue, Feb 27, 2007 at 03:51:36PM +0100, M9. wrote: Now i have: [EMAIL PROTECTED]:~ smbclient -L//tribal-sfn2 Remove the //. Volker [EMAIL PROTECTED]:~ smbclient -L tribal-sfn2 Password: Domain=[TRIBAL-SFN2] OS=[Unix] Server=[Samba 3.0.23d-19.2-1179-SUSE-SL10.2] tree connect failed: NT_STATUS_BAD_NETWORK_NAME [EMAIL PROTECTED]:~ What i mean is that i can not get acces to the shares from tribal-sfn2 because of: tree connect failed: NT_STATUS_BAD_NETWORK_NAME - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.2-34-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.2 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFF5EyWX5/X5X6LpDgRAlnhAKCIqvlCdlqsTqj99F41FU9H0O0ISQCeOzLd pDQTv0hJeXJJcqG7k03JTd0= =M4EU -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba Domain Authentication
Hi, I am trying to create shares that are accessible thru Domain Authentication. I am able to join the domain thru net ads join -U administrator All of the following commands work: net ads join -U administrator testparm net ads info wbinfo -u wbinfo -g Everything seems to be working ok and I have created a couple of test shares. However, if I issue a ' getent passwd' command it indicates the password authentication still comes from the local machine. In addition, none of the shares work not even the public which I think should be accesable by anyone. Would someone mind looking my samba.conf over and provide feedback? # #=== Global Settings = [global] # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH workgroup = MYDOMAIN_SHORT_NAME netbios name = enterprise # server string is the equivalent of the NT Description field server string = File Server # Security mode. Defines in which mode Samba will operate. Possible # values are share, user, server, domain and ads. Most people will want # user level security. See the Samba-HOWTO-Collection for details. security = ads encrypt passwords = yes # This option is important for security. It allows you to restrict # connections to machines which are on your local network. The # following example restricts access to two C class networks and # the loopback interface. For more examples of the syntax see # the smb.conf man page ; hosts allow = 192.168.1. 192.168.2. 127. # If you want to automatically load your printer list rather # than setting them up individually then you'll need this load printers = yes # you may wish to override the location of the printcap file ; printcap name = /etc/printcap # on SystemV system setting printcap name to lpstat should allow # you to automatically obtain a printer list from the SystemV spool # system ; printcap name = lpstat # It should not be necessary to specify the print system type unless # it is non-standard. Currently supported print systems include: # bsd, cups, sysv, plp, lprng, aix, hpux, qnx ; printing = cups # This option tells cups that the data has already been rasterized cups options = raw # Uncomment this if you want a guest account, you must add this to /etc/passwd # otherwise the user nobody is used ; guest account = pcguest # this tells Samba to use a separate log file for each machine # that connects log file = /var/log/samba/%m.log # Put a capping on the size of the log files (in Kb). max log size = 50 # Use password server option only with security = server # The argument list may include: # password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name] # or to auto-locate the domain controller/s # password server = * ; password server = NT-Server-Name # Use the realm option only with security = ads # Specifies the Active Directory realm the host is part of realm = HQ.MYDOMAIN.NET # Backend to store user information in. New installations should # use either tdbsam or ldapsam. smbpasswd is available for backwards # compatibility. tdbsam requires no further configuration. ; passdb backend = tdbsam # Using the following line enables you to customise your configuration # on a per machine basis. The %m gets replaced with the netbios name # of the machine that is connecting. # Note: Consider carefully the location in the configuration file of # this line. The included file is read at that point. ; include = /usr/local/samba/lib/smb.conf.%m # Configure Samba to use multiple interfaces # If you have multiple network interfaces then you must list them # here. See the man page for details. ; interfaces = 192.168.12.2/24 192.168.13.2/24 # Browser Control Options: # set local master to no if you don't want Samba to become a master # browser on your network. Otherwise the normal election rules apply ; local master = no # OS Level determines the precedence of this server in master browser # elections. The default value should be reasonable ; os level = 33 # Domain Master specifies Samba to be the Domain Master Browser. This # allows Samba to collate browse lists between subnets. Don't use this # if you already have a Windows NT domain controller doing this job ; domain master = yes # Preferred Master causes Samba to force a local browser election on startup # and gives it a slightly higher chance of winning the election ; preferred master = yes # Enable this if you want Samba to be a domain logon server for # Windows95 workstations. ; domain logons = yes # if you enable domain logons then you may want a per-machine or # per user logon script # run a specific logon batch file per workstation (machine) ; logon script = %m.bat # run a specific logon batch file per username ; logon script = %U.bat # Where to store roving profiles (only for Win95 and WinNT) #%L substitutes for this servers netbios name, %U is username #You must
Re: [Samba] How to change this status?
On Tue, Feb 27, 2007 at 04:21:59PM +0100, M9. wrote: [EMAIL PROTECTED]:~ smbclient -L tribal-sfn2 Password: Domain=[TRIBAL-SFN2] OS=[Unix] Server=[Samba 3.0.23d-19.2-1179-SUSE-SL10.2] tree connect failed: NT_STATUS_BAD_NETWORK_NAME [EMAIL PROTECTED]:~ Have you done something weird to the IPC$ share in your smb.conf? Volker pgpHWEJfC7Gx7.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to change this status?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Volker Lendecke schreef: On Tue, Feb 27, 2007 at 04:21:59PM +0100, M9. wrote: [EMAIL PROTECTED]:~ smbclient -L tribal-sfn2 Password: Domain=[TRIBAL-SFN2] OS=[Unix] Server=[Samba 3.0.23d-19.2-1179-SUSE-SL10.2] tree connect failed: NT_STATUS_BAD_NETWORK_NAME [EMAIL PROTECTED]:~ Have you done something weird to the IPC$ share in your smb.conf? Volker I was not able to acces one share, after researching we discovered that there are differences between the KDE samba module in personal settings, and the Yast module. Shares made in the KDE module do not work, are invisible, made in Yastthey are accessible. kde writes: case sensitive = no strict locking = no msdfs proxy = no [EMAIL PROTECTED]:~ cat /etc/samba/smb.conf [global] winbind gid = 1-2 winbind uid = 1-2 usershare max shares = 100 workgroup = mshome add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$ domain master = no restrict anonymous = no max protocol = NT acl compatibility = winnt ldap ssl = No server signing = Auto map to guest = Bad User guest ok = yes case sensitive = no strict locking = no msdfs proxy = no read only = no preferred master = no [divx] comment = films inherit acls = yes path = /windowsF/Divx/ read only = no # case sensitive = no # strict locking = no # msdfs proxy = no [mp3] comment = muziek inherit acls = Yes path = /windowsD/MP3/ read only = No ## Share disabled by YaST # [netlogon] [shared] comment = muziek inherit acls = Yes path = /shared/ read only = No [documenten] comment = documenten inherit acls = Yes path = /windowsC/Documents and Settings/All Users/Documenten/ read only = No [tekeningen] comment = tekeningen inherit acls = Yes path = /windowsE/Tekeningen/ read only = No [EMAIL PROTECTED]:~ these we commented out, entrances made by the kde config module, and with which this share did not exist.. # case sensitive = no # strict locking = no # msdfs proxy = no Is there something in this config which should look different? - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.2-34-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.2 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFF5E+9X5/X5X6LpDgRAjqoAKDOCZE9fYy6+BBceEsEPs9WSUplMQCeO1bK aFaBO7DT5wfskiRlZd86XQw= =wg7v -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to change this status?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 M9. schreef: Volker Lendecke schreef: On Tue, Feb 27, 2007 at 04:21:59PM +0100, M9. wrote: [EMAIL PROTECTED]:~ smbclient -L tribal-sfn2 Password: Domain=[TRIBAL-SFN2] OS=[Unix] Server=[Samba 3.0.23d-19.2-1179-SUSE-SL10.2] tree connect failed: NT_STATUS_BAD_NETWORK_NAME [EMAIL PROTECTED]:~ Have you done something weird to the IPC$ share in your smb.conf? Volker I was not able to acces one share, after researching we discovered that there are differences between the KDE samba module in personal settings, and the Yast module. Shares made in the KDE module do not work, are invisible, made in Yastthey are accessible. kde writes: case sensitive = no strict locking = no msdfs proxy = no [EMAIL PROTECTED]:~ cat /etc/samba/smb.conf [global] winbind gid = 1-2 winbind uid = 1-2 usershare max shares = 100 workgroup = mshome add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$ domain master = no restrict anonymous = no max protocol = NT acl compatibility = winnt ldap ssl = No server signing = Auto map to guest = Bad User guest ok = yes case sensitive = no strict locking = no msdfs proxy = no read only = no preferred master = no [divx] comment = films inherit acls = yes path = /windowsF/Divx/ read only = no # case sensitive = no # strict locking = no # msdfs proxy = no [mp3] comment = muziek inherit acls = Yes path = /windowsD/MP3/ read only = No ## Share disabled by YaST # [netlogon] [shared] comment = muziek inherit acls = Yes path = /shared/ read only = No [documenten] comment = documenten inherit acls = Yes path = /windowsC/Documents and Settings/All Users/Documenten/ read only = No [tekeningen] comment = tekeningen inherit acls = Yes path = /windowsE/Tekeningen/ read only = No [EMAIL PROTECTED]:~ these we commented out, entrances made by the kde config module, and with which this share did not exist.. # case sensitive = no # strict locking = no # msdfs proxy = no Is there something in this config which should look different? Than i removed a share that was made for testing, after that, the network was unaccessible.. - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.2-34-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.2 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFF5FBtX5/X5X6LpDgRAlKfAJ9jfu44r5gTiUVHlVvv3uXI1lk16gCghOgi nq9iMKGaeQ9tbcQYN4BW99Y= =WFm/ -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Domain Authentication
A quick suggestion: install and use SWAT to make your server a member server (it has a wizard for that) and to create your shares. At the very least, it will remove the comments from your smb.conf file to make it easier to find the problem. :) Kevin Gutch wrote: Hi, I am trying to create shares that are accessible thru Domain Authentication. I am able to join the domain thru net ads join -U administrator All of the following commands work: net ads join -U administrator testparm net ads info wbinfo -u wbinfo -g Everything seems to be working ok and I have created a couple of test shares. However, if I issue a ' getent passwd' command it indicates the password authentication still comes from the local machine. In addition, none of the shares work not even the public which I think should be accesable by anyone. Would someone mind looking my samba.conf over and provide feedback? # #=== Global Settings = [global] # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH workgroup = MYDOMAIN_SHORT_NAME netbios name = enterprise # server string is the equivalent of the NT Description field server string = File Server # Security mode. Defines in which mode Samba will operate. Possible # values are share, user, server, domain and ads. Most people will want # user level security. See the Samba-HOWTO-Collection for details. security = ads encrypt passwords = yes # This option is important for security. It allows you to restrict # connections to machines which are on your local network. The # following example restricts access to two C class networks and # the loopback interface. For more examples of the syntax see # the smb.conf man page ; hosts allow = 192.168.1. 192.168.2. 127. # If you want to automatically load your printer list rather # than setting them up individually then you'll need this load printers = yes # you may wish to override the location of the printcap file ; printcap name = /etc/printcap # on SystemV system setting printcap name to lpstat should allow # you to automatically obtain a printer list from the SystemV spool # system ; printcap name = lpstat # It should not be necessary to specify the print system type unless # it is non-standard. Currently supported print systems include: # bsd, cups, sysv, plp, lprng, aix, hpux, qnx ; printing = cups # This option tells cups that the data has already been rasterized cups options = raw # Uncomment this if you want a guest account, you must add this to /etc/passwd # otherwise the user nobody is used ; guest account = pcguest # this tells Samba to use a separate log file for each machine # that connects log file = /var/log/samba/%m.log # Put a capping on the size of the log files (in Kb). max log size = 50 # Use password server option only with security = server # The argument list may include: # password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name] # or to auto-locate the domain controller/s # password server = * ; password server = NT-Server-Name # Use the realm option only with security = ads # Specifies the Active Directory realm the host is part of realm = HQ.MYDOMAIN.NET # Backend to store user information in. New installations should # use either tdbsam or ldapsam. smbpasswd is available for backwards # compatibility. tdbsam requires no further configuration. ; passdb backend = tdbsam # Using the following line enables you to customise your configuration # on a per machine basis. The %m gets replaced with the netbios name # of the machine that is connecting. # Note: Consider carefully the location in the configuration file of # this line. The included file is read at that point. ; include = /usr/local/samba/lib/smb.conf.%m # Configure Samba to use multiple interfaces # If you have multiple network interfaces then you must list them # here. See the man page for details. ; interfaces = 192.168.12.2/24 192.168.13.2/24 # Browser Control Options: # set local master to no if you don't want Samba to become a master # browser on your network. Otherwise the normal election rules apply ; local master = no # OS Level determines the precedence of this server in master browser # elections. The default value should be reasonable ; os level = 33 # Domain Master specifies Samba to be the Domain Master Browser. This # allows Samba to collate browse lists between subnets. Don't use this # if you already have a Windows NT domain controller doing this job ; domain master = yes # Preferred Master causes Samba to force a local browser election on startup # and gives it a slightly higher chance of winning the election ; preferred master = yes # Enable this if you want Samba to be a domain logon server for # Windows95 workstations. ; domain logons = yes # if you enable domain logons then you may want a per-machine or # per user logon script # run a specific logon batch file per
[Samba] ldap machine account: bad RID, no SambaPrimaruGroupSID, since 3.0.23c
Hello all When a windows xp workstation join a domain, by windows gui parameters, ldap machine attributes are not filled correctly: - No attribute sambaprimarygroupsid (before, there was one terminated by 515) - rid (of sambasid) is not equal a 2*uid+1000 gid attribute is ok (515) If i create a user, rid (sambasid) equal a 2*uid + 1000 (and sambaprimarygrousid terminated by 513) All the others samba attributes are ok Same problem if i use smbldap-useradd -w before joining the domain; Posix attributes are created by smbldap-useradd -w, and samba attributes are created the first time workstation join the domain, allways with bad sambasid and without sambaprimarygroupsid. Same problem if i use net join on a linux smbclient with winbind SAMBA seems using the sambaNextRid field from the sambaDomainName entry to build the SAMBA SID of the computer accounts, but I don't know why (thanks cedric) In all cases, my workstation is connected to the domain, and user can use it. I didn't change my config, i didn't modify idealx tools. The problem exits since 3.0.23c-1 update in month september (with samba.schema modif) I know my computers who joined the domain before samba 3.0.23c-1 update (debian apt-get) are ok, with sambaprimarygroupsid present, and valid sambasid (rid = 2* uid + 1000). I have 2 Domain with the same problem My config: - Server samba 3.0.23d-4 on debian testing, with daily updates smbldap-tools 0.9.2-3 - smb.conf: add machine script = /usr/sbin/smbldap-useradd -t 0 -w %u - worstation: windows xp sp2 windows 2000 sp4 kdm on debian with smbclient and winbind Thank you very much (this mail is already sent at february 5th) Best regards -- Emmanuel musso technicien informatique I.U.T. Paul Sabatier D�pt G�nie �lectrique 0562258241 Service informatique 0562258025 This message was sent using IMP, the Internet Messaging Program. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba3 ldap password change
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/27/2007 08:17 AM, Daniel Müller wrote: Hello to all, I got samba3 PDC working with ldap. But I' m still wondering how to set important things about the users passwords. You can use pdbedit to configure that. Your sambaDomainName object will have the fiedls to define the size of password, minimum time before change, maximum time to change, date of must change and so on. You can also export from tdbsam do LDAP using something like this (from the manpage): pdbedit -y -i tdbsam: -e ldapsam:ldap://my.ldap.host The first thing when a user login the first time should be to change his/her password? You need to set the MustChange field to 0. Be aware that samba has a strange behaviour with regards to CanChange and LastSet. If you have a new user, change his password and want that he/she changes it on the first login, you probably will need to adjust the LastSet to $TODAY-MinPwdTime and the CanChange to $TODAY (remember that it uses the number of secs. So, an example would be: Fields Just After Mandatory Change Chang PWD on next logon sambaPwdCanChange 1173192147 1172587347 sambaPwdLastSet 1172587347 1171982547 sambaPwdMustChange 1175179347 0 Where do I set when the passwords expire and how do I set it to 60 days? Define the number of seconds in the sambaDomainName object, field: sambaMaxPwdAge I do not work mith Microsoft's usrmgr because of Vista clients. I look at my samba/ldap with LDAP Admin. Does someone manage this point with this tool? I use phpLDAPadmin to control our LDAP database and to set samba options. greetings Daniel Kind regards, - -- Felipe Augusto van de Wiel [EMAIL PROTECTED] Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF5FaHCj65ZxU4gPQRAroPAKDMEiRM/FqMzC8OHVzUUyRHHDLQ0QCgqoL1 4Js0pxyHq8S4+QUAOCtkjPo= =QrZ8 -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] How to enable swat on SuSE10.2 x86_64?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, As a result of not being able to control the shares, (invisible network), i wanted to enable swat, but the files are not were they supposed to be Can anyone help me? - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.2-34-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.2 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFF5F0OX5/X5X6LpDgRAhLbAJ0SQnnMdC4x6qQ/vcxwWVz2YtrOFQCgx+jK RDle6mSbkuhXjOlrTxH4lEo= =7hFO -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Update/Repost: Kerberos works, but net ads join fails
My original message did not seem to come through, so I'm including it in this message. Update to the Symptoms: It does not matter which user or password (wrong/correct) I use for net ads join, it fails in any case. This is really confusing. Begin forwarded message: Hi List, this is gonna be a really funky/interesting/uncommon error you're going to deal with (if you do). Developer(s): I'd be really happy if you can point me at the right source files or describe at which stage of the discussion between my servers fail. This might be of some use.. But let's get to the facts: SYMPTOMS 1) Invoked kinit, no error messages are generated, verbose mode says Authenticated to Kerberos v5. 2) klist thereafter returns a valid ticket. 3) Trying to join the AD with net ads join et cetera however results in a ads_connect: Operations error after about 40 seconds. 4) net exits with errcode -1 (looks like an unspecified error to me?) Further investigation revealed that net indeed can connect to the PDC, but fails with the errors described above. MORE DETAILED OUTPUT OF TOOLS - Unfortunately, the debug output of net does not help a lot, even with level 10. Here's the interesting part: --snip-- [2007/02/27 14:35:14, 3] libads/ldap.c:ads_connect(287) Connected to LDAP server 192.168.0.4 [2007/02/27 14:35:54, 0] utils/net_ads.c:ads_startup(289) ads_connect: Operations error [2007/02/27 14:35:54, 2] utils/net.c:main(988) return code = -1 --snap-- Please note 40 seconds gap between the first two messages. CURRENT SETUP - - Windows 2003 Active Directory (functional level 2003, not 2000 native). - Linux 2.6.18.2-34, custom kernel, recent SuSE 10.2 distribution - Samba 3.0.24-SerNet-SuSE ADDITIONAL INFORMATION -- The whole thing was working until recently. After it stopped working, I've done several things: - tweaked configurations several times (use DNS or fixed IP's / minimal config / etc.) - removed the Samba server from the domain in order to rejoin it (helped in an earlier situation) - updated Samba (from 3.0.23d to 3.0.24) - raised the AD functional level - checked kerberos messages on windows - the usual google, man-page and mailing-list-crawling, even looked at the sources ASSUMPTIONS --- I assume that an unspecified service on the windows-side fails and causes the communication to halt (or similar), which in turn triggers a timeout. Thanks in advance to anyone helping me out with this very strange error. Cheers, Roman -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to enable swat on SuSE10.2 x86_64?
You have to specify which files you mean. We don't have magic crystal balls, unfortunately. -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, As a result of not being able to control the shares, (invisible network), i wanted to enable swat, but the files are not were they supposed to be Can anyone help me? - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.2-34-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.2 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFF5F0OX5/X5X6LpDgRAhLbAJ0SQnnMdC4x6qQ/vcxwWVz2YtrOFQCgx+jK RDle6mSbkuhXjOlrTxH4lEo= =7hFO -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba PGP.sig Description: This is a digitally signed message part -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Kerberos works, but net ads join fails
Hi List, this is gonna be a really funky/interesting/uncommon error you're going to deal with (if you do). Developer(s): I'd be really happy if you can point me at the right source files or describe at which stage of the discussion between my servers fail. This might be of some use.. But let's get to the facts: SYMPTOMS 1) Invoked kinit, no error messages are generated, verbose mode says Authenticated to Kerberos v5. 2) klist thereafter returns a valid ticket. 3) Trying to join the AD with net ads join et cetera however results in a ads_connect: Operations error after about 40 seconds. 4) net exits with errcode -1 (looks like an unspecified error to me?) Further investigation revealed that net indeed can connect to the PDC, but fails with the errors described above. MORE DETAILED OUTPUT OF TOOLS - Unfortunately, the debug output of net does not help a lot, even with level 10. Here's the interesting part: --snip-- [2007/02/27 14:35:14, 3] libads/ldap.c:ads_connect(287) Connected to LDAP server 192.168.0.4 [2007/02/27 14:35:54, 0] utils/net_ads.c:ads_startup(289) ads_connect: Operations error [2007/02/27 14:35:54, 2] utils/net.c:main(988) return code = -1 --snap-- Please note 40 seconds gap between the first two messages. CURRENT SETUP - - Windows 2003 Active Directory (functional level 2003, not 2000 native). - Linux 2.6.18.2-34, custom kernel, recent SuSE 10.2 distribution - Samba 3.0.24-SerNet-SuSE ADDITIONAL INFORMATION -- The whole thing was working until recently. After it stopped working, I've done several things: - tweaked configurations several times (use DNS or fixed IP's / minimal config / etc.) - removed the Samba server from the domain in order to rejoin it (helped in an earlier situation) - updated Samba (from 3.0.23d to 3.0.24) - raised the AD functional level - checked kerberos messages on windows - the usual google, man-page and mailing-list-crawling, even looked at the sources ASSUMPTIONS --- I assume that an unspecified service on the windows-side fails and causes the communication to halt (or similar), which in turn triggers a timeout. Thanks in advance to anyone helping me out with this very strange error. Cheers, Roman PGP.sig Description: This is a digitally signed message part -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to enable swat on SuSE10.2 x86_64?
You need to update your inetd / xinetd config to start SWAT. M9. wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, As a result of not being able to control the shares, (invisible network), i wanted to enable swat, but the files are not were they supposed to be Can anyone help me? - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.2-34-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.2 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFF5F0OX5/X5X6LpDgRAhLbAJ0SQnnMdC4x6qQ/vcxwWVz2YtrOFQCgx+jK RDle6mSbkuhXjOlrTxH4lEo= =7hFO -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to enable swat on SuSE10.2 x86_64?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Well, to invoke swat, you have to specify its location, this location i need to know.. Roman Bigler schreef: You have to specify which files you mean. We don't have magic crystal balls, unfortunately. Hi, As a result of not being able to control the shares, (invisible network), i wanted to enable swat, but the files are not were they supposed to be Can anyone help me? - -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.2-34-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.2 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFF5GHRX5/X5X6LpDgRAluoAKCUJ+9TJOnoXhyjWS4zJuKzLj+w0QCfQHIk xaSZncNrLeHX+ZvHsQi5RtE= =sPUE -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to enable swat on SuSE10.2 x86_64?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yes that is what the manual at: http://us4.samba.org/samba/docs/using_samba/ch02.html says, only the location were swat should be is not correct for X86_64... Gary Dale schreef: You need to update your inetd / xinetd config to start SWAT. M9. wrote: Hi, As a result of not being able to control the shares, (invisible network), i wanted to enable swat, but the files are not were they supposed to be Can anyone help me? - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.2-34-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.2 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFF5GOmX5/X5X6LpDgRArHIAJ0XfAfFP5YiO9CHlTofzyDDRpKxuACbBd67 ukMFcdFwrTuxo9sVEtBrCwA= =pPNU -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to enable swat on SuSE10.2 x86_64?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Correct, the executable is present there, thnx ;) Roman Bigler schreef: Ok, still not completely sure what you mean, but this might help you: http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html#xinetd The location of the executable is usually /usr/sbin. On Feb. 27, 2007, at 17:52 , M9. wrote: Well, to invoke swat, you have to specify its location, this location i need to know.. Roman Bigler schreef: You have to specify which files you mean. We don't have magic crystal balls, unfortunately. Hi, As a result of not being able to control the shares, (invisible network), i wanted to enable swat, but the files are not were they supposed to be Can anyone help me? - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.2-34-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.2 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFF5GRoX5/X5X6LpDgRApGxAJwO5JdryNdZTY0gyevMgxNKxiN7CACeIhH8 UfOVvYXuOIfjBYA+DwiGqtg= =c9lf -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Solaris 9 Samba 3.0.24
Anyone Travis Knabe wrote: I'm currently running samba 3.0.20a I can configure and make 3.0.20a with no problem I run the same configure command on the 3.0.24 source, configure works fine, but make returns the following. ( and just to test if a patch screwed me up I tested configuring and making the 3.0.20a version again, and it worked as it should ) Any bugs with 3.0.24??? Using FLAGS = -O -D_SAMBA_BUILD_ -I/a1/samba/builds/samba-3.0.24/source/iniparser/src -Iinclude -I/a1/samba/builds/samba-3.0.24/source/include -I/a1/samba/builds/samba-3.0.24/source/tdb -I. -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DLDAP_DEPRECATED -DSUNOS5 -I/a1/samba/builds/samba-3.0.24/source -D_SAMBA_BUILD_ LIBS = -lsendfile -lresolv -lnsl -lsocket -ldl LDSHFLAGS = -G -lthread LDFLAGS = -lthread PIE_CFLAGS = PIE_LDFLAGS = Compiling dynconfig.c In file included from include/includes.h:1067, from /a1/samba/builds/samba-3.0.24/source/dynconfig.c:21: include/proto.h:1:1: unterminated #ifndef *** Error code 1 make: Fatal error: Command failed for target `dynconfig.o' -- --- Travis Knabe Assistant Director Computing Services Western Oregon University 503-559-0707 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] 8.3 short names question
Gerald (Jerry) Carter napisał(a): -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave Abouav wrote: Any idea why the 8.3 names are so weird? Is this typical for Samba now? It is by design.You might want to look at the mangling method option in smb.conf(5). so to use: magling method = hash instead mangling method = hash2 (default for samba 3.x) ?? cheers, Irens cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.2 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF5DJuIR7qMdg1EfYRAjcvAJ9eFe7GjECNu0nkP0uyx5wTcB6jAACdHtHT bzlkq3aob5m464Z1Vtd4Dkk= =keNJ -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Solaris 9 Samba 3.0.24
I have recently done it with no problems: my config.log $ ./configure --prefix=/usr/local/samba3024 --without-ads --with-libiconv=/usr /local --with-acl-support --with-ldap ## - ## ## Platform. ## ## - ## hostname = myhost uname -m = sun4u uname -r = 5.9 uname -s = SunOS uname -v = Generic_118558-35 /opt/sfw/bin/gcc/gcc (GCC) 3.3.2 What are your setting for ./configure since I am happy to try the same. Andrew Travis Knabe wrote: Anyone Travis Knabe wrote: I'm currently running samba 3.0.20a I can configure and make 3.0.20a with no problem I run the same configure command on the 3.0.24 source, configure works fine, but make returns the following. ( and just to test if a patch screwed me up I tested configuring and making the 3.0.20a version again, and it worked as it should ) Any bugs with 3.0.24??? Using FLAGS = -O -D_SAMBA_BUILD_ -I/a1/samba/builds/samba-3.0.24/source/iniparser/src -Iinclude -I/a1/samba/builds/samba-3.0.24/source/include -I/a1/samba/builds/samba-3.0.24/source/tdb -I. -DHAVE_CONFIG_H -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -DLDAP_DEPRECATED -DSUNOS5 -I/a1/samba/builds/samba-3.0.24/source -D_SAMBA_BUILD_ LIBS = -lsendfile -lresolv -lnsl -lsocket -ldl LDSHFLAGS = -G -lthread LDFLAGS = -lthread PIE_CFLAGS = PIE_LDFLAGS = Compiling dynconfig.c In file included from include/includes.h:1067, from /a1/samba/builds/samba-3.0.24/source/dynconfig.c:21: include/proto.h:1:1: unterminated #ifndef *** Error code 1 make: Fatal error: Command failed for target `dynconfig.o' -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Scripting net command problem
Hello list, I'm writing some scripts that executes the net command. I have noticed that sometimes when things goes wrong the net command asks for input i.e a password which results in a hanging script. Is there some way to avoid this? I've looked at the different flags fro net command but haven't found anything that could help me with this. Cheers, henrik -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Trying to share HP Officejet 5610 Multi-function
I'm trying to share my HP 5610 on my Samba (3.0.24-1 fc6 x86_64) machine and am running into a typical HP related SANFU. The XP drivers supplied only install through the installation program. (ie. I can't use device manager to point XP to the driver and install it) So I installed the printer on my XP machine, used the installation program to install the drivers and then shared the printer out and copied the folders and files in the print$ share to my samba machine /var/spool/samba/ (rwxrwxrwt) . I then restarted samba and when I connect to the printer on my XP machine it still asks me for the driver. I read somewhere that you have to force samba to recognize drivers installed this way and think this is what I have to do, but I can't figure out how to do it. Any help would be most appreciated. Here is my smb.conf [global] workgroup = MOYA realm = MOYA.FARSCAPE.LOCAL server string = security = ADS username map = /etc/samba/smbusers log file = /var/log/samba/%m.log max log size = 50 preferred master = No local master = No domain master = No dns proxy = No wins server = # ldap ssl = no cups options = raw [homes] comment = Home Directories read only = No browseable = yes [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = no printing = cups public = yes TIA, -Forrest -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Users Rights
FYI. from the Samba How-To The privileges that have been implemented in Samba-3.0.11 are shown below. It is possible, and likely, that additional privileges may be implemented in later releases of Samba. It is also likely that any privileges currently implemented but not used may be removed from future releases as a housekeeping matter, so it is important that the successful as well as unsuccessful use of these facilities should be reported on the Samba mailing lists. :) it works like charm! nice! thanks guys! (my two cents) Succesfully running on SLES9+SP3 (Samba 3.0.20): SeAddUsersPrivilege SeDiskOperatorPrivilege SeMachineAccountPrivilege SePrintOperatorPrivilege SeRemoteShutdownPrivilege SeTakeOwnershipPrivilege Vic -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba 3.0.10 join domain
I have found a fixed my previous problems (two typos that were hard to find) and now the smbldap-tools all work as expected if I run them as root. However when I try to join a domain from a windows machine, the scripts never run and get an Access is denied message. Since I am using 0.10 I do not think I can use net rpc rights, so do I need to add that into ldap manually? Or do I have to use a specific user other than just someone in domain admins? thanks, Dan -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to enable swat on SuSE10.2 x86_64?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Some things are not fine, like swat uses port 901/tcp.. what if this port allready has been taken? omginitialrefs 900/udp# OMG Initial Refs #Christian Callsen [EMAIL PROTECTED] swat 901/tcp# CONFLICT, not official assigned! smpnameres 901/tcp# SMPNAMERES smpnameres 901/udp# SMPNAMERES What to do in a case like this? M9. schreef: Tha manual at the box tells: In /etc/inetd.conf you should add a line like this: swat stream tcp nowait.400 root /usr/local/samba/sbin/swat swat Should this in this case be: swat stream tcp nowait.400 root /usr/sbin/swat ? M9. schreef: Correct, the executable is present there, thnx ;) Roman Bigler schreef: Ok, still not completely sure what you mean, but this might help you: http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html#xinetd The location of the executable is usually /usr/sbin. On Feb. 27, 2007, at 17:52 , M9. wrote: Well, to invoke swat, you have to specify its location, this location i need to know.. Roman Bigler schreef: You have to specify which files you mean. We don't have magic crystal balls, unfortunately. Hi, As a result of not being able to control the shares, (invisible network), i wanted to enable swat, but the files are not were they supposed to be Can anyone help me? - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.2-34-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.2 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD4DBQFF5ILDX5/X5X6LpDgRAh+VAKCVB8xYY+0/yIMH1iNiQXC49O+lSACVG9xo izaS4zgUGVKNCXD5GFSzvA== =Urfq -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to enable swat on SuSE10.2 x86_64?
Change it to an unassigned port. M9. wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Some things are not fine, like swat uses port 901/tcp.. what if this port allready has been taken? omginitialrefs 900/udp# OMG Initial Refs # Christian Callsen [EMAIL PROTECTED] swat901/tcp# CONFLICT, not official assigned! smpnameres 901/tcp# SMPNAMERES smpnameres 901/udp# SMPNAMERES What to do in a case like this? M9. schreef: Tha manual at the box tells: In /etc/inetd.conf you should add a line like this: swat stream tcp nowait.400 root /usr/local/samba/sbin/swat swat Should this in this case be: swat stream tcp nowait.400 root /usr/sbin/swat ? M9. schreef: Correct, the executable is present there, thnx ;) Roman Bigler schreef: Ok, still not completely sure what you mean, but this might help you: http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html#xinetd The location of the executable is usually /usr/sbin. On Feb. 27, 2007, at 17:52 , M9. wrote: Well, to invoke swat, you have to specify its location, this location i need to know.. Roman Bigler schreef: You have to specify which files you mean. We don't have magic crystal balls, unfortunately. Hi, As a result of not being able to control the shares, (invisible network), i wanted to enable swat, but the files are not were they supposed to be Can anyone help me? - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.2-34-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.2 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD4DBQFF5ILDX5/X5X6LpDgRAh+VAKCVB8xYY+0/yIMH1iNiQXC49O+lSACVG9xo izaS4zgUGVKNCXD5GFSzvA== =Urfq -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Trying to share HP Officejet 5610 Multi-function
Forrest, First you will need a [print$] share (which is where the drivers reside) as described here: http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting.html#id358044 /var/spool/samba is for the print jobs, not the drivers. Move printing = cups to global. Add to global printcap name = cups. There are other options that you may want to set like load printers or use client driver For installation, perhaps this is what you need: http://us4.samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting.html#inst-rpc It is quite involved. I hope I never have to use it. All our printers have Windows inf files for the add printer wizard, or ppd files for CUPS. If this doesn't work, consider foomatic/HPLIP packages. Your printer is supported here: http://hplip.sourceforge.net/supported_devices/inkjet_aio.html Setting up printing through Samba can be quite daunting/frustrating the 1st time. Dale Forrest D wrote: I'm trying to share my HP 5610 on my Samba (3.0.24-1 fc6 x86_64) machine and am running into a typical HP related SANFU. The XP drivers supplied only install through the installation program. (ie. I can't use device manager to point XP to the driver and install it) So I installed the printer on my XP machine, used the installation program to install the drivers and then shared the printer out and copied the folders and files in the print$ share to my samba machine /var/spool/samba/ (rwxrwxrwt) . I then restarted samba and when I connect to the printer on my XP machine it still asks me for the driver. I read somewhere that you have to force samba to recognize drivers installed this way and think this is what I have to do, but I can't figure out how to do it. Any help would be most appreciated. Here is my smb.conf [global] workgroup = MOYA realm = MOYA.FARSCAPE.LOCAL server string = security = ADS username map = /etc/samba/smbusers log file = /var/log/samba/%m.log max log size = 50 preferred master = No local master = No domain master = No dns proxy = No wins server = # ldap ssl = no cups options = raw [homes] comment = Home Directories read only = No browseable = yes [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = no printing = cups public = yes TIA, -Forrest -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to enable swat on SuSE10.2 x86_64?
Sorry if that's not clear. You need to edit /etc/services to give SWAT a different port number - see man swat and man services for information. Change it to an unassigned port. M9. wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Some things are not fine, like swat uses port 901/tcp.. what if this port allready has been taken? omginitialrefs 900/udp# OMG Initial Refs # Christian Callsen [EMAIL PROTECTED] swat901/tcp# CONFLICT, not official assigned! smpnameres 901/tcp# SMPNAMERES smpnameres 901/udp# SMPNAMERES What to do in a case like this? M9. schreef: Tha manual at the box tells: In /etc/inetd.conf you should add a line like this: swat stream tcp nowait.400 root /usr/local/samba/sbin/swat swat Should this in this case be: swat stream tcp nowait.400 root /usr/sbin/swat ? M9. schreef: Correct, the executable is present there, thnx ;) Roman Bigler schreef: Ok, still not completely sure what you mean, but this might help you: http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html#xinetd The location of the executable is usually /usr/sbin. On Feb. 27, 2007, at 17:52 , M9. wrote: Well, to invoke swat, you have to specify its location, this location i need to know.. Roman Bigler schreef: You have to specify which files you mean. We don't have magic crystal balls, unfortunately. Hi, As a result of not being able to control the shares, (invisible network), i wanted to enable swat, but the files are not were they supposed to be Can anyone help me? - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.2-34-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.2 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD4DBQFF5ILDX5/X5X6LpDgRAh+VAKCVB8xYY+0/yIMH1iNiQXC49O+lSACVG9xo izaS4zgUGVKNCXD5GFSzvA== =Urfq -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] What does mean lack of trust relationship?
Ladies and genttlemen, today I realized my Samba server has a problem. I had to create some new users and recieved this message after every try: [2007/02/27 10:56:52, 0] lib/util.c:smb_panic(1599) PANIC (pid 31987): pdb_get_methods_reload: failed to get pdb methods for backend tdbsam smbpasswd guest [2007/02/27 10:56:52, 0] lib/util.c:log_stack_trace(1706) BACKTRACE: 3 stack frames: #0 /usr/sbin/smbd(log_stack_trace+0x2a) [0x8020376a] #1 /lib/tls/libc.so.6(__libc_start_main+0xe2) [0xb7ccf852] #2 /usr/sbin/smbd [0x8003df81] [2007/02/27 10:56:52, 0] lib/fault.c:dump_core(173) dumping core in /var/log/samba/cores/smbd [2007/02/27 10:58:06, 0] passdb/pdb_interface.c:make_pdb_method_name(174) No builtin nor plugin backend for tdbsam smbpasswd guest found [2007/02/27 10:58:06, 0] lib/util.c:smb_panic(1599) PANIC (pid 32132): pdb_get_methods_reload: failed to get pdb methods for backend tdbsam smbpasswd guest So, I checked smb.conf I adjusted passdb backend stanza to tdbsam (with no values since the default one is OK to me), but since then some users got out of the domain and some machines started complain they can not connect to some shared resources because there's no trust relationship between them and the server. To solve the problem with users, I added them again (just a few users) to Samba and what is bothering me now is the problem related to machines. I've tried add them again to the domain, but no luck with that. The complete Windows message is: 1789 The trust relationship between this workstation and the primary domain failed. Any hints? -- Miguel Da Silva Administrador de Red Centro de Matemática - http://www.cmat.edu.uy Facultad de Ciencias - http://www.fcien.edu.uy Universidad de la República - http://www.rau.edu.uy -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Vista, NTLMV2, security = domain
On Mon, 26 Feb 2007 15:14:04 -0800 Greg J Zartman [EMAIL PROTECTED] wrote: What fails? Vista *should* work against us even without It does. I've been authenticating Vista machines for some time against a Samba PDC. I'm not using Samba as a domain controller, I'm using it as a member server in Windows Server 2003 controlled domains. I've tested in completely unique domains, I've tested with Samba 3.0.23d running on Redhat Enterprise 3, 3.023d and 3.0.24 built with all the Vista patches on Sparc Solaris 8. I've tested with multiple Vista Enterprise client systems including a freshly installed system. Actually, even Windows XP will exhibit the same problem if you configure it to use Vista's default Lan Manager authentication level - send NTLMV2 response only. Given the parameters I've spelled out in my previous postings and the bug report, this problem has been 100% consistently reproducible in all cases. I have reopened the bug, https://bugzilla.samba.org/show_bug.cgi?id=4365 ,and submitted the requested logs. Tom Schaefer -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to enable swat on SuSE10.2 x86_64?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Well that was clear enough, i changed the port in the xinetd.d also, but i am not able to invoke swat. when trying to call localhost:904 (unassigned port) i get the message: can not connect to server on localhost 904 Gary Dale schreef: Sorry if that's not clear. You need to edit /etc/services to give SWAT a different port number - see man swat and man services for information. Change it to an unassigned port. M9. wrote: Some things are not fine, like swat uses port 901/tcp.. what if this port allready has been taken? omginitialrefs 900/udp# OMG Initial Refs # Christian Callsen [EMAIL PROTECTED] swat901/tcp # CONFLICT, not official assigned! smpnameres 901/tcp# SMPNAMERES smpnameres 901/udp# SMPNAMERES What to do in a case like this? M9. schreef: Tha manual at the box tells: In /etc/inetd.conf you should add a line like this: swat stream tcp nowait.400 root /usr/local/samba/sbin/swat swat Should this in this case be: swat stream tcp nowait.400 root /usr/sbin/swat ? M9. schreef: Correct, the executable is present there, thnx ;) Roman Bigler schreef: Ok, still not completely sure what you mean, but this might help you: http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html#xinetd The location of the executable is usually /usr/sbin. On Feb. 27, 2007, at 17:52 , M9. wrote: Well, to invoke swat, you have to specify its location, this location i need to know.. Roman Bigler schreef: You have to specify which files you mean. We don't have magic crystal balls, unfortunately. Hi, As a result of not being able to control the shares, (invisible network), i wanted to enable swat, but the files are not were they supposed to be Can anyone help me? - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.2-34-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.2 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFF5JEWX5/X5X6LpDgRAgvlAKDATzhaiUEC7Cexma85hv4iE3yllwCfTiKS CEPxsUx8KDEmXvScgNWgq14= =U3PI -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to enable swat on SuSE10.2 x86_64?
Have you re/started the SWAT service? M9. wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Well that was clear enough, i changed the port in the xinetd.d also, but i am not able to invoke swat. when trying to call localhost:904 (unassigned port) i get the message: can not connect to server on localhost 904 Gary Dale schreef: Sorry if that's not clear. You need to edit /etc/services to give SWAT a different port number - see man swat and man services for information. Change it to an unassigned port. M9. wrote: Some things are not fine, like swat uses port 901/tcp.. what if this port allready has been taken? omginitialrefs 900/udp# OMG Initial Refs # Christian Callsen [EMAIL PROTECTED] swat901/tcp # CONFLICT, not official assigned! smpnameres 901/tcp# SMPNAMERES smpnameres 901/udp# SMPNAMERES What to do in a case like this? M9. schreef: Tha manual at the box tells: In /etc/inetd.conf you should add a line like this: swat stream tcp nowait.400 root /usr/local/samba/sbin/swat swat Should this in this case be: swat stream tcp nowait.400 root /usr/sbin/swat ? M9. schreef: Correct, the executable is present there, thnx ;) Roman Bigler schreef: Ok, still not completely sure what you mean, but this might help you: http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html#xinetd The location of the executable is usually /usr/sbin. On Feb. 27, 2007, at 17:52 , M9. wrote: Well, to invoke swat, you have to specify its location, this location i need to know.. Roman Bigler schreef: You have to specify which files you mean. We don't have magic crystal balls, unfortunately. Hi, As a result of not being able to control the shares, (invisible network), i wanted to enable swat, but the files are not were they supposed to be Can anyone help me? - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.2-34-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.2 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFF5JEWX5/X5X6LpDgRAgvlAKDATzhaiUEC7Cexma85hv4iE3yllwCfTiKS CEPxsUx8KDEmXvScgNWgq14= =U3PI -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] How to enable swat on SuSE10.2 x86_64?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You mean by rereading the xinetd.d ? I do not know what to do than in the worsed case restartx, or end current session, and call upon localhost:904 (in this case.. Do i miss something? Gary Dale schreef: Have you re/started the SWAT service? M9. wrote: Well that was clear enough, i changed the port in the xinetd.d also, but i am not able to invoke swat. when trying to call localhost:904 (unassigned port) i get the message: can not connect to server on localhost 904 Gary Dale schreef: Sorry if that's not clear. You need to edit /etc/services to give SWAT a different port number - see man swat and man services for information. Change it to an unassigned port. M9. wrote: Some things are not fine, like swat uses port 901/tcp.. what if this port allready has been taken? omginitialrefs 900/udp# OMG Initial Refs # Christian Callsen [EMAIL PROTECTED] swat901/tcp # CONFLICT, not official assigned! smpnameres 901/tcp# SMPNAMERES smpnameres 901/udp# SMPNAMERES What to do in a case like this? M9. schreef: Tha manual at the box tells: In /etc/inetd.conf you should add a line like this: swat stream tcp nowait.400 root /usr/local/samba/sbin/swat swat Should this in this case be: swat stream tcp nowait.400 root /usr/sbin/swat ? M9. schreef: Correct, the executable is present there, thnx ;) Roman Bigler schreef: Ok, still not completely sure what you mean, but this might help you: http://us1.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html#xinetd The location of the executable is usually /usr/sbin. On Feb. 27, 2007, at 17:52 , M9. wrote: Well, to invoke swat, you have to specify its location, this location i need to know.. Roman Bigler schreef: You have to specify which files you mean. We don't have magic crystal balls, unfortunately. Hi, As a result of not being able to control the shares, (invisible network), i wanted to enable swat, but the files are not were they supposed to be Can anyone help me? - -- Have a nice day, M9. Now, is the only time that exists. OS: Linux 2.6.18.2-34-default x86_64 Huidige gebruiker: [EMAIL PROTECTED] Systeem: openSUSE 10.2 (X86-64) KDE: 3.5.5 release 45.2 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFF5JMrX5/X5X6LpDgRAmc7AJ9l93KpdldvX4Tfjw166ZRQQoRgfQCgtDjN Zx50Mg4dOMZmrw260x24ado= =htmt -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Vista, NTLMV2, security = domain
On Tuesday 27 February 2007, Schaefer Jr, Thomas R. wrote: I'm not using Samba as a domain controller, I'm using it as a member server in Windows Server 2003 controlled domains. Isn't security = ads proper in this case? Chris -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Error message on domain member: User nobody with invalid SID
Hi, I am receiving the following error message on Samba domain member (SLES9/3.0.24). Both PDC and BDC are Samba (smbldap) (SUSE 10.1 Samba 3.0.22): User nobody with invalid SID S-1-5-21-3838309271-3077283710-20730714-2998 in passdb This message is new having upgraded to current version from most recent shipped with SLES9. I am trying to figure out if this is related to the issue of why mostly functional Samba client broke (can't map shares, etc.). The reason for the upgrade was an attempt to fix what seems to be a winbind issue were SIDs took (inconsistently) long time to map to username/groups when managing security from Windows box. The only reference I can find to my specific log item is the following which didn't seem to help: http://lists.samba.org/archive/samba/2006-October/126422.html Thanks in advance, Adam Tworkowski, atworkowski at masterfile dot com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] logon message
I am interested in creating a logon message to be delivered to users when they logon. Is this possible? And if so, how can this be done? With logon scripts? The majority of my clients are connecting from Windows XP Pro, SAMBA is running on Debian Etch. Thank You -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Error while starting smbd
Hello All, I have Samba 3.0.23a setup on a HP-UX box. I have also configured Kerberos. The samba system talks to an Active Directory 2003 system for authentication. I get the following error message when the smbd service tries to start. The nmbd and winbindd services start without any errors. I am not sure if it's just me missing out something, or if it's a bug which needs a patch. I went through many discussion forums, and couldn't find a solution. The error is: /usr/lib/hpux32/dld.so: Unsatisfied code symbol 'ldap_open' in load module '/usr/local/samba/bin/smbd'. Please help! Thanks and Regds Sapna -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] logon message
Short: Yes, it's possible. Long: The How depends on your situation however, and since you don't state much information in this direction... You can achieve almost anything with Batchfiles on Windows, especially in conjunction with WSH. Google is your friend for this. Ben Natala wrote: I am interested in creating a logon message to be delivered to users when they logon. Is this possible? And if so, how can this be done? With logon scripts? The majority of my clients are connecting from Windows XP Pro, SAMBA is running on Debian Etch. Thank You -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba PGP.sig Description: This is a digitally signed message part -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] migrate users to ldap
Thank you for your answer. I actually did not point out exactly enough what i want to do, sorry for that ... I read these postings and also some sections in the samba howto and several descriptions on the net, but i understand all these in that way, that the samba server is reconfigured to use ldap and stays there. at the moment we are some time away from finally migrating all samba accounts, which are currently stored in smbpasswd, to ldap and it is no option to take down and reconfigure samba even for a short time. so what i in fact need is a way to get a snapshot of the current accounts and copy them into ldap, the samba server should/can/must not be touched (i mean start/stop/reconfigure etc.) in any way during this process. can this be done ? thanks in advance for any hints! regards markus Zitat von Felipe Augusto van de Wiel [EMAIL PROTECTED]: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/23/2007 10:03 PM, Markus Krause wrote: Hi List! we have about 1200 users in the regular user database of samba 2.2.8a installation. is it possible to move/migrate them all into ldap? i only found descriptions on how to add new users to ldap. Yes it is. Check the archive of this list (2007 is enough), we already discussed this subject this year a few times with good tips and points about the migration. thanks in advance for any hints! regards markus Kind regards, - -- Felipe Augusto van de Wiel [EMAIL PROTECTED] Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF4s6hCj65ZxU4gPQRArUWAKCAg0/pm0vvKVGheWzpZ+31jePUZQCfXRKt mbRfpQnxHEPfgG5YARXbgYo= =keIk -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba +-+ | Markus Krause, Mogli-Soft | | Support for Mac OS X, Webmail/Horde, LDAP, RADIUS | | by order of the | |Computing Center of the Max-Planck-Institute of Biochemistry | +++ | E-Mail: [EMAIL PROTECTED] | Tel.: 089 - 89 40 85 99 | | [EMAIL PROTECTED] | Fax.: 089 - 89 40 85 98 | | Skype: markus.krause | iChat: [EMAIL PROTECTED] | +++ -- This message was sent using https://webmail2.biochem.mpg.de If you encounter any problems please report to [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] logon message
Hi Ben, One way of doing it is to use a policy file - NTConfig.pol which is loaded by each user when they login to the domain from your [netlogon] share. The login banner is created with a standard option - check out http://www.pcc-services.com/articles/implement_sys_policies.html for details of creating your own policy. -stephen Ben Natala wrote: I am interested in creating a logon message to be delivered to users when they logon. Is this possible? And if so, how can this be done? With logon scripts? The majority of my clients are connecting from Windows XP Pro, SAMBA is running on Debian Etch. Thank You --To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- Stephen Mulcahy, Applepie Solutions Ltd, Innovation in Business Center, GMIT, Dublin Rd, Galway, Ireland. mailto:[EMAIL PROTECTED] mobile:+353.87.2930252 office:+353.91.751262 http://www.aplpi.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Building Samba 4 - Includes.c missing?
Hello all, I've been peacefully using Samba 3 for about 3 years now, and it has done a wonderful job in my little world as domain member servers for file and print serving. Much bettetrver farms that some of my peers in the company are using. So I want to try Samba 4 and see if I can play with making it my PDC. The only problem is that when I go to make, I receive the following error: ... Creating torture/ndr/proto.h Generating dependencies for torture/ndr/ndr.c Generating dependencies for torture/local/local.c Removing precompiled headers Precompiling include/includes.h gcc: include/includes.c: No such file or directory gcc: no input files make: *** [include/includes.h.gch] Error 1 This, after a successful autoconf, configure, and make pch all. In looking in the include folder, there is only includes.h. I pulled the files straight from subversion, so would have hoped that I got everything necessary. Has anyone else had this issue building Samba 4? Regards, Frank -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Building Samba 4 - Includes.c missing?
From: Frank Gruman [EMAIL PROTECTED] Date: 2007/02/27 Tue PM 08:24:45 CST To: samba@lists.samba.org Subject: [Samba] Building Samba 4 - Includes.c missing? Hello all, I've been peacefully using Samba 3 for about 3 years now, and it has done a wonderful job in my little world as domain member servers for file and print serving. Much bettetrver farms that some of my peers in the company are using. So I want to try Samba 4 and see if I can play with making it my PDC. The only problem is that when I go to make, I receive the following error: ... Creating torture/ndr/proto.h Generating dependencies for torture/ndr/ndr.c Generating dependencies for torture/local/local.c Removing precompiled headers Precompiling include/includes.h gcc: include/includes.c: No such file or directory gcc: no input files make: *** [include/includes.h.gch] Error 1 This, after a successful autoconf, configure, and make pch all. In looking in the include folder, there is only includes.h. I pulled the files straight from subversion, so would have hoped that I got everything necessary. Has anyone else had this issue building Samba 4? Regards, Frank Wow - I stepped on my earlier note...should have read Much better than the Win2k3 server farms... Anyway - that aside, I realized I had not added any extra potentially pertinent info: OS = OpenSUSE 10.2 gcc = 4.1.2 Also - I ran autogen.sh, and not autoconf as I noted above. Basically, I did everything defined in the howto.txt that is pulled down with the code. Regards, Frank -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Building Samba 4 - Includes.c missing?
Am Mittwoch, 28. Februar 2007 03:24 schrieb Frank Gruman: Hello all, I've been peacefully using Samba 3 for about 3 years now, and it has done a wonderful job in my little world as domain member servers for file and print serving. Much bettetrver farms that some of my peers in the company are using. So I want to try Samba 4 and see if I can play with making it my PDC. The only problem is that when I go to make, I receive the following error: ... Creating torture/ndr/proto.h Generating dependencies for torture/ndr/ndr.c Generating dependencies for torture/local/local.c Removing precompiled headers Precompiling include/includes.h gcc: include/includes.c: No such file or directory gcc: no input files make: *** [include/includes.h.gch] Error 1 This, after a successful autoconf, configure, and make pch all. In looking in the include folder, there is only includes.h. I pulled the files straight from subversion, so would have hoped that I got everything necessary. Has anyone else had this issue building Samba 4? Regards, Frank Hi Frank, instead of using 'make pch all' just use 'make' the option 'pch' (pre-compiled headers) often does not work. :-( Cheers, Guenter -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Kerberos works, but net ads join fails
On Tuesday 27 February 2007 20:15, Roman Bigler wrote: SYMPTOMS 1) Invoked kinit, no error messages are generated, verbose mode says Authenticated to Kerberos v5. 2) klist thereafter returns a valid ticket. 3) Trying to join the AD with net ads join et cetera however results in a ads_connect: Operations error after about 40 seconds. 4) net exits with errcode -1 (looks like an unspecified error to me?) I have got similar error, when I hadn't set DC's IP as FIRST DNS (for my FreeBSD that's done by editing /etc/resolv.conf and placing DC IP as FIRST line). And Samba should be 3.0.23b or higher. -- With Best Regards. Rashid N. Achilov (RNA1-RIPE), Web: http://www.askd.ru/~shelton OOO ACK telecommunications administrator, e-mail: achilov-rn [at] askd.ru PGP: 83 CD E2 A7 37 4A D5 81 D6 D6 52 BF C9 2F 85 AF 97 BE CB 0A -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] local master browser
Hello! Can anybody tell me what is the meaning of following logs (/var/log/messages). Feb 28 09:16:10 espl nmbd[3086]: process_local_master_announce: Server VINAY at IP 192.168.10.50 is announcing itself as a local master browser for workgroup EXCELIZE and we think we are master. Forcing election. Feb 28 09:16:10 espl nmbd[3086]: Samba name server ESPL has stopped being a local master browser for workgroup EXCELIZE on subnet 192.168.10.254 Feb 28 09:16:27 espl nmbd[3086]: Samba name server ESPL is now a local master browser for workgroup EXCELIZE on subnet 192.168.10.254 Regards, Rahul Tidke. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
svn commit: samba r21555 - in branches/SAMBA_4_0: . source/pidl/lib/Parse/Pidl/Wireshark source/pidl/tests
Author: jelmer Date: 2007-02-27 12:46:19 + (Tue, 27 Feb 2007) New Revision: 21555 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21555 Log: Some tests for TYPE in wireshark conformance files. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/Conformance.pm branches/SAMBA_4_0/source/pidl/tests/wireshark-conf.pl Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/Conformance.pm === --- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/Conformance.pm 2007-02-27 02:59:22 UTC (rev 21554) +++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/Conformance.pm 2007-02-27 12:46:19 UTC (rev 21555) @@ -96,7 +96,7 @@ $VERSION = '0.01'; @ISA = qw(Exporter); [EMAIL PROTECTED] = qw(ReadConformance ReadConformanceFH); [EMAIL PROTECTED] = qw(ReadConformance ReadConformanceFH valid_ft_type valid_base_type); use strict; Modified:
Rev 11600: Some tests for TYPE in wireshark conformance files. in file:///home/jelmer/bzr.samba/SAMBA_4_0/
At file:///home/jelmer/bzr.samba/SAMBA_4_0/ revno: 11600 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Tue 2007-02-27 13:43:22 +0100 message: Some tests for TYPE in wireshark conformance files. modified: source/pidl/lib/Parse/Pidl/Wireshark/Conformance.pm svn-v2:[EMAIL PROTECTED] source/pidl/tests/wireshark-conf.pl svn-v2:[EMAIL PROTECTED] === modified file 'source/pidl/lib/Parse/Pidl/Wireshark/Conformance.pm' --- a/source/pidl/lib/Parse/Pidl/Wireshark/Conformance.pm 2007-02-08 23:54:31 + +++ b/source/pidl/lib/Parse/Pidl/Wireshark/Conformance.pm 2007-02-27 12:43:22 + @@ -96,7 +96,7 @@ $VERSION = '0.01'; @ISA = qw(Exporter); [EMAIL PROTECTED] = qw(ReadConformance ReadConformanceFH); [EMAIL PROTECTED] = qw(ReadConformance ReadConformanceFH valid_ft_type valid_base_type); use strict; === modified file 'source/pidl/tests/wireshark-conf.pl' --- a/source/pidl/tests/wireshark-conf.pl 2007-02-08 23:54:31 + +++ b/source/pidl/tests/wireshark-conf.pl 2007-02-27 12:43:22 + @@ -5,12 +5,12 @@ use strict; use warnings; -use Test::More tests = 20; +use Test::More tests = 34; use FindBin qw($RealBin); use lib $RealBin; use Util; use Parse::Pidl::Util qw(MyDumper); -use Parse::Pidl::Wireshark::Conformance qw(ReadConformanceFH); +use Parse::Pidl::Wireshark::Conformance qw(ReadConformanceFH valid_ft_type valid_base_type); sub parse_conf($) { @@ -60,3 +60,37 @@ is_deeply(parse_conf(CODE START\ndata\nmore data\nCODE END\n), { override = data\nmore data\n }); test_warnings(nofile:1: Unknown command `CODE'\n, sub { parse_conf(CODE END\n); } ); + +is_deeply(parse_conf(TYPE winreg_String dissect_myminregstring FT_STRING BASE_DEC 0 0 2\n), { types = { winreg_String = { + NAME = winreg_String, + POS = { FILE = nofile, LINE = 1 }, + USED = 0, + DISSECTOR_NAME = dissect_myminregstring, + FT_TYPE = FT_STRING, + BASE_TYPE = BASE_DEC, + MASK = 0, + VALSSTRING = 0, + ALIGNMENT = 2}}}); + +ok(valid_ft_type(FT_UINT32)); +ok(not valid_ft_type(BLA)); +ok(not valid_ft_type(ft_uint32)); +ok(valid_ft_type(FT_BLA)); + +ok(valid_base_type(BASE_DEC)); +ok(valid_base_type(BASE_HEX)); +ok(not valid_base_type(base_dec)); +ok(not valid_base_type(BLA)); +ok(not valid_base_type(BASEDEC)); + +test_errors(nofile:1: incomplete TYPE command\n, + sub { parse_conf(TYPE mytype dissector\n); }); + +test_warnings(nofile:1: dissector name does not contain `dissect'\n, + sub { parse_conf(TYPE winreg_String myminregstring FT_STRING BASE_DEC 0 0 2\n); }); + +test_warnings(nofile:1: invalid FT_TYPE `BLA'\n, + sub { parse_conf(TYPE winreg_String dissect_myminregstring BLA BASE_DEC 0 0 2\n); }); + +test_warnings(nofile:1: invalid BASE_TYPE `BLOE'\n, + sub { parse_conf(TYPE winreg_String dissect_myminregstring FT_UINT32 BLOE 0 0 2\n); });
svn commit: samba r21556 - in branches: SAMBA_3_0/source/libads SAMBA_3_0_25/source/libads
Author: gd Date: 2007-02-27 13:25:42 + (Tue, 27 Feb 2007) New Revision: 21556 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21556 Log: Remove superfluos return check in ads_keytab_verify_ticket(). Guenther Modified: branches/SAMBA_3_0/source/libads/kerberos_verify.c branches/SAMBA_3_0_25/source/libads/kerberos_verify.c Changeset: Modified: branches/SAMBA_3_0/source/libads/kerberos_verify.c === --- branches/SAMBA_3_0/source/libads/kerberos_verify.c 2007-02-27 12:46:19 UTC (rev 21555) +++ branches/SAMBA_3_0/source/libads/kerberos_verify.c 2007-02-27 13:25:42 UTC (rev 21556) @@ -88,7 +88,6 @@ goto out; } - if (ret != KRB5_KT_END ret != ENOENT ) { while (!auth_ok (krb5_kt_next_entry(context, keytab, kt_entry, kt_cursor) == 0)) { ret = smb_krb5_unparse_name(context, kt_entry.principal, entry_princ_s); if (ret) { @@ -146,7 +145,6 @@ ZERO_STRUCT(kt_entry); } krb5_kt_end_seq_get(context, keytab, kt_cursor); - } ZERO_STRUCT(kt_cursor); Modified: branches/SAMBA_3_0_25/source/libads/kerberos_verify.c === --- branches/SAMBA_3_0_25/source/libads/kerberos_verify.c 2007-02-27 12:46:19 UTC (rev 21555) +++ branches/SAMBA_3_0_25/source/libads/kerberos_verify.c 2007-02-27 13:25:42 UTC (rev 21556) @@ -88,7 +88,6 @@ goto out; } - if (ret != KRB5_KT_END ret != ENOENT ) { while (!auth_ok (krb5_kt_next_entry(context, keytab, kt_entry, kt_cursor) == 0)) { ret = smb_krb5_unparse_name(context, kt_entry.principal, entry_princ_s); if (ret) { @@ -146,7 +145,6 @@ ZERO_STRUCT(kt_entry); } krb5_kt_end_seq_get(context, keytab, kt_cursor); - } ZERO_STRUCT(kt_cursor);
svn commit: samba r21557 - in branches: SAMBA_3_0/source/libads SAMBA_3_0_25/source/libads
Author: gd Date: 2007-02-27 13:27:31 + (Tue, 27 Feb 2007) New Revision: 21557 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21557 Log: indent only fix. No code change. Guenther Modified: branches/SAMBA_3_0/source/libads/kerberos_verify.c branches/SAMBA_3_0_25/source/libads/kerberos_verify.c Changeset: Modified: branches/SAMBA_3_0/source/libads/kerberos_verify.c === --- branches/SAMBA_3_0/source/libads/kerberos_verify.c 2007-02-27 13:25:42 UTC (rev 21556) +++ branches/SAMBA_3_0/source/libads/kerberos_verify.c 2007-02-27 13:27:31 UTC (rev 21557) @@ -88,63 +88,63 @@ goto out; } - while (!auth_ok (krb5_kt_next_entry(context, keytab, kt_entry, kt_cursor) == 0)) { - ret = smb_krb5_unparse_name(context, kt_entry.principal, entry_princ_s); - if (ret) { - DEBUG(1, (ads_keytab_verify_ticket: smb_krb5_unparse_name failed (%s)\n, - error_message(ret))); - goto out; - } + while (!auth_ok (krb5_kt_next_entry(context, keytab, kt_entry, kt_cursor) == 0)) { + ret = smb_krb5_unparse_name(context, kt_entry.principal, entry_princ_s); + if (ret) { + DEBUG(1, (ads_keytab_verify_ticket: smb_krb5_unparse_name failed (%s)\n, + error_message(ret))); + goto out; + } - for (i = 0; i sizeof(valid_princ_formats) / sizeof(valid_princ_formats[0]); i++) { - if (strequal(entry_princ_s, valid_princ_formats[i])) { - number_matched_principals++; - p_packet-length = ticket-length; - p_packet-data = (char *)ticket-data; - *pp_tkt = NULL; + for (i = 0; i sizeof(valid_princ_formats) / sizeof(valid_princ_formats[0]); i++) { + if (strequal(entry_princ_s, valid_princ_formats[i])) { + number_matched_principals++; + p_packet-length = ticket-length; + p_packet-data = (char *)ticket-data; + *pp_tkt = NULL; - ret = krb5_rd_req_return_keyblock_from_keytab(context, auth_context, p_packet, - kt_entry.principal, keytab, - NULL, pp_tkt, keyblock); + ret = krb5_rd_req_return_keyblock_from_keytab(context, auth_context, p_packet, + kt_entry.principal, keytab, + NULL, pp_tkt, keyblock); - if (ret) { - DEBUG(10,(ads_keytab_verify_ticket: - krb5_rd_req_return_keyblock_from_keytab(%s) failed: %s\n, - entry_princ_s, error_message(ret))); + if (ret) { + DEBUG(10,(ads_keytab_verify_ticket: + krb5_rd_req_return_keyblock_from_keytab(%s) failed: %s\n, + entry_princ_s, error_message(ret))); - /* workaround for MIT: -* as krb5_ktfile_get_entry will -* explicitly close the -* krb5_keytab as soon as -* krb5_rd_req has sucessfully -* decrypted the ticket but the -* ticket is not valid yet (due -* to clockskew) there is no -* point in querying more -* keytab entries - Guenther */ + /* workaround for MIT: +* as krb5_ktfile_get_entry will +* explicitly close the +* krb5_keytab as soon as +* krb5_rd_req has sucessfully +* decrypted
svn commit: samba r21558 - in branches: SAMBA_3_0/source/libads SAMBA_3_0_25/source/libads
Author: gd Date: 2007-02-27 13:31:42 + (Tue, 27 Feb 2007) New Revision: 21558 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21558 Log: Safe more indent, again no code changes. Guenther Modified: branches/SAMBA_3_0/source/libads/kerberos_verify.c branches/SAMBA_3_0_25/source/libads/kerberos_verify.c Changeset: Modified: branches/SAMBA_3_0/source/libads/kerberos_verify.c === --- branches/SAMBA_3_0/source/libads/kerberos_verify.c 2007-02-27 13:27:31 UTC (rev 21557) +++ branches/SAMBA_3_0/source/libads/kerberos_verify.c 2007-02-27 13:31:42 UTC (rev 21558) @@ -96,44 +96,44 @@ goto out; } - for (i = 0; i sizeof(valid_princ_formats) / sizeof(valid_princ_formats[0]); i++) { - if (strequal(entry_princ_s, valid_princ_formats[i])) { - number_matched_principals++; - p_packet-length = ticket-length; - p_packet-data = (char *)ticket-data; - *pp_tkt = NULL; + for (i = 0; i ARRAY_SIZE(valid_princ_formats); i++) { - ret = krb5_rd_req_return_keyblock_from_keytab(context, auth_context, p_packet, - kt_entry.principal, keytab, - NULL, pp_tkt, keyblock); + if (!strequal(entry_princ_s, valid_princ_formats[i])) { + continue; + } - if (ret) { - DEBUG(10,(ads_keytab_verify_ticket: - krb5_rd_req_return_keyblock_from_keytab(%s) failed: %s\n, - entry_princ_s, error_message(ret))); + number_matched_principals++; + p_packet-length = ticket-length; + p_packet-data = (char *)ticket-data; + *pp_tkt = NULL; - /* workaround for MIT: -* as krb5_ktfile_get_entry will -* explicitly close the -* krb5_keytab as soon as -* krb5_rd_req has sucessfully -* decrypted the ticket but the -* ticket is not valid yet (due -* to clockskew) there is no -* point in querying more -* keytab entries - Guenther */ - - if (ret == KRB5KRB_AP_ERR_TKT_NYV || - ret == KRB5KRB_AP_ERR_TKT_EXPIRED) { - break; - } - } else { - DEBUG(3,(ads_keytab_verify_ticket: - krb5_rd_req_return_keyblock_from_keytab succeeded for principal %s\n, - entry_princ_s)); - auth_ok = True; + ret = krb5_rd_req_return_keyblock_from_keytab(context, auth_context, p_packet, + kt_entry.principal, keytab, + NULL, pp_tkt, keyblock); + + if (ret) { + DEBUG(10,(ads_keytab_verify_ticket: + krb5_rd_req_return_keyblock_from_keytab(%s) failed: %s\n, + entry_princ_s, error_message(ret))); + + /* workaround for MIT: + * as krb5_ktfile_get_entry will explicitly + * close the krb5_keytab as soon as krb5_rd_req + * has sucessfully decrypted the ticket but the + * ticket is not valid yet (due to clockskew) + * there is no point in querying more keytab + * entries - Guenther */ + + if (ret == KRB5KRB_AP_ERR_TKT_NYV || + ret == KRB5KRB_AP_ERR_TKT_EXPIRED) { break; } + } else { +
Rev 11601: More tests. in file:///home/jelmer/bzr.samba/SAMBA_4_0/
At file:///home/jelmer/bzr.samba/SAMBA_4_0/ revno: 11601 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Tue 2007-02-27 14:39:30 +0100 message: More tests. modified: source/pidl/tests/wireshark-conf.pl svn-v2:[EMAIL PROTECTED] === modified file 'source/pidl/tests/wireshark-conf.pl' --- a/source/pidl/tests/wireshark-conf.pl 2007-02-27 12:46:19 + +++ b/source/pidl/tests/wireshark-conf.pl 2007-02-27 13:39:30 + @@ -5,7 +5,7 @@ use strict; use warnings; -use Test::More tests = 34; +use Test::More tests = 45; use FindBin qw($RealBin); use lib $RealBin; use Util; @@ -94,3 +94,72 @@ test_warnings(nofile:1: invalid BASE_TYPE `BLOE'\n, sub { parse_conf(TYPE winreg_String dissect_myminregstring FT_UINT32 BLOE 0 0 2\n); }); + +is_deeply(parse_conf(TFS hf_bla \True string\ \False String\\n), + { tfs = { hf_bla = { + TRUE_STRING = \True string\, + FALSE_STRING = \False String\ } } }); + +test_errors(nofile:1: incomplete TFS command\n, + sub { parse_conf(TFS hf_bla \Trues\); } ); + +test_errors(nofile:1: incomplete PARAM_VALUE command\n, + sub { parse_conf(PARAM_VALUE\n); }); + +is_deeply(parse_conf(PARAM_VALUE Life 42\n), + { dissectorparams = { + Life = { + DISSECTOR = Life, + POS = { FILE = nofile, LINE = 1 }, + PARAM = 42, + USED = 0 + } + } + }); + +is_deeply(parse_conf(STRIP_PREFIX bla_\n), + { strip_prefixes = [ bla_ ] }); + +is_deeply(parse_conf(STRIP_PREFIX bla_\nSTRIP_PREFIX bloe\n), + { strip_prefixes = [ bla_, bloe ] }); + +is_deeply(parse_conf(PROTOCOL atsvc \Scheduling jobs on remote machines\ \at\ \atsvc\\n), + { protocols = { + atsvc = { + LONGNAME = \Scheduling jobs on remote machines\, + SHORTNAME = \at\, + FILTERNAME = \atsvc\ + } + } + } +); + +is_deeply(parse_conf(IMPORT bla\n), { + imports = { + bla = { + NAME = bla, + DATA = , + USED = 0, + POS = { FILE = nofile, LINE = 1 } + } + } + } +); + +is_deeply(parse_conf(IMPORT bla fn1 fn2 fn3\n), { + imports = { + bla = { + NAME = bla, + DATA = fn1 fn2 fn3, + USED = 0, + POS = { FILE = nofile, LINE = 1 } + } + } + } +); + +test_errors(nofile:1: no dissectorname specified\n, + sub { parse_conf(IMPORT\n); } ); + +test_errors(nofile:1: incomplete HF_FIELD command\n, + sub { parse_conf(HF_FIELD hf_idx\n); });
svn commit: samba r21559 - in branches/SAMBA_4_0: . source/pidl/tests
Author: jelmer Date: 2007-02-27 13:41:56 + (Tue, 27 Feb 2007) New Revision: 21559 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21559 Log: More tests. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/pidl/tests/wireshark-conf.pl Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/pidl/tests/wireshark-conf.pl === --- branches/SAMBA_4_0/source/pidl/tests/wireshark-conf.pl 2007-02-27 13:31:42 UTC (rev 21558) +++ branches/SAMBA_4_0/source/pidl/tests/wireshark-conf.pl 2007-02-27 13:41:56 UTC (rev 21559) @@ -5,7 +5,7 @@ use strict; use warnings; -use Test::More tests = 34; +use Test::More tests = 45; use FindBin qw($RealBin); use lib $RealBin; use Util; @@ -94,3 +94,72 @@ test_warnings(nofile:1: invalid BASE_TYPE `BLOE'\n, sub { parse_conf(TYPE winreg_String dissect_myminregstring FT_UINT32 BLOE 0 0 2\n); }); + +is_deeply(parse_conf(TFS hf_bla \True string\ \False String\\n), +
svn commit: samba r21560 - in branches: SAMBA_3_0/source/lib SAMBA_3_0_25/source/lib
Author: gd Date: 2007-02-27 13:42:15 + (Tue, 27 Feb 2007) New Revision: 21560 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21560 Log: Convert name_to_fqdn to BOOL. Guenther Modified: branches/SAMBA_3_0/source/lib/util.c branches/SAMBA_3_0_25/source/lib/util.c Changeset: Modified: branches/SAMBA_3_0/source/lib/util.c === --- branches/SAMBA_3_0/source/lib/util.c2007-02-27 13:41:56 UTC (rev 21559) +++ branches/SAMBA_3_0/source/lib/util.c2007-02-27 13:42:15 UTC (rev 21560) @@ -2902,10 +2902,11 @@ } /** - Converts a name to a fully qalified domain name. + Converts a name to a fully qualified domain name. + Returns True if lookup succeeded, False if not (then fqdn is set to name) ***/ -void name_to_fqdn(fstring fqdn, const char *name) +BOOL name_to_fqdn(fstring fqdn, const char *name) { struct hostent *hp = sys_gethostbyname(name); @@ -2927,7 +2928,7 @@ if (full (StrCaseCmp(full, localhost.localdomain) == 0)) { DEBUG(1, (WARNING: your /etc/hosts file may be broken!\n)); DEBUGADD(1, (Specifing the machine hostname for address 127.0.0.1 may lead\n)); - DEBUGADD(1, (to Kerberos authentication probelms as localhost.localdomain\n)); + DEBUGADD(1, (to Kerberos authentication problems as localhost.localdomain\n)); DEBUGADD(1, (may end up being used instead of the real machine FQDN.\n)); full = hp-h_name; } @@ -2938,9 +2939,11 @@ DEBUG(10,(name_to_fqdn: lookup for %s - %s.\n, name, full)); fstrcpy(fqdn, full); + return True; } else { DEBUG(10,(name_to_fqdn: lookup for %s failed.\n, name)); fstrcpy(fqdn, name); + return False; } } Modified: branches/SAMBA_3_0_25/source/lib/util.c === --- branches/SAMBA_3_0_25/source/lib/util.c 2007-02-27 13:41:56 UTC (rev 21559) +++ branches/SAMBA_3_0_25/source/lib/util.c 2007-02-27 13:42:15 UTC (rev 21560) @@ -2902,10 +2902,11 @@ } /** - Converts a name to a fully qalified domain name. + Converts a name to a fully qualified domain name. + Returns True if lookup succeeded, False if not (then fqdn is set to name) ***/ -void name_to_fqdn(fstring fqdn, const char *name) +BOOL name_to_fqdn(fstring fqdn, const char *name) { struct hostent *hp = sys_gethostbyname(name); @@ -2927,7 +2928,7 @@ if (full (StrCaseCmp(full, localhost.localdomain) == 0)) { DEBUG(1, (WARNING: your /etc/hosts file may be broken!\n)); DEBUGADD(1, (Specifing the machine hostname for address 127.0.0.1 may lead\n)); - DEBUGADD(1, (to Kerberos authentication probelms as localhost.localdomain\n)); + DEBUGADD(1, (to Kerberos authentication problems as localhost.localdomain\n)); DEBUGADD(1, (may end up being used instead of the real machine FQDN.\n)); full = hp-h_name; } @@ -2938,9 +2939,11 @@ DEBUG(10,(name_to_fqdn: lookup for %s - %s.\n, name, full)); fstrcpy(fqdn, full); + return True; } else { DEBUG(10,(name_to_fqdn: lookup for %s failed.\n, name)); fstrcpy(fqdn, name); + return False; } }
svn commit: samba r21561 - in branches: SAMBA_3_0/source/libads SAMBA_3_0_25/source/libads
Author: gd Date: 2007-02-27 14:24:49 + (Tue, 27 Feb 2007) New Revision: 21561 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21561 Log: It makes absolutely no sense to call krb5_kt_resolve() two times directly after another. Guenther Modified: branches/SAMBA_3_0/source/libads/kerberos_keytab.c branches/SAMBA_3_0_25/source/libads/kerberos_keytab.c Changeset: Modified: branches/SAMBA_3_0/source/libads/kerberos_keytab.c === --- branches/SAMBA_3_0/source/libads/kerberos_keytab.c 2007-02-27 13:42:15 UTC (rev 21560) +++ branches/SAMBA_3_0/source/libads/kerberos_keytab.c 2007-02-27 14:24:49 UTC (rev 21561) @@ -408,14 +408,9 @@ DEBUG(3,(ads_keytab_flush: Using default keytab: %s\n, (char *) keytab_name)); ret = krb5_kt_resolve(context, (char *) keytab_name, keytab); if (ret) { - DEBUG(1,(ads_keytab_flush: krb5_kt_default failed (%s)\n, error_message(ret))); + DEBUG(1,(ads_keytab_flush: krb5_kt_resolve failed (%s)\n, error_message(ret))); goto out; } - ret = krb5_kt_resolve(context, (char *) keytab_name, keytab); - if (ret) { - DEBUG(1,(ads_keytab_flush: krb5_kt_default failed (%s)\n, error_message(ret))); - goto out; - } kvno = (krb5_kvno) ads_get_kvno(ads, global_myname()); if (kvno == -1) { /* -1 indicates a failure */ Modified: branches/SAMBA_3_0_25/source/libads/kerberos_keytab.c === --- branches/SAMBA_3_0_25/source/libads/kerberos_keytab.c 2007-02-27 13:42:15 UTC (rev 21560) +++ branches/SAMBA_3_0_25/source/libads/kerberos_keytab.c 2007-02-27 14:24:49 UTC (rev 21561) @@ -408,14 +408,9 @@ DEBUG(3,(ads_keytab_flush: Using default keytab: %s\n, (char *) keytab_name)); ret = krb5_kt_resolve(context, (char *) keytab_name, keytab); if (ret) { - DEBUG(1,(ads_keytab_flush: krb5_kt_default failed (%s)\n, error_message(ret))); + DEBUG(1,(ads_keytab_flush: krb5_kt_resolve failed (%s)\n, error_message(ret))); goto out; } - ret = krb5_kt_resolve(context, (char *) keytab_name, keytab); - if (ret) { - DEBUG(1,(ads_keytab_flush: krb5_kt_default failed (%s)\n, error_message(ret))); - goto out; - } kvno = (krb5_kvno) ads_get_kvno(ads, global_myname()); if (kvno == -1) { /* -1 indicates a failure */
Rev 5277: Regenerate gen_ndr after pidl changes. in file:///home/jelmer/bzr.samba/SAMBA_3_0/
At file:///home/jelmer/bzr.samba/SAMBA_3_0/ revno: 5277 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_3_0 timestamp: Tue 2007-02-27 18:14:47 +0100 message: Regenerate gen_ndr after pidl changes. modified: source/librpc/gen_ndr/echo.h svn-v2:[EMAIL PROTECTED] source/librpc/gen_ndr/eventlog.h svn-v2:[EMAIL PROTECTED] source/librpc/gen_ndr/lsa.hsvn-v2:[EMAIL PROTECTED] source/librpc/gen_ndr/ndr_dfs.c svn-v2:[EMAIL PROTECTED] source/librpc/gen_ndr/ndr_echo.c svn-v2:[EMAIL PROTECTED] source/librpc/gen_ndr/ndr_initshutdown.c svn-v2:[EMAIL PROTECTED] source/librpc/gen_ndr/ndr_lsa.c svn-v2:[EMAIL PROTECTED] source/librpc/gen_ndr/ndr_netlogon.c svn-v2:[EMAIL PROTECTED] source/librpc/gen_ndr/ndr_srvsvc.c svn-v2:[EMAIL PROTECTED] source/librpc/gen_ndr/ndr_winreg.c svn-v2:[EMAIL PROTECTED] source/librpc/gen_ndr/ndr_wkssvc.c svn-v2:[EMAIL PROTECTED] source/librpc/gen_ndr/netlogon.h svn-v2:[EMAIL PROTECTED] source/librpc/gen_ndr/srvsvc.h svn-v2:[EMAIL PROTECTED] source/librpc/gen_ndr/svcctl.h svn-v2:[EMAIL PROTECTED] source/librpc/gen_ndr/winreg.h svn-v2:[EMAIL PROTECTED] source/librpc/gen_ndr/wkssvc.h svn-v2:[EMAIL PROTECTED] source/librpc/ndr/libndr.h svn-v2:[EMAIL PROTECTED] source/librpc/ndr/ndr.csvn-v2:[EMAIL PROTECTED] source/librpc/ndr/ndr_basic.c svn-v2:[EMAIL PROTECTED] Diff too large for email (1463 lines, the limit is 1000).
svn commit: samba r21562 - in branches/SAMBA_3_0: . source/librpc/gen_ndr source/librpc/ndr
Author: jelmer Date: 2007-02-27 17:17:16 + (Tue, 27 Feb 2007) New Revision: 21562 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21562 Log: Regenerate gen_ndr after pidl changes. Modified: branches/SAMBA_3_0/ branches/SAMBA_3_0/source/librpc/gen_ndr/echo.h branches/SAMBA_3_0/source/librpc/gen_ndr/eventlog.h branches/SAMBA_3_0/source/librpc/gen_ndr/lsa.h branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_dfs.c branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_echo.c branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_initshutdown.c branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_lsa.c branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_netlogon.c branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_srvsvc.c branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_winreg.c branches/SAMBA_3_0/source/librpc/gen_ndr/ndr_wkssvc.c branches/SAMBA_3_0/source/librpc/gen_ndr/netlogon.h branches/SAMBA_3_0/source/librpc/gen_ndr/srvsvc.h branches/SAMBA_3_0/source/librpc/gen_ndr/svcctl.h branches/SAMBA_3_0/source/librpc/gen_ndr/winreg.h branches/SAMBA_3_0/source/librpc/gen_ndr/wkssvc.h branches/SAMBA_3_0/source/librpc/ndr/libndr.h branches/SAMBA_3_0/source/librpc/ndr/ndr.c branches/SAMBA_3_0/source/librpc/ndr/ndr_basic.c Changeset: Sorry, the patch is too large (1523 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21562
svn commit: samba r21563 - in branches: SAMBA_3_0/source/rpc_server SAMBA_3_0_25/source/rpc_server
Author: vlendec Date: 2007-02-27 17:21:21 + (Tue, 27 Feb 2007) New Revision: 21563 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21563 Log: Fix a memleak: We only need dispinfo structs for our and for the builtin domain. Without this patch we leaked a DISPINFO for the (NULL) domain per samr_connect*() call. Volker Modified: branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c branches/SAMBA_3_0_25/source/rpc_server/srv_samr_nt.c Changeset: Modified: branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c === --- branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c 2007-02-27 17:17:16 UTC (rev 21562) +++ branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c 2007-02-27 17:21:21 UTC (rev 21563) @@ -46,8 +46,6 @@ #define DISP_INFO_CACHE_TIMEOUT 10 typedef struct disp_info { - struct disp_info *next, *prev; - TALLOC_CTX *mem_ctx; DOM_SID sid; /* identify which domain this is. */ BOOL builtin_domain; /* Quick flag to check if this is the builtin domain. */ struct pdb_search *users; /* querydispinfo 1 and 4 */ @@ -65,8 +63,6 @@ /* We keep a static list of these by SID as modern clients close down all resources between each request in a complete enumeration. */ -static DISP_INFO *disp_info_list; - struct samr_info { /* for use by the \PIPE\samr policy */ DOM_SID sid; @@ -254,49 +250,59 @@ Fetch or create a dispinfo struct. / -static DISP_INFO *get_samr_dispinfo_by_sid(DOM_SID *psid, const char *sid_str) +static DISP_INFO *get_samr_dispinfo_by_sid(DOM_SID *psid) { - TALLOC_CTX *mem_ctx; - DISP_INFO *dpi; + /* +* We do a static cache for DISP_INFO's here. Explanation can be found +* in Jeremy's checkin message to r11793: +* +* Fix the SAMR cache so it works across completely insane +* client behaviour (ie.: +* open pipe/open SAMR handle/enumerate 0 - 1024 +* close SAMR handle, close pipe. +* open pipe/open SAMR handle/enumerate 1024 - 2048... +* close SAMR handle, close pipe. +* And on ad-nausium. Amazing probably object-oriented +* client side programming in action yet again. +* This change should *massively* improve performance when +* enumerating users from an LDAP database. +* Jeremy. +* +* Our and the builtin domain are the only ones where we ever +* enumerate stuff, so just cache 2 entries. +*/ + static struct disp_info builtin_dispinfo; + static struct disp_info domain_dispinfo; + /* There are two cases to consider here: 1) The SID is a domain SID and we look for an equality match, or 2) This is an account SID and so we return the DISP_INFO* for our domain */ - if ( psid sid_check_is_in_our_domain( psid ) ) { - DEBUG(10,(get_samr_dispinfo_by_sid: Replacing %s with our domain SID\n, - sid_str)); - psid = get_global_sam_sid(); + if (psid == NULL) { + return NULL; } - for (dpi = disp_info_list; dpi; dpi = dpi-next) { - if (sid_equal(psid, dpi-sid)) { - return dpi; - } + if (sid_check_is_builtin(psid) || sid_check_is_in_builtin(psid)) { + /* +* Necessary only once, but it does not really hurt. +*/ + sid_copy(builtin_dispinfo.sid, global_sid_Builtin); + + return builtin_dispinfo; } + + if (sid_check_is_domain(psid) || sid_check_is_in_our_domain(psid)) { + /* +* Necessary only once, but it does not really hurt. +*/ + sid_copy(domain_dispinfo.sid, get_global_sam_sid()); - /* This struct is never free'd - I'm using talloc so we - can get a list out of smbd using smbcontrol. There will - be one of these per SID we're authorative for. JRA. */ - - mem_ctx = talloc_init(DISP_INFO for domain sid %s, sid_str); - - if ((dpi = TALLOC_ZERO_P(mem_ctx, DISP_INFO)) == NULL) - return NULL; - - dpi-mem_ctx = mem_ctx; - - if (psid) { - sid_copy( dpi-sid, psid); - dpi-builtin_domain = sid_check_is_builtin(psid); - } else { - dpi-builtin_domain = False; + return domain_dispinfo; } - DLIST_ADD(disp_info_list, dpi); - - return dpi; + return NULL; } /*** @@ -330,13 +336,8 @@ } info-mem_ctx = mem_ctx; - info-disp_info = get_samr_dispinfo_by_sid(psid, sid_str); + info-disp_info = get_samr_dispinfo_by_sid(psid); - if
Rev 11602: Move ndrdump to librpc/tools. in file:///home/jelmer/bzr.samba/SAMBA_4_0/
At file:///home/jelmer/bzr.samba/SAMBA_4_0/ revno: 11602 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Tue 2007-02-27 18:56:50 +0100 message: Move ndrdump to librpc/tools. added: source/librpc/tools/ tools-20070227173526-58y0dvmk59n7p91c-1 renamed: source/utils/man/ndrdump.1.xml = source/librpc/tools/ndrdump.1.xml svn-v2:[EMAIL PROTECTED] source/utils/ndrdump.c = source/librpc/tools/ndrdump.c svn-v2:[EMAIL PROTECTED] modified: source/librpc/config.mksvn-v2:[EMAIL PROTECTED] source/utils/config.mk svn-v2:[EMAIL PROTECTED] source/librpc/tools/ndrdump.c svn-v2:[EMAIL PROTECTED] === added directory 'source/librpc/tools' === renamed file 'source/utils/man/ndrdump.1.xml' = 'source/librpc/tools/ndrdump.1.xml' === renamed file 'source/utils/ndrdump.c' = 'source/librpc/tools/ndrdump.c' --- a/source/utils/ndrdump.c2007-02-14 13:24:37 + +++ b/source/librpc/tools/ndrdump.c 2007-02-27 17:56:50 + @@ -2,6 +2,7 @@ Unix SMB/CIFS implementation. SMB torture tester Copyright (C) Andrew Tridgell 2003 + Copyright (C) Jelmer Vernooij 2006 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by === modified file 'source/librpc/config.mk' --- a/source/librpc/config.mk 2007-02-26 16:18:23 + +++ b/source/librpc/config.mk 2007-02-27 17:56:50 + @@ -16,6 +16,23 @@ # End SUBSYSTEM LIBNDR +# +# Start BINARY ndrdump +[BINARY::ndrdump] +INSTALLDIR = BINDIR +OBJ_FILES = \ + tools/ndrdump.o +PRIVATE_DEPENDENCIES = \ + LIBSAMBA-CONFIG \ + LIBSAMBA-UTIL \ + LIBPOPT \ + POPT_SAMBA \ + NDR_TABLE +MANPAGE = tools/ndrdump.1 +# FIXME: ndrdump shouldn't have to depend on RPC... +# End BINARY ndrdump +# + # Start SUBSYSTEM NDR_COMPRESSION [LIBRARY::NDR_COMPRESSION] === modified file 'source/utils/config.mk' --- a/source/utils/config.mk2006-11-12 03:26:11 + +++ b/source/utils/config.mk2007-02-27 17:56:50 + @@ -1,23 +1,6 @@ # utils subsystem # -# Start BINARY ndrdump -[BINARY::ndrdump] -INSTALLDIR = BINDIR -OBJ_FILES = \ - ndrdump.o -PRIVATE_DEPENDENCIES = \ - LIBSAMBA-CONFIG \ - LIBSAMBA-UTIL \ - LIBPOPT \ - POPT_SAMBA \ - NDR_TABLE -MANPAGE = man/ndrdump.1 -# FIXME: ndrdump shouldn't have to depend on RPC... -# End BINARY ndrdump -# - -# # Start BINARY ntlm_auth [BINARY::ntlm_auth] INSTALLDIR = BINDIR
svn commit: samba r21564 - in branches/SAMBA_4_0: . source/librpc source/librpc/tools source/utils
Author: jelmer Date: 2007-02-27 18:00:15 + (Tue, 27 Feb 2007) New Revision: 21564 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21564 Log: Move ndrdump to librpc/tools. Added: branches/SAMBA_4_0/source/librpc/tools/ branches/SAMBA_4_0/source/librpc/tools/ndrdump.1.xml branches/SAMBA_4_0/source/librpc/tools/ndrdump.c Removed: branches/SAMBA_4_0/source/utils/ndrdump.c Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/librpc/config.mk branches/SAMBA_4_0/source/utils/config.mk Changeset: Sorry, the patch is too large (1207 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21564
Rev 5279: Import ndrdump (doesn't compile yet, needs table support functions). in file:///home/jelmer/bzr.samba/SAMBA_3_0/
At file:///home/jelmer/bzr.samba/SAMBA_3_0/ revno: 5279 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_3_0 timestamp: Tue 2007-02-27 19:50:35 +0100 message: Import ndrdump (doesn't compile yet, needs table support functions). added: source/librpc/gen_ndr/tables.c tables.c-20070227184702-f8o646ukme2oa3ww-1 source/librpc/tables.pltables.pl-20070227184602-tja01v752w4kguim-1 source/librpc/tools/ tools-20070227180817-afkb7ecvkbcwvvbq-1 source/librpc/tools/ndrdump.c ndrdump.c-20070227180817-afkb7ecvkbcwvvbq-2 modified: source/Makefile.in svn-v2:[EMAIL PROTECTED] source/script/build_idl.sh svn-v2:[EMAIL PROTECTED] === added file 'source/librpc/gen_ndr/tables.c' --- a/source/librpc/gen_ndr/tables.c1970-01-01 00:00:00 + +++ b/source/librpc/gen_ndr/tables.c2007-02-27 18:50:35 + @@ -0,0 +1,59 @@ + +/* Automatically generated by tables.pl. DO NOT EDIT */ + +#include includes.h +#include librpc/rpc/dcerpc.h +#include librpc/rpc/dcerpc_table.h +#include librpc/gen_ndr/ndr_dfs.h +#include librpc/gen_ndr/ndr_echo.h +#include librpc/gen_ndr/ndr_eventlog.h +#include librpc/gen_ndr/ndr_initshutdown.h +#include librpc/gen_ndr/ndr_lsa.h +#include librpc/gen_ndr/ndr_netlogon.h +#include librpc/gen_ndr/ndr_srvsvc.h +#include librpc/gen_ndr/ndr_svcctl.h +#include librpc/gen_ndr/ndr_unixinfo.h +#include librpc/gen_ndr/ndr_winreg.h +#include librpc/gen_ndr/ndr_wkssvc.h + +NTSTATUS dcerpc_register_builtin_interfaces(void) +{ + NTSTATUS status; + + status = librpc_register_interface(dcerpc_table_netdfs); + if (NT_STATUS_IS_ERR(status)) return status; + + status = librpc_register_interface(dcerpc_table_rpcecho); + if (NT_STATUS_IS_ERR(status)) return status; + + status = librpc_register_interface(dcerpc_table_eventlog); + if (NT_STATUS_IS_ERR(status)) return status; + + status = librpc_register_interface(dcerpc_table_initshutdown); + if (NT_STATUS_IS_ERR(status)) return status; + + status = librpc_register_interface(dcerpc_table_lsarpc); + if (NT_STATUS_IS_ERR(status)) return status; + + status = librpc_register_interface(dcerpc_table_netlogon); + if (NT_STATUS_IS_ERR(status)) return status; + + status = librpc_register_interface(dcerpc_table_srvsvc); + if (NT_STATUS_IS_ERR(status)) return status; + + status = librpc_register_interface(dcerpc_table_svcctl); + if (NT_STATUS_IS_ERR(status)) return status; + + status = librpc_register_interface(dcerpc_table_unixinfo); + if (NT_STATUS_IS_ERR(status)) return status; + + status = librpc_register_interface(dcerpc_table_winreg); + if (NT_STATUS_IS_ERR(status)) return status; + + status = librpc_register_interface(dcerpc_table_wkssvc); + if (NT_STATUS_IS_ERR(status)) return status; + + + + return NT_STATUS_OK; +} === added file 'source/librpc/tables.pl' --- a/source/librpc/tables.pl 1970-01-01 00:00:00 + +++ b/source/librpc/tables.pl 2007-02-27 18:50:35 + @@ -0,0 +1,89 @@ +#!/usr/bin/perl -w + +### +# package to produce a table of all idl parsers +# Copyright [EMAIL PROTECTED] 2003 +# Copyright [EMAIL PROTECTED] 2005 +# released under the GNU GPL + +use strict; + +use Getopt::Long; +use File::Basename; + +my $opt_output = 'librpc/gen_ndr/tables.c'; +my $opt_help = 0; + + +# +# display help text +sub ShowHelp() +{ +print + perl DCE/RPC interface table generator + Copyright (C) [EMAIL PROTECTED] + + Usage: tables.pl [options] idlfile + + \n; +exit(0); +} + +# main program +GetOptions ( + 'help|h|?' = \$opt_help, + 'output=s' = \$opt_output, + ); + +if ($opt_help) { +ShowHelp(); +exit(0); +} + +my $init_fns = ; + +### +# extract table entries from 1 file +sub process_file($) +{ + my $filename = shift; + open(FILE, $filename) || die unable to open $filename\n; + my $found = 0; + + while (my $line = FILE) { + if ($line =~ /extern const struct dcerpc_interface_table (\w+);/) { + $found = 1; + $init_fns.=\tstatus = librpc_register_interface($1);\n; + $init_fns.=\tif (NT_STATUS_IS_ERR(status)) return status;\n\n; + } + } + + if ($found) { + print #include \$filename\\n; + } + + close(FILE); +} + +print EOF; + +/* Automatically generated by tables.pl. DO NOT EDIT */ + +#include includes.h +#include librpc/rpc/dcerpc.h +#include librpc/rpc/dcerpc_table.h +EOF + +process_file($_) foreach (@ARGV); + +print EOF; + +NTSTATUS dcerpc_register_builtin_interfaces(void) +{ +
svn commit: samba r21565 - in branches/SAMBA_3_0: . source source/librpc source/librpc/gen_ndr source/librpc/tools source/script
Author: jelmer Date: 2007-02-27 18:52:38 + (Tue, 27 Feb 2007) New Revision: 21565 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21565 Log: Import ndrdump (doesn't compile yet, needs table support functions). Added: branches/SAMBA_3_0/source/librpc/gen_ndr/tables.c branches/SAMBA_3_0/source/librpc/tables.pl branches/SAMBA_3_0/source/librpc/tools/ branches/SAMBA_3_0/source/librpc/tools/ndrdump.c Modified: branches/SAMBA_3_0/ branches/SAMBA_3_0/source/Makefile.in branches/SAMBA_3_0/source/script/build_idl.sh Changeset: Sorry, the patch is too large (705 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21565
svn commit: samba r21566 - in branches: SAMBA_3_0/source/nsswitch SAMBA_3_0_25/source/nsswitch
Author: jra Date: 2007-02-27 20:34:10 + (Tue, 27 Feb 2007) New Revision: 21566 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21566 Log: If we're going to be broken, at least be *consistently* broken :-). This will do until Simo fixes the escape calls properly. Jeremy. Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c branches/SAMBA_3_0_25/source/nsswitch/winbindd_ads.c Changeset: Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c === --- branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c 2007-02-27 18:52:38 UTC (rev 21565) +++ branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c 2007-02-27 20:34:10 UTC (rev 21566) @@ -607,6 +607,7 @@ const char *attrs[] = {memberOf, NULL}; size_t num_groups = 0; DOM_SID *group_sids = NULL; + char *escaped_dn; int i; DEBUG(3,(ads: lookup_usergroups_memberof\n)); @@ -618,9 +619,16 @@ goto done; } - rc = ads_search_retry_extended_dn(ads, res, user_dn, attrs, + if (!(escaped_dn = escape_ldap_string_alloc(user_dn))) { + status = NT_STATUS_NO_MEMORY; + goto done; + } + + rc = ads_search_retry_extended_dn(ads, res, escaped_dn, attrs, ADS_EXTENDED_DN_HEX_STRING); + SAFE_FREE(escaped_dn); + if (!ADS_ERR_OK(rc) || !res) { DEBUG(1,(lookup_usergroups_memberof ads_search member=%s: %s\n, user_dn, ads_errstr(rc))); Modified: branches/SAMBA_3_0_25/source/nsswitch/winbindd_ads.c === --- branches/SAMBA_3_0_25/source/nsswitch/winbindd_ads.c2007-02-27 18:52:38 UTC (rev 21565) +++ branches/SAMBA_3_0_25/source/nsswitch/winbindd_ads.c2007-02-27 20:34:10 UTC (rev 21566) @@ -607,6 +607,7 @@ const char *attrs[] = {memberOf, NULL}; size_t num_groups = 0; DOM_SID *group_sids = NULL; + char *escaped_dn; int i; DEBUG(3,(ads: lookup_usergroups_memberof\n)); @@ -618,9 +619,16 @@ goto done; } - rc = ads_search_retry_extended_dn(ads, res, user_dn, attrs, + if (!(escaped_dn = escape_ldap_string_alloc(user_dn))) { + status = NT_STATUS_NO_MEMORY; + goto done; + } + + rc = ads_search_retry_extended_dn(ads, res, escaped_dn, attrs, ADS_EXTENDED_DN_HEX_STRING); + SAFE_FREE(escaped_dn); + if (!ADS_ERR_OK(rc) || !res) { DEBUG(1,(lookup_usergroups_memberof ads_search member=%s: %s\n, user_dn, ads_errstr(rc)));
Rev 11603: Add some more wireshark tests. in file:///home/jelmer/bzr.samba/SAMBA_4_0/
At file:///home/jelmer/bzr.samba/SAMBA_4_0/ revno: 11603 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Tue 2007-02-27 21:32:16 +0100 message: Add some more wireshark tests. modified: source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm svn-v2:[EMAIL PROTECTED] source/pidl/tests/wireshark-ndr.pl svn-v2:[EMAIL PROTECTED] === modified file 'source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm' --- a/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm 2007-02-26 01:03:19 + +++ b/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm 2007-02-27 20:32:16 + @@ -18,7 +18,7 @@ use Exporter; @ISA = qw(Exporter); [EMAIL PROTECTED] = qw(field2name @ett %res PrintIdl StripPrefixes %hf_used RegisterInterfaceHandoff $conformance register_hf_field CheckUsed); [EMAIL PROTECTED] = qw(field2name @ett %res PrintIdl StripPrefixes %hf_used RegisterInterfaceHandoff $conformance register_hf_field CheckUsed ProcessImport ProcessInclude find_type DumpEttList DumpEttDeclaration DumpHfList DumpHfDeclaration DumpFunctionTable); use strict; use Parse::Pidl qw(error warning); @@ -671,7 +671,7 @@ indent; $res{code}.=DumpHfList().\n; - $res{code}.=\n.DumpEttList().\n; + $res{code}.=\n.DumpEttList(@ett).\n; if (defined($x-{UUID})) { # These can be changed to non-pidl_code names if the old dissectors @@ -730,8 +730,9 @@ { my @includes = @_; foreach (@includes) { - pidl_hdr #include \$_\\n; + pidl_hdr #include \$_\; } + pidl_hdr ; } sub ProcessImport @@ -741,8 +742,9 @@ next if($_ eq security); s/\.idl\$//; s/^\//; - pidl_hdr #include \packet-dcerpc-$_\.h\\n; + pidl_hdr #include \packet-dcerpc-$_\.h\; } + pidl_hdr ; } sub ProcessInterface($) @@ -924,7 +926,7 @@ ProcessInclude(@{$_-{PATHS}}) if ($_-{TYPE} eq INCLUDE); } - $res{ett} = DumpEttDeclaration(); + $res{ett} = DumpEttDeclaration(@ett); $res{hf} = DumpHfDeclaration(); my $parser = $notice; @@ -956,8 +958,9 @@ push (@ett, $name); } -sub DumpEttList() +sub DumpEttList { + my @ett = @_; my $res = \tstatic gint *ett[] = {\n; foreach (@ett) { $res .= \t\t$_,\n; @@ -966,8 +969,9 @@ return $res\t};\n; } -sub DumpEttDeclaration() +sub DumpEttDeclaration { + my @ett = @_; my $res = \n/* Ett declarations */\n; foreach (@ett) { $res .= static gint $_ = -1;\n; === modified file 'source/pidl/tests/wireshark-ndr.pl' --- a/source/pidl/tests/wireshark-ndr.pl2007-02-26 17:43:01 + +++ b/source/pidl/tests/wireshark-ndr.pl2007-02-27 20:32:16 + @@ -5,12 +5,12 @@ use strict; use warnings; -use Test::More tests = 13; +use Test::More tests = 25; use FindBin qw($RealBin); use lib $RealBin; use Util; use Parse::Pidl::Util qw(MyDumper); -use Parse::Pidl::Wireshark::NDR qw(field2name %res PrintIdl StripPrefixes %hf_used RegisterInterfaceHandoff $conformance register_hf_field CheckUsed); +use Parse::Pidl::Wireshark::NDR qw(field2name %res PrintIdl StripPrefixes %hf_used RegisterInterfaceHandoff $conformance register_hf_field CheckUsed ProcessImport ProcessInclude find_type DumpEttList DumpEttDeclaration DumpHfList DumpHfDeclaration DumpFunctionTable); is(Access Mask, field2name(access_mask)); is(Accessmask, field2name(AccessMask)); @@ -70,3 +70,68 @@ %hf_used = ( ); test_warnings(hf field `hf_bla' not used\n, sub { CheckUsed({ header_fields = { foo = { INDEX = hf_bla }}})}); + +$res{hdr} = ; +ProcessImport(security, bla); +is($res{hdr}, #include \packet-dcerpc-bla.h\\n\n); + +$res{hdr} = ; +ProcessImport(\bla.idl\, \foo.idl\); +is($res{hdr}, #include \packet-dcerpc-bla.h\\n . + #include \packet-dcerpc-foo.h\\n\n); + +$res{hdr} = ; +ProcessInclude(foo.h, bla.h, bar.h); +is($res{hdr}, #include \foo.h\\n . + #include \bla.h\\n . + #include \bar.h\\n\n); + +$conformance = {types = { bla = brainslug } }; +is(brainslug, find_type(bla)); + +is(DumpEttList(ett_t1, ett_bla), + \tstatic gint *ett[] = {\n . + \t\tett_t1,\n . + \t\tett_bla,\n . + \t};\n); + +is(DumpEttList(), \tstatic gint *ett[] = {\n\t};\n); +is(DumpEttList(bla), \tstatic gint *ett[] = {\n\t\tbla,\n\t};\n); + +is(DumpEttDeclaration(void, zoid), + \n/* Ett declarations */\n . + static gint void = -1;\n . + static gint zoid = -1;\n . + \n); + +is(DumpEttDeclaration(), \n/* Ett declarations */\n\n); + +$conformance = { + header_fields = { + hf_bla = { INDEX = hf_bla, NAME = Bla, FILTER = bla.field, FT_TYPE = FT_UINT32, BASE_TYPE =
svn commit: samba r21567 - in branches/SAMBA_4_0: . source/pidl/lib/Parse/Pidl/Wireshark source/pidl/tests
Author: jelmer Date: 2007-02-27 20:35:56 + (Tue, 27 Feb 2007) New Revision: 21567 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21567 Log: Add some more wireshark tests. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm branches/SAMBA_4_0/source/pidl/tests/wireshark-ndr.pl Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm === --- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm 2007-02-27 20:34:10 UTC (rev 21566) +++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm 2007-02-27 20:35:56 UTC (rev 21567) @@ -18,7 +18,7 @@ use Exporter; @ISA = qw(Exporter); [EMAIL PROTECTED] = qw(field2name @ett %res PrintIdl StripPrefixes %hf_used RegisterInterfaceHandoff $conformance register_hf_field CheckUsed); [EMAIL PROTECTED] =
Rev 11604: More tests. in file:///home/jelmer/bzr.samba/SAMBA_4_0/
At file:///home/jelmer/bzr.samba/SAMBA_4_0/ revno: 11604 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Tue 2007-02-27 22:33:57 +0100 message: More tests. modified: source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm svn-v2:[EMAIL PROTECTED] source/pidl/tests/wireshark-ndr.pl svn-v2:[EMAIL PROTECTED] === modified file 'source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm' --- a/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm 2007-02-27 20:35:56 + +++ b/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm 2007-02-27 21:33:57 + @@ -18,7 +18,7 @@ use Exporter; @ISA = qw(Exporter); [EMAIL PROTECTED] = qw(field2name @ett %res PrintIdl StripPrefixes %hf_used RegisterInterfaceHandoff $conformance register_hf_field CheckUsed ProcessImport ProcessInclude find_type DumpEttList DumpEttDeclaration DumpHfList DumpHfDeclaration DumpFunctionTable); [EMAIL PROTECTED] = qw(field2name @ett %res PrintIdl StripPrefixes %hf_used RegisterInterfaceHandoff $conformance register_hf_field CheckUsed ProcessImport ProcessInclude find_type DumpEttList DumpEttDeclaration DumpHfList DumpHfDeclaration DumpFunctionTable register_type register_ett); use strict; use Parse::Pidl qw(error warning); === modified file 'source/pidl/tests/wireshark-ndr.pl' --- a/source/pidl/tests/wireshark-ndr.pl2007-02-27 20:35:56 + +++ b/source/pidl/tests/wireshark-ndr.pl2007-02-27 21:33:57 + @@ -5,12 +5,12 @@ use strict; use warnings; -use Test::More tests = 25; +use Test::More tests = 40; use FindBin qw($RealBin); use lib $RealBin; use Util; use Parse::Pidl::Util qw(MyDumper); -use Parse::Pidl::Wireshark::NDR qw(field2name %res PrintIdl StripPrefixes %hf_used RegisterInterfaceHandoff $conformance register_hf_field CheckUsed ProcessImport ProcessInclude find_type DumpEttList DumpEttDeclaration DumpHfList DumpHfDeclaration DumpFunctionTable); +use Parse::Pidl::Wireshark::NDR qw(field2name %res PrintIdl StripPrefixes %hf_used RegisterInterfaceHandoff $conformance register_hf_field CheckUsed ProcessImport ProcessInclude find_type DumpEttList DumpEttDeclaration DumpHfList DumpHfDeclaration DumpFunctionTable register_type @ett register_ett); is(Access Mask, field2name(access_mask)); is(Accessmask, field2name(AccessMask)); @@ -45,7 +45,8 @@ is($hf_used{hf_bla_opnum}, 1); $conformance = {}; -register_hf_field(hf_bla_idx, bla, my.filter, FT_UINT32, BASE_HEX, NULL, 0xF, undef); +is(hf_bla_idx, + register_hf_field(hf_bla_idx, bla, my.filter, FT_UINT32, BASE_HEX, NULL, 0xF, undef)); is_deeply($conformance, { header_fields = { hf_bla_idx = { @@ -63,6 +64,61 @@ fielddescription = {} }); +$conformance = { fielddescription = { hf_bla_idx = { DESCRIPTION = Some Description }}}; +is(hf_bla_idx, + register_hf_field(hf_bla_idx, bla, my.filter, FT_UINT32, BASE_HEX, NULL, 0xF, undef)); +is_deeply($conformance, { + fielddescription = { + hf_bla_idx = { + DESCRIPTION = Some Description, + USED = 1 + } + }, + header_fields = { + hf_bla_idx = { + INDEX = hf_bla_idx, + NAME = bla, + FILTER = my.filter, + BASE_TYPE = BASE_HEX, + FT_TYPE = FT_UINT32, + VALSSTRING = NULL, + BLURB = Some Description, + MASK = 0xF + } + }, + hf_renames = {}, +}); + +$conformance = { fielddescription = { hf_bla_idx = { DESCRIPTION = Some Description }}}; +is(hf_bla_idx, + register_hf_field(hf_bla_idx, bla, my.filter, FT_UINT32, BASE_HEX, NULL, 0xF, + Actual Description)); +is_deeply($conformance, { + fielddescription = { + hf_bla_idx = { DESCRIPTION = Some Description } + }, + header_fields = { + hf_bla_idx = { + INDEX = hf_bla_idx, + NAME = bla, + FILTER = my.filter, + BASE_TYPE = BASE_HEX, + FT_TYPE = FT_UINT32, + VALSSTRING = NULL, + BLURB = Actual Description, + MASK = 0xF + } + }, + hf_renames = {}, +}); + + + +$conformance = { hf_renames = { hf_bla_idx = { NEWNAME = hf_bloe_idx } } }; +register_hf_field(hf_bla_idx, bla, my.filter, FT_UINT32, BASE_HEX, NULL, 0xF,
svn commit: samba r21568 - in branches/SAMBA_4_0: . source/pidl/lib/Parse/Pidl/Wireshark source/pidl/tests
Author: jelmer Date: 2007-02-27 21:37:31 + (Tue, 27 Feb 2007) New Revision: 21568 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21568 Log: More tests. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm branches/SAMBA_4_0/source/pidl/tests/wireshark-ndr.pl Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm === --- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm 2007-02-27 20:35:56 UTC (rev 21567) +++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm 2007-02-27 21:37:31 UTC (rev 21568) @@ -18,7 +18,7 @@ use Exporter; @ISA = qw(Exporter); [EMAIL PROTECTED] = qw(field2name @ett %res PrintIdl StripPrefixes %hf_used RegisterInterfaceHandoff $conformance register_hf_field CheckUsed
svn commit: samba r21569 - in branches: SAMBA_3_0/source/rpc_server SAMBA_3_0_25/source/rpc_server
Author: jra Date: 2007-02-27 22:04:23 + (Tue, 27 Feb 2007) New Revision: 21569 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21569 Log: Fix bug reported by Martin Zielinski [EMAIL PROTECTED] where return value was incorrectly initialized. Jeremy. Modified: branches/SAMBA_3_0/source/rpc_server/srv_spoolss_nt.c branches/SAMBA_3_0_25/source/rpc_server/srv_spoolss_nt.c Changeset: Modified: branches/SAMBA_3_0/source/rpc_server/srv_spoolss_nt.c === --- branches/SAMBA_3_0/source/rpc_server/srv_spoolss_nt.c 2007-02-27 21:37:31 UTC (rev 21568) +++ branches/SAMBA_3_0/source/rpc_server/srv_spoolss_nt.c 2007-02-27 22:04:23 UTC (rev 21569) @@ -8633,7 +8633,7 @@ static WERROR enumprintprocdatatypes_level_1(RPC_BUFFER *buffer, uint32 offered, uint32 *needed, uint32 *returned) { PRINTPROCDATATYPE_1 *info_1=NULL; - WERROR result = WERR_NOMEM; + WERROR result = WERR_OK; if((info_1 = SMB_MALLOC_P(PRINTPROCDATATYPE_1)) == NULL) return WERR_NOMEM; Modified: branches/SAMBA_3_0_25/source/rpc_server/srv_spoolss_nt.c === --- branches/SAMBA_3_0_25/source/rpc_server/srv_spoolss_nt.c2007-02-27 21:37:31 UTC (rev 21568) +++ branches/SAMBA_3_0_25/source/rpc_server/srv_spoolss_nt.c2007-02-27 22:04:23 UTC (rev 21569) @@ -8501,7 +8501,7 @@ static WERROR enumprintprocdatatypes_level_1(RPC_BUFFER *buffer, uint32 offered, uint32 *needed, uint32 *returned) { PRINTPROCDATATYPE_1 *info_1=NULL; - WERROR result = WERR_NOMEM; + WERROR result = WERR_OK; if((info_1 = SMB_MALLOC_P(PRINTPROCDATATYPE_1)) == NULL) return WERR_NOMEM;
Rev 11590: Merge upstream. in file:///home/jelmer/bzr.samba/pidl-fixes/
At file:///home/jelmer/bzr.samba/pidl-fixes/ revno: 11590 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: pidl-fixes timestamp: Tue 2007-02-27 23:19:45 +0100 message: Merge upstream. removed: source/utils/ndrdump.c svn-v2:[EMAIL PROTECTED] added: source/librpc/tools/ svn-v2:[EMAIL PROTECTED] source/librpc/tools/ndrdump.1.xml svn-v2:[EMAIL PROTECTED] source/librpc/tools/ndrdump.c svn-v2:[EMAIL PROTECTED] modified: source/build/smb_build/makefile.pm svn-v2:[EMAIL PROTECTED] source/lib/ldb/include/ldb_private.h svn-v2:[EMAIL PROTECTED] source/libcli/util/clilsa.csvn-v2:[EMAIL PROTECTED] source/libnet/config.mksvn-v2:[EMAIL PROTECTED] source/libnet/libnet_become_dc.c svn-v2:[EMAIL PROTECTED] source/librpc/config.mksvn-v2:[EMAIL PROTECTED] source/librpc/rpc/dcerpc.c svn-v2:[EMAIL PROTECTED] source/librpc/rpc/dcerpc_connect.c svn-v2:[EMAIL PROTECTED] source/librpc/rpc/dcerpc_smb.c svn-v2:[EMAIL PROTECTED] source/librpc/rpc/dcerpc_smb2.c svn-v2:[EMAIL PROTECTED] source/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm svn-v2:[EMAIL PROTECTED] source/pidl/lib/Parse/Pidl/Wireshark/Conformance.pm svn-v2:[EMAIL PROTECTED] source/pidl/lib/Parse/Pidl/Wireshark/NDR.pm svn-v2:[EMAIL PROTECTED] source/pidl/tests/wireshark-conf.pl svn-v2:[EMAIL PROTECTED] source/pidl/tests/wireshark-ndr.pl svn-v2:[EMAIL PROTECTED] source/rpc_server/config.mksvn-v2:[EMAIL PROTECTED] source/script/tests/selftest.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_functions.sh svn-v2:[EMAIL PROTECTED] source/script/tests/test_posix.sh svn-v2:[EMAIL PROTECTED] source/scripting/swig/config.mk svn-v2:[EMAIL PROTECTED] source/torture/basic/aliases.c svn-v2:[EMAIL PROTECTED] source/torture/config.mk svn-v2:[EMAIL PROTECTED] source/torture/rpc/samba3rpc.c svn-v2:[EMAIL PROTECTED] source/utils/config.mk svn-v2:[EMAIL PROTECTED] source/winbind/config.mk svn-v2:[EMAIL PROTECTED] source/winbind/wb_async_helpers.c svn-v2:[EMAIL PROTECTED] source/winbind/wb_connect_lsa.c svn-v2:[EMAIL PROTECTED] source/winbind/wb_connect_sam.c svn-v2:[EMAIL PROTECTED] source/winbind/wb_init_domain.c svn-v2:[EMAIL PROTECTED] revno: 11589.1.15 merged: svn-v2:[EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: jelmer timestamp: Tue 2007-02-27 21:37:31 + message: More tests. revno: 11589.1.14.1.1 merged: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Tue 2007-02-27 22:33:57 +0100 message: More tests. revno: 11589.1.14 merged: svn-v2:[EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: jelmer timestamp: Tue 2007-02-27 20:35:56 + message: Add some more wireshark tests. revno: 11589.1.13.1.1 merged: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Tue 2007-02-27 21:32:16 +0100 message: Add some more wireshark tests. revno: 11589.1.13 merged: svn-v2:[EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: jelmer timestamp: Tue 2007-02-27 18:00:15 + message: Move ndrdump to librpc/tools. revno: 11589.1.12.1.1 merged: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Tue 2007-02-27 18:56:50 +0100 message: Move ndrdump to librpc/tools. revno: 11589.1.12 merged: svn-v2:[EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: jelmer timestamp: Tue 2007-02-27 13:41:56 + message: More tests. revno: 11589.1.11.1.1 merged: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Tue 2007-02-27 14:39:30 +0100 message: More
svn commit: samba-docs r1026 - in trunk: . templates
Author: jerry Date: 2007-02-27 22:42:30 + (Tue, 27 Feb 2007) New Revision: 1026 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=1026 Log: adding template file for individual manpages Added: trunk/templates/ trunk/templates/template.5.xml Changeset: Added: trunk/templates/template.5.xml === --- trunk/templates/template.5.xml 2007-02-19 13:53:54 UTC (rev 1025) +++ trunk/templates/template.5.xml 2007-02-27 22:42:30 UTC (rev 1026) @@ -0,0 +1,37 @@ +?xml version=1.0 encoding=iso-8859-1? +!DOCTYPE refentry PUBLIC -//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN http://www.samba.org/samba/DTD/samba-doc; +refentry id=lmhosts.5 + +refmeta + refentrytitlesmb-idmap/refentrytitle + manvolnum5/manvolnum +/refmeta + + +refnamediv + refnamesmb-idmap/refname + refpurposeThe Samba IdMap Interface/refpurpose +/refnamediv + +refsynopsisdiv + paraThe IdMap interface in citerefentryrefentrytitlesamba/refentrytitle + manvolnum7/manvolnum/citerefentry is responsible for + mapping Windows SIDs to Unix uids/gids./para +/refsynopsisdiv + +refsect1 + titleDESCRIPTION/title + + paraTo be filled in./para +/refsect1 + +refsect1 + titleAUTHOR/title + + paraThe original Samba software and related utilities + were created by Andrew Tridgell. Samba is now developed + by the Samba Team as an Open Source project similar + to the way the Linux kernel is developed./para +/refsect1 + +/refentry
svn commit: samba r21570 - in branches/SAMBA_4_0/source/torture: . rpc
Author: tridge Date: 2007-02-27 23:35:38 + (Tue, 27 Feb 2007) New Revision: 21570 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21570 Log: added a RPC-HANDLES test that tries to show that rpc policy handles are not shared between connections. It tests three types of policy handles, on lsa, samr and drsuapi. You need to run on ncacn_ip_tcp with seal for drsuapi. Metze, can you have a look and see how this tallies with what you've seen? Added: branches/SAMBA_4_0/source/torture/rpc/handles.c Modified: branches/SAMBA_4_0/source/torture/config.mk branches/SAMBA_4_0/source/torture/rpc/rpc.c Changeset: Modified: branches/SAMBA_4_0/source/torture/config.mk === --- branches/SAMBA_4_0/source/torture/config.mk 2007-02-27 22:04:23 UTC (rev 21569) +++ branches/SAMBA_4_0/source/torture/config.mk 2007-02-27 23:35:38 UTC (rev 21570) @@ -155,7 +155,8 @@ rpc/bench.o \ rpc/samba3rpc.o \ rpc/rpc.o \ - rpc/async_bind.o + rpc/async_bind.o \ + rpc/handles.o PUBLIC_DEPENDENCIES = \ NDR_TABLE RPC_NDR_UNIXINFO dcerpc_samr RPC_NDR_WINREG RPC_NDR_INITSHUTDOWN \ RPC_NDR_OXIDRESOLVER RPC_NDR_EVENTLOG RPC_NDR_ECHO RPC_NDR_SVCCTL \ Added: branches/SAMBA_4_0/source/torture/rpc/handles.c === --- branches/SAMBA_4_0/source/torture/rpc/handles.c 2007-02-27 22:04:23 UTC (rev 21569) +++ branches/SAMBA_4_0/source/torture/rpc/handles.c 2007-02-27 23:35:38 UTC (rev 21570) @@ -0,0 +1,211 @@ +/* + Unix SMB/CIFS implementation. + + test suite for behaviour of rpc policy handles + + Copyright (C) Andrew Tridgell 2007 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#include includes.h +#include torture/torture.h +#include librpc/gen_ndr/ndr_samr_c.h +#include librpc/gen_ndr/ndr_lsa_c.h +#include librpc/gen_ndr/ndr_drsuapi_c.h +#include torture/rpc/rpc.h + +/* + this tests the use of policy handles between connections +*/ + +static bool test_handles_lsa(struct torture_context *torture) +{ + NTSTATUS status; + struct dcerpc_pipe *p1, *p2; + struct policy_handle handle; + struct policy_handle handle2; + struct lsa_ObjectAttribute attr; + struct lsa_QosInfo qos; + struct lsa_OpenPolicy r; + struct lsa_Close c; + uint16_t system_name = '\\'; + TALLOC_CTX *mem_ctx = talloc_new(torture); + + status = torture_rpc_connection(mem_ctx, p1, dcerpc_table_lsarpc); + torture_assert_ntstatus_ok(torture, status, opening lsa pipe1); + + status = torture_rpc_connection(mem_ctx, p2, dcerpc_table_lsarpc); + torture_assert_ntstatus_ok(torture, status, opening lsa pipe1); + + qos.len = 0; + qos.impersonation_level = 2; + qos.context_mode = 1; + qos.effective_only = 0; + + attr.len = 0; + attr.root_dir = NULL; + attr.object_name = NULL; + attr.attributes = 0; + attr.sec_desc = NULL; + attr.sec_qos = qos; + + r.in.system_name = system_name; + r.in.attr = attr; + r.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED; + r.out.handle = handle; + + status = dcerpc_lsa_OpenPolicy(p1, mem_ctx, r); + if (!NT_STATUS_IS_OK(status)) { + torture_comment(torture, lsa_OpenPolicy not supported - skipping\n); + talloc_free(mem_ctx); + return true; + } + + c.in.handle = handle; + c.out.handle = handle2; + + status = dcerpc_lsa_Close(p2, mem_ctx, c); + torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT, + closing policy handle on p2); + torture_assert_int_equal(torture, p2-last_fault_code, DCERPC_FAULT_CONTEXT_MISMATCH, + closing policy handle on p2); + + status = dcerpc_lsa_Close(p1, mem_ctx, c); + torture_assert_ntstatus_ok(torture, status, closing policy handle on p1); + + status = dcerpc_lsa_Close(p1, mem_ctx, c); + torture_assert_ntstatus_equal(torture, status, NT_STATUS_NET_WRITE_FAULT, + closing policy
Rev 11606: More work towards supporting tagged types. in file:///home/jelmer/bzr.samba/SAMBA_4_0/
At file:///home/jelmer/bzr.samba/SAMBA_4_0/ revno: 11606 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Wed 2007-02-28 00:44:31 +0100 message: More work towards supporting tagged types. modified: source/pidl/lib/Parse/Pidl/NDR.pm svn-v2:[EMAIL PROTECTED] source/pidl/lib/Parse/Pidl/Typelist.pm svn-v2:[EMAIL PROTECTED] source/pidl/tests/ndr.pl svn-v2:[EMAIL PROTECTED] source/pidl/tests/ndr_tagtype.pl svn-v2:[EMAIL PROTECTED] source/pidl/tests/typelist.pl svn-v2:[EMAIL PROTECTED] === modified file 'source/pidl/lib/Parse/Pidl/NDR.pm' --- a/source/pidl/lib/Parse/Pidl/NDR.pm 2007-02-21 10:31:14 + +++ b/source/pidl/lib/Parse/Pidl/NDR.pm 2007-02-27 23:44:31 + @@ -35,7 +35,7 @@ $VERSION = '0.01'; @ISA = qw(Exporter); @EXPORT = qw(GetPrevLevel GetNextLevel ContainsDeferred ContainsString); [EMAIL PROTECTED] = qw(GetElementLevelTable ParseElement ValidElement); [EMAIL PROTECTED] = qw(GetElementLevelTable ParseElement ValidElement align_type); use strict; use Parse::Pidl qw(warning fatal); @@ -335,7 +335,11 @@ sub align_type($) { sub align_type($); - my $e = shift; + my ($e) = @_; + + if (ref($e) eq HASH and $e-{TYPE} eq SCALAR) { + return $scalar_alignment-{$e-{NAME}}; + } unless (hasType($e)) { # it must be an external type - all we can do is guess @@ -343,16 +347,16 @@ return 4; } - my $dt = getType($e)-{DATA}; + my $dt = getType($e); - if ($dt-{TYPE} eq ENUM) { + if ($dt-{TYPE} eq TYPEDEF) { + return align_type($dt-{DATA}); + } elsif ($dt-{TYPE} eq ENUM) { return align_type(Parse::Pidl::Typelist::enum_type_fn($dt)); } elsif ($dt-{TYPE} eq BITMAP) { return align_type(Parse::Pidl::Typelist::bitmap_type_fn($dt)); } elsif (($dt-{TYPE} eq STRUCT) or ($dt-{TYPE} eq UNION)) { return find_largest_alignment($dt); - } elsif ($dt-{TYPE} eq SCALAR) { - return $scalar_alignment-{$dt-{NAME}}; } die(Unknown data type type $dt-{TYPE}); === modified file 'source/pidl/lib/Parse/Pidl/Typelist.pm' --- a/source/pidl/lib/Parse/Pidl/Typelist.pm2007-02-18 23:48:16 + +++ b/source/pidl/lib/Parse/Pidl/Typelist.pm2007-02-27 23:44:31 + @@ -98,7 +98,9 @@ sub getType($) { my $t = shift; + return ($t) if (ref($t) eq HASH and not defined($t-{NAME})); return undef if not hasType($t); + return $types{$t-{NAME}} if (ref($t) eq HASH); return $types{$t}; } @@ -113,6 +115,11 @@ sub hasType($) { my $t = shift; + if (ref($t) eq HASH) { + return 1 if (defined($types{$t-{NAME}}) and + $types{$t-{NAME}}-{TYPE} eq $t-{TYPE}); + return 0; + } return 1 if defined($types{$t}); return 0; } === modified file 'source/pidl/tests/ndr.pl' --- a/source/pidl/tests/ndr.pl 2007-02-19 22:10:23 + +++ b/source/pidl/tests/ndr.pl 2007-02-27 23:44:31 + @@ -4,12 +4,12 @@ use strict; use warnings; -use Test::More tests = 12; +use Test::More tests = 17; use FindBin qw($RealBin); use lib $RealBin; use Util; use Parse::Pidl::Util qw(MyDumper); -use Parse::Pidl::NDR qw(GetElementLevelTable ParseElement); +use Parse::Pidl::NDR qw(GetElementLevelTable ParseElement align_type); # Case 1 @@ -203,3 +203,11 @@ $ne = ParseElement($e, undef); is($ne-{REPRESENTATION_TYPE}, uint8); + +is(align_type(uint32), 4); +is(align_type(uint16), 2); +is(align_type(uint8), 1); +is(align_type({ TYPE = STRUCT, NAME = bla, + ELEMENTS = [ { TYPE = uint16 } ] }), 4); +is(align_type({ TYPE = STRUCT, NAME = bla, + ELEMENTS = [ { TYPE = uint8 } ] }), 4); === modified file 'source/pidl/tests/ndr_tagtype.pl' --- a/source/pidl/tests/ndr_tagtype.pl 2007-02-18 16:21:28 + +++ b/source/pidl/tests/ndr_tagtype.pl 2007-02-27 23:44:31 + @@ -3,7 +3,7 @@ # (C) 2005 Jelmer Vernooij. Published under the GNU GPL use strict; -use Test::More tests = 1 * 8; +use Test::More tests = 3 * 8; use FindBin qw($RealBin); use lib $RealBin; use Util qw(test_samba4_ndr); @@ -25,3 +25,42 @@ if (!data_blob_equal(result_blob, expected_blob)) return 2; '); + +test_samba4_ndr('struct-notypedef-used', '[public] struct bla { uint8 x; }; + [public] void myfn([in] struct bla r); ', +' + struct ndr_push *ndr = ndr_push_init_ctx(NULL); + struct bla r; + uint8_t expected[] = { 0x0D }; + DATA_BLOB expected_blob = { expected, 1 }; + DATA_BLOB result_blob; + r.x = 13; + + if (NT_STATUS_IS_ERR(ndr_push_myfn(ndr, NDR_IN, r))) + return 1; + + result_blob = ndr_push_blob(ndr); + + if
svn commit: samba r21571 - in branches/SAMBA_4_0/source/script/tests: .
Author: tridge Date: 2007-02-27 23:46:42 + (Tue, 27 Feb 2007) New Revision: 21571 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21571 Log: added RPC-HANDLES test to make test Modified: branches/SAMBA_4_0/source/script/tests/test_rpc.sh branches/SAMBA_4_0/source/script/tests/test_rpc_quick.sh Changeset: Modified: branches/SAMBA_4_0/source/script/tests/test_rpc.sh === --- branches/SAMBA_4_0/source/script/tests/test_rpc.sh 2007-02-27 23:35:38 UTC (rev 21570) +++ branches/SAMBA_4_0/source/script/tests/test_rpc.sh 2007-02-27 23:46:42 UTC (rev 21571) @@ -2,9 +2,9 @@ # add tests to this list as they start passing, so we test # that they stay passing -ncacn_np_tests=RPC-SPOOLSS RPC-SRVSVC RPC-UNIXINFO RPC-SCHANNEL RPC-JOIN RPC-LSA RPC-ECHO RPC-DSSETUP RPC-ALTERCONTEXT RPC-MULTIBIND RPC-NETLOGON RPC-MGMT +ncacn_np_tests=RPC-SPOOLSS RPC-SRVSVC RPC-UNIXINFO RPC-SCHANNEL RPC-JOIN RPC-LSA RPC-ECHO RPC-DSSETUP RPC-ALTERCONTEXT RPC-MULTIBIND RPC-NETLOGON RPC-MGMT RPC-HANDLES ncalrpc_tests=RPC-MGMT RPC-UNIXINFO RPC-SCHANNEL RPC-JOIN RPC-LSA RPC-ECHO RPC-DSSETUP RPC-ALTERCONTEXT RPC-MULTIBIND RPC-NETLOGON -ncacn_ip_tcp_tests=RPC-UNIXINFO RPC-SCHANNEL RPC-JOIN RPC-LSA RPC-ECHO RPC-DSSETUP RPC-ALTERCONTEXT RPC-MULTIBIND RPC-NETLOGON RPC-MGMT +ncacn_ip_tcp_tests=RPC-UNIXINFO RPC-SCHANNEL RPC-JOIN RPC-LSA RPC-ECHO RPC-DSSETUP RPC-ALTERCONTEXT RPC-MULTIBIND RPC-NETLOGON RPC-MGMT RPC-HANDLES slow_ncacn_np_tests=RPC-SAMLOGON RPC-SAMR RPC-SAMR-USERS RPC-SAMR-PASSWORDS slow_ncalrpc_tests=RPC-SAMLOGON RPC-SAMR RPC-SAMR-USERS RPC-SAMR-PASSWORDS slow_ncacn_ip_tcp_tests=RPC-SAMLOGON RPC-SAMR RPC-SAMR-USERS RPC-SAMR-PASSWORDS Modified: branches/SAMBA_4_0/source/script/tests/test_rpc_quick.sh === --- branches/SAMBA_4_0/source/script/tests/test_rpc_quick.sh2007-02-27 23:35:38 UTC (rev 21570) +++ branches/SAMBA_4_0/source/script/tests/test_rpc_quick.sh2007-02-27 23:46:42 UTC (rev 21571) @@ -2,8 +2,8 @@ # add tests to this list as they start passing, so we test # that they stay passing -ncacn_np_tests=RPC-ALTERCONTEXT RPC-JOIN RPC-ECHO RPC-SCHANNEL RPC-NETLOGON RPC-UNIXINFO -ncacn_ip_tcp_tests=RPC-ALTERCONTEXT RPC-JOIN RPC-ECHO +ncacn_np_tests=RPC-ALTERCONTEXT RPC-JOIN RPC-ECHO RPC-SCHANNEL RPC-NETLOGON RPC-UNIXINFO RPC-HANDLES +ncacn_ip_tcp_tests=RPC-ALTERCONTEXT RPC-JOIN RPC-ECHO RPC-HANDLES ncalrpc_tests=RPC-ECHO if [ $# -lt 4 ]; then
svn commit: samba r21572 - in branches/SAMBA_4_0: . source/pidl/lib/Parse/Pidl source/pidl/tests
Author: jelmer Date: 2007-02-27 23:47:07 + (Tue, 27 Feb 2007) New Revision: 21572 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21572 Log: More work towards supporting tagged types. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Typelist.pm branches/SAMBA_4_0/source/pidl/tests/ndr.pl branches/SAMBA_4_0/source/pidl/tests/ndr_tagtype.pl branches/SAMBA_4_0/source/pidl/tests/typelist.pl Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm === --- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm2007-02-27 23:46:42 UTC (rev 21571) +++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm2007-02-27 23:47:07 UTC (rev 21572) @@ -35,7 +35,7
Build status as of Wed Feb 28 00:00:02 2007
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2007-02-27 00:00:41.0 + +++ /home/build/master/cache/broken_results.txt 2007-02-28 00:00:12.0 + @@ -1,4 +1,4 @@ -Build status as of Tue Feb 27 00:00:02 2007 +Build status as of Wed Feb 28 00:00:02 2007 Build counts: Tree Total Broken Panic @@ -11,12 +11,12 @@ libreplace 30 2 0 lorikeet-heimdal 29 15 0 ppp 14 0 0 -rsync34 5 0 +rsync34 4 0 samba0 0 0 samba-docs 0 0 0 samba4 38 26 1 -samba_3_040 21 3 +samba_3_040 15 2 smb-build30 30 0 -talloc 34 1 0 -tdb 32 3 0 +talloc 35 1 0 +tdb 32 2 0
Rev 11608: Remove more code that assumed all types are typedefs. in file:///home/jelmer/bzr.samba/SAMBA_4_0/
At file:///home/jelmer/bzr.samba/SAMBA_4_0/ revno: 11608 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Wed 2007-02-28 01:16:32 +0100 message: Remove more code that assumed all types are typedefs. modified: source/pidl/lib/Parse/Pidl/NDR.pm svn-v2:[EMAIL PROTECTED] source/pidl/lib/Parse/Pidl/Typelist.pm svn-v2:[EMAIL PROTECTED] source/pidl/tests/ndr.pl svn-v2:[EMAIL PROTECTED] source/pidl/tests/typelist.pl svn-v2:[EMAIL PROTECTED] === modified file 'source/pidl/lib/Parse/Pidl/NDR.pm' --- a/source/pidl/lib/Parse/Pidl/NDR.pm 2007-02-27 23:47:07 + +++ b/source/pidl/lib/Parse/Pidl/NDR.pm 2007-02-28 00:16:32 + @@ -35,7 +35,7 @@ $VERSION = '0.01'; @ISA = qw(Exporter); @EXPORT = qw(GetPrevLevel GetNextLevel ContainsDeferred ContainsString); [EMAIL PROTECTED] = qw(GetElementLevelTable ParseElement ValidElement align_type); [EMAIL PROTECTED] = qw(GetElementLevelTable ParseElement ValidElement align_type mapToScalar); use strict; use Parse::Pidl qw(warning fatal); @@ -880,17 +880,19 @@ sub mapToScalar($) { + sub mapToScalar($); my $t = shift; + return $t-{NAME} if (ref($t) eq HASH and $t-{TYPE} eq SCALAR); my $ti = getType($t); if (not defined ($ti)) { return undef; - } elsif ($ti-{DATA}-{TYPE} eq ENUM) { - return Parse::Pidl::Typelist::enum_type_fn($ti-{DATA}); - } elsif ($ti-{DATA}-{TYPE} eq BITMAP) { - return Parse::Pidl::Typelist::enum_type_fn($ti-{DATA}); - } elsif ($ti-{DATA}-{TYPE} eq SCALAR) { - return $t; + } elsif ($ti-{TYPE} eq TYPEDEF) { + return mapToScalar($ti-{DATA}); + } elsif ($ti-{TYPE} eq ENUM) { + return Parse::Pidl::Typelist::enum_type_fn($ti); + } elsif ($ti-{TYPE} eq BITMAP) { + return Parse::Pidl::Typelist::bitmap_type_fn($ti); } return undef; === modified file 'source/pidl/lib/Parse/Pidl/Typelist.pm' --- a/source/pidl/lib/Parse/Pidl/Typelist.pm2007-02-27 23:47:07 + +++ b/source/pidl/lib/Parse/Pidl/Typelist.pm2007-02-28 00:16:32 + @@ -107,8 +107,13 @@ sub typeIs($$) { my ($t,$tt) = @_; - - return 1 if (hasType($t) and getType($t)-{DATA}-{TYPE} eq $tt); + + if (ref($t) eq HASH) { + return 1 if ($t-{TYPE} eq $tt); + return 0; + } + return 1 if (hasType($t) and getType($t)-{TYPE} eq TYPEDEF and +getType($t)-{DATA}-{TYPE} eq $tt); return 0; } @@ -116,6 +121,7 @@ { my $t = shift; if (ref($t) eq HASH) { + return 1 if (not defined($t-{NAME})); return 1 if (defined($types{$t-{NAME}}) and $types{$t-{NAME}}-{TYPE} eq $t-{TYPE}); return 0; @@ -128,10 +134,12 @@ { my $type = shift; - return 0 unless(hasType($type)); + return 1 if (ref($type) eq HASH and $type-{TYPE} eq SCALAR); - if (my $dt = getType($type)-{DATA}-{TYPE}) { - return 1 if ($dt eq SCALAR or $dt eq ENUM or $dt eq BITMAP); + if (my $dt = getType($type)) { + return is_scalar($dt-{DATA}) if ($dt-{TYPE} eq TYPEDEF); + return 1 if ($dt-{TYPE} eq SCALAR or $dt-{TYPE} eq ENUM or +$dt-{TYPE} eq BITMAP); } return 0; === modified file 'source/pidl/tests/ndr.pl' --- a/source/pidl/tests/ndr.pl 2007-02-27 23:47:07 + +++ b/source/pidl/tests/ndr.pl 2007-02-28 00:16:32 + @@ -4,12 +4,12 @@ use strict; use warnings; -use Test::More tests = 17; +use Test::More tests = 22; use FindBin qw($RealBin); use lib $RealBin; use Util; use Parse::Pidl::Util qw(MyDumper); -use Parse::Pidl::NDR qw(GetElementLevelTable ParseElement align_type); +use Parse::Pidl::NDR qw(GetElementLevelTable ParseElement align_type mapToScalar); # Case 1 @@ -211,3 +211,10 @@ ELEMENTS = [ { TYPE = uint16 } ] }), 4); is(align_type({ TYPE = STRUCT, NAME = bla, ELEMENTS = [ { TYPE = uint8 } ] }), 4); + +is(mapToScalar(someverymuchnotexistingtype), undef); +is(mapToScalar(uint32), uint32); +is(mapToScalar({TYPE = ENUM, PARENT = { PROPERTIES = { enum8bit = 1 } } }), uint8); +is(mapToScalar({TYPE = BITMAP, PROPERTIES = { bitmap64bit = 1 } }), + hyper); +is(mapToScalar({TYPE = TYPEDEF, DATA = {TYPE = ENUM, PARENT = { PROPERTIES = { enum8bit = 1 } } }}), uint8); === modified file 'source/pidl/tests/typelist.pl' --- a/source/pidl/tests/typelist.pl 2007-02-27 23:47:07 + +++ b/source/pidl/tests/typelist.pl 2007-02-28 00:16:32 + @@ -4,7 +4,7 @@ use strict; use warnings; -use Test::More tests = 38; +use Test::More tests = 50; use FindBin qw($RealBin); use lib $RealBin; use
svn commit: samba r21573 - in branches/SAMBA_4_0: . source/pidl/lib/Parse/Pidl source/pidl/tests
Author: jelmer Date: 2007-02-28 00:19:57 + (Wed, 28 Feb 2007) New Revision: 21573 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21573 Log: Remove more code that assumed all types are typedefs. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Typelist.pm branches/SAMBA_4_0/source/pidl/tests/ndr.pl branches/SAMBA_4_0/source/pidl/tests/typelist.pl Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm === --- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm2007-02-27 23:47:07 UTC (rev 21572) +++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm2007-02-28 00:19:57 UTC (rev 21573) @@ -35,7 +35,7 @@
Rev 11609: Fix handling of DECLARE. in file:///home/jelmer/bzr.samba/SAMBA_4_0/
At file:///home/jelmer/bzr.samba/SAMBA_4_0/ revno: 11609 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Wed 2007-02-28 01:24:39 +0100 message: Fix handling of DECLARE. modified: source/pidl/lib/Parse/Pidl/NDR.pm svn-v2:[EMAIL PROTECTED] source/pidl/lib/Parse/Pidl/Typelist.pm svn-v2:[EMAIL PROTECTED] source/pidl/tests/ndr.pl svn-v2:[EMAIL PROTECTED] === modified file 'source/pidl/lib/Parse/Pidl/NDR.pm' --- a/source/pidl/lib/Parse/Pidl/NDR.pm 2007-02-28 00:19:57 + +++ b/source/pidl/lib/Parse/Pidl/NDR.pm 2007-02-28 00:24:39 + @@ -349,7 +349,7 @@ my $dt = getType($e); - if ($dt-{TYPE} eq TYPEDEF) { + if ($dt-{TYPE} eq TYPEDEF or $dt-{TYPE} eq DECLARE) { return align_type($dt-{DATA}); } elsif ($dt-{TYPE} eq ENUM) { return align_type(Parse::Pidl::Typelist::enum_type_fn($dt)); === modified file 'source/pidl/lib/Parse/Pidl/Typelist.pm' --- a/source/pidl/lib/Parse/Pidl/Typelist.pm2007-02-28 00:19:57 + +++ b/source/pidl/lib/Parse/Pidl/Typelist.pm2007-02-28 00:24:39 + @@ -132,6 +132,7 @@ sub is_scalar($) { + sub is_scalar($); my $type = shift; return 1 if (ref($type) eq HASH and $type-{TYPE} eq SCALAR); === modified file 'source/pidl/tests/ndr.pl' --- a/source/pidl/tests/ndr.pl 2007-02-28 00:19:57 + +++ b/source/pidl/tests/ndr.pl 2007-02-28 00:24:39 + @@ -4,7 +4,7 @@ use strict; use warnings; -use Test::More tests = 22; +use Test::More tests = 25; use FindBin qw($RealBin); use lib $RealBin; use Util; @@ -204,11 +204,17 @@ $ne = ParseElement($e, undef); is($ne-{REPRESENTATION_TYPE}, uint8); +is(align_type(hyper), 8); is(align_type(uint32), 4); is(align_type(uint16), 2); is(align_type(uint8), 1); is(align_type({ TYPE = STRUCT, NAME = bla, ELEMENTS = [ { TYPE = uint16 } ] }), 4); +is(align_type({ TYPE = STRUCT, + ELEMENTS = [ { TYPE = hyper } ] }), 8); +is(align_type({ TYPE = DECLARE, DATA = { + TYPE = STRUCT, + ELEMENTS = [ { TYPE = hyper } ] }}), 8); is(align_type({ TYPE = STRUCT, NAME = bla, ELEMENTS = [ { TYPE = uint8 } ] }), 4);
svn commit: samba r21574 - in branches/SAMBA_4_0: . source/pidl/lib/Parse/Pidl source/pidl/tests
Author: jelmer Date: 2007-02-28 00:28:14 + (Wed, 28 Feb 2007) New Revision: 21574 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21574 Log: Fix handling of DECLARE. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Typelist.pm branches/SAMBA_4_0/source/pidl/tests/ndr.pl Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm === --- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm2007-02-28 00:19:57 UTC (rev 21573) +++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/NDR.pm2007-02-28 00:28:14 UTC (rev 21574) @@ -349,7 +349,7 @@ my $dt = getType($e); - if
svn commit: samba-docs r1027 - in trunk/manpages-3: .
Author: jpeach Date: 2007-02-28 00:32:53 + (Wed, 28 Feb 2007) New Revision: 1027 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=1027 Log: Document the readonly VFS module. Added: trunk/manpages-3/smb-vfs-readonly.8.xml Changeset: Added: trunk/manpages-3/smb-vfs-readonly.8.xml === --- trunk/manpages-3/smb-vfs-readonly.8.xml 2007-02-27 22:42:30 UTC (rev 1026) +++ trunk/manpages-3/smb-vfs-readonly.8.xml 2007-02-28 00:32:53 UTC (rev 1027) @@ -0,0 +1,97 @@ +?xml version=1.0 encoding=iso-8859-1? +!DOCTYPE refentry PUBLIC -//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN http://www.samba.org/samba/DTD/samba-doc; +refentry id=smb-vfs-readonly.8 + +refmeta + refentrytitlesmb-vfs-readonly/refentrytitle + manvolnum8/manvolnum +/refmeta + + +refnamediv + refnamereadonly/refname + refpurposeMake a Samba share read only for a specified time period/refpurpose +/refnamediv + +refsynopsisdiv + cmdsynopsis + commandvfs objects = readonly/command + /cmdsynopsis +/refsynopsisdiv + +refsect1 + titleDESCRIPTION/title + + paraThis module is part of the citerefentryrefentrytitlesamba/refentrytitle + manvolnum7/manvolnum/citerefentry suite./para + + paraThe commandreadonly/command VFS module marks a share + as read only for all clients connecting within the configured + time period. Clients connecting during this time will be denied + write access to all files in the share, irrespective of ther + actual access privileges./para + + paraThis module is stackable./para + +/refsect1 + + +refsect1 + titleOPTIONS/title + + variablelist + + varlistentry + termreadonly:period = BEGIN, END/term + listitem + paraOnly mark the share as read only if the client + connection was made between the times marked by the + BEGIN and END date specifiers. + The syntax of these date specifiers is the + same as that accepted by the -d option of GNU + citerefentryrefentrytitledate/refentrytitle + manvolnum1/manvolnum/citerefentry. + /para + + /listitem + /varlistentry + + /variablelist +/refsect1 + +refsect1 + titleEXAMPLES/title + + paraMark all shares read only:/para +programlisting +smbconfsection name=[global]/ + smbconfoption name=vfs objectsreadonly/smbconfoption +/programlisting + + paraMark the [backup] share as read only during business hours:/para +programlisting +smbconfsection name=[backup]/ + smbconfoption name=path/readonly/smbconfoption + smbconfoption name=vfs objectsreadonly/smbconfoption + smbconfoption name=readonly:periodreadonly:period = today 9:00,today 17:00/smbconfoption +/programlisting +/refsect1 + +refsect1 + titleVERSION/title + + paraThis man page is correct for version 3.0.25 of the Samba suite. + /para +/refsect1 + +refsect1 + titleAUTHOR/title + + paraThe original Samba software and related utilities + were created by Andrew Tridgell. Samba is now developed + by the Samba Team as an Open Source project similar + to the way the Linux kernel is developed./para + +/refsect1 + +/refentry
Rev 11610: Fix handling of is_scalar() for declares. in file:///home/jelmer/bzr.samba/SAMBA_4_0/
At file:///home/jelmer/bzr.samba/SAMBA_4_0/ revno: 11610 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Wed 2007-02-28 01:32:32 +0100 message: Fix handling of is_scalar() for declares. modified: source/pidl/lib/Parse/Pidl/Typelist.pm svn-v2:[EMAIL PROTECTED] source/pidl/tests/typelist.pl svn-v2:[EMAIL PROTECTED] === modified file 'source/pidl/lib/Parse/Pidl/Typelist.pm' --- a/source/pidl/lib/Parse/Pidl/Typelist.pm2007-02-28 00:28:14 + +++ b/source/pidl/lib/Parse/Pidl/Typelist.pm2007-02-28 00:32:32 + @@ -138,7 +138,8 @@ return 1 if (ref($type) eq HASH and $type-{TYPE} eq SCALAR); if (my $dt = getType($type)) { - return is_scalar($dt-{DATA}) if ($dt-{TYPE} eq TYPEDEF); + return is_scalar($dt-{DATA}) if ($dt-{TYPE} eq TYPEDEF or + $dt-{TYPE} eq DECLARE); return 1 if ($dt-{TYPE} eq SCALAR or $dt-{TYPE} eq ENUM or $dt-{TYPE} eq BITMAP); } === modified file 'source/pidl/tests/typelist.pl' --- a/source/pidl/tests/typelist.pl 2007-02-28 00:19:57 + +++ b/source/pidl/tests/typelist.pl 2007-02-28 00:32:32 + @@ -4,7 +4,7 @@ use strict; use warnings; -use Test::More tests = 50; +use Test::More tests = 52; use FindBin qw($RealBin); use lib $RealBin; use Util; @@ -55,6 +55,8 @@ is(1, is_scalar({TYPE = ENUM})); is(0, is_scalar({TYPE = STRUCT})); is(1, is_scalar({TYPE = TYPEDEF, DATA = {TYPE = ENUM }})); +is(1, is_scalar(mytypedef)); +is(1, is_scalar({TYPE = DECLARE, DATA = {TYPE = ENUM }})); is(1, scalar_is_reference(string)); is(0, scalar_is_reference(uint32));
svn commit: samba r21575 - in branches/SAMBA_4_0: . source/pidl/lib/Parse/Pidl source/pidl/tests
Author: jelmer Date: 2007-02-28 00:35:21 + (Wed, 28 Feb 2007) New Revision: 21575 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21575 Log: Fix handling of is_scalar() for declares. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Typelist.pm branches/SAMBA_4_0/source/pidl/tests/typelist.pl Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge - [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] + [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Typelist.pm === --- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Typelist.pm 2007-02-28 00:28:14 UTC (rev 21574) +++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Typelist.pm 2007-02-28 00:35:21 UTC (rev 21575) @@ -138,7 +138,8 @@ return 1 if (ref($type) eq HASH
svn commit: samba r21576 - in branches: SAMBA_3_0/source/libsmb SAMBA_3_0_25/source/libsmb
Author: jra Date: 2007-02-28 00:35:58 + (Wed, 28 Feb 2007) New Revision: 21576 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21576 Log: Patch based on work from Todd Stecher [EMAIL PROTECTED] to allow client to fragment large SPNEGO blobs (large krb5 tickets). Tested against W2K3R2. Should fix bug #4400. Jeremy. Modified: branches/SAMBA_3_0/source/libsmb/cliconnect.c branches/SAMBA_3_0/source/libsmb/clierror.c branches/SAMBA_3_0_25/source/libsmb/cliconnect.c branches/SAMBA_3_0_25/source/libsmb/clierror.c Changeset: Modified: branches/SAMBA_3_0/source/libsmb/cliconnect.c === --- branches/SAMBA_3_0/source/libsmb/cliconnect.c 2007-02-28 00:35:21 UTC (rev 21575) +++ branches/SAMBA_3_0/source/libsmb/cliconnect.c 2007-02-28 00:35:58 UTC (rev 21576) @@ -517,19 +517,78 @@ } #ifdef HAVE_KRB5 - / Send a extended security session setup blob, returning a reply blob. / -static DATA_BLOB cli_session_setup_blob(struct cli_state *cli, DATA_BLOB blob) +#define MAX_SESSION_SECURITY_BLOB 4000 + +/* The following is calculated from : + * (smb_size-4) = 35 + * (smb_wcnt * 2) = 24 (smb_wcnt == 12 in cli_session_setup_blob_send() ) + * (strlen(Unix) + 1 + strlen(Samba) + 1) * 2 = 22 (unicode strings at + * end of packet. + */ + +#define BASE_SESSSETUP_BLOB_PACKET_SIZE (35 + 24 + 22) + +static BOOL cli_session_setup_blob(struct cli_state *cli, DATA_BLOB blob, DATA_BLOB session_key_krb5) { - DATA_BLOB blob2 = data_blob(NULL, 0); - if (!cli_session_setup_blob_send(cli, blob)) { - return blob2; + int32 remaining = blob.length; + int32 cur = 0; + DATA_BLOB send_blob = data_blob(NULL, 0); + int32 max_blob_size = 0; + + if (cli-max_xmit BASE_SESSSETUP_BLOB_PACKET_SIZE + 1) { + DEBUG(0,(cli_session_setup_blob: cli-max_xmit too small + (was %u, need minimum %u)\n, + (unsigned int)cli-max_xmit, + BASE_SESSSETUP_BLOB_PACKET_SIZE)); + cli_set_nt_error(cli, NT_STATUS_INVALID_PARAMETER); + return False; } - - return cli_session_setup_blob_receive(cli); + + max_blob_size = cli-max_xmit - BASE_SESSSETUP_BLOB_PACKET_SIZE; + + while ( remaining 0) { + if (remaining = max_blob_size) { + send_blob.length = max_blob_size; + remaining -= max_blob_size; + } else { + DATA_BLOB null_blob = data_blob(NULL, 0); + + send_blob.length = remaining; +remaining = 0; + + /* This is the last packet in the sequence - turn signing on. */ + cli_simple_set_signing(cli, session_key_krb5, null_blob); + } + + send_blob.data = blob.data[cur]; + cur += send_blob.length; + + DEBUG(10, (cli_session_setup_blob: Remaining (%u) sending (%u) current (%u)\n, + (unsigned int)remaining, + (unsigned int)send_blob.length, + (unsigned int)cur )); + + if (!cli_session_setup_blob_send(cli, send_blob)) { + DEBUG(0, (cli_session_setup_blob: send failed\n)); + return False; + } + + cli_session_setup_blob_receive(cli); + + if (cli_is_error(cli) + !NT_STATUS_EQUAL( cli_get_nt_error(cli), + NT_STATUS_MORE_PROCESSING_REQUIRED)) { + DEBUG(0, (cli_session_setup_blob: recieve failed (%s)\n, + nt_errstr(cli_get_nt_error(cli)) )); + return False; + } + } + + return True; } / @@ -546,9 +605,8 @@ static ADS_STATUS cli_session_setup_kerberos(struct cli_state *cli, const char *principal, const char *workgroup) { - DATA_BLOB blob2, negTokenTarg; + DATA_BLOB negTokenTarg; DATA_BLOB session_key_krb5; - DATA_BLOB null_blob = data_blob(NULL, 0); int rc; DEBUG(2,(Doing kerberos session setup\n)); @@ -557,7 +615,8 @@ rc = spnego_gen_negTokenTarg(principal, 0, negTokenTarg, session_key_krb5, 0, NULL); if (rc) { - DEBUG(1, (spnego_gen_negTokenTarg failed: %s\n, error_message(rc))); + DEBUG(1, (cli_session_setup_kerberos: spnego_gen_negTokenTarg failed: %s\n, + error_message(rc))); return ADS_ERROR_KRB5(rc); } @@ -565,13
svn commit: samba r21577 - in branches: SAMBA_3_0/source/libsmb SAMBA_3_0_25/source/libsmb
Author: jra Date: 2007-02-28 00:38:49 + (Wed, 28 Feb 2007) New Revision: 21577 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=21577 Log: Remove unneeded #define (part of earlier patch that was removed). Jeremy. Modified: branches/SAMBA_3_0/source/libsmb/cliconnect.c branches/SAMBA_3_0_25/source/libsmb/cliconnect.c Changeset: Modified: branches/SAMBA_3_0/source/libsmb/cliconnect.c === --- branches/SAMBA_3_0/source/libsmb/cliconnect.c 2007-02-28 00:35:58 UTC (rev 21576) +++ branches/SAMBA_3_0/source/libsmb/cliconnect.c 2007-02-28 00:38:49 UTC (rev 21577) @@ -521,8 +521,6 @@ Send a extended security session setup blob, returning a reply blob. / -#define MAX_SESSION_SECURITY_BLOB 4000 - /* The following is calculated from : * (smb_size-4) = 35 * (smb_wcnt * 2) = 24 (smb_wcnt == 12 in cli_session_setup_blob_send() ) Modified: branches/SAMBA_3_0_25/source/libsmb/cliconnect.c === --- branches/SAMBA_3_0_25/source/libsmb/cliconnect.c2007-02-28 00:35:58 UTC (rev 21576) +++ branches/SAMBA_3_0_25/source/libsmb/cliconnect.c2007-02-28 00:38:49 UTC (rev 21577) @@ -521,8 +521,6 @@ Send a extended security session setup blob, returning a reply blob. / -#define MAX_SESSION_SECURITY_BLOB 4000 - /* The following is calculated from : * (smb_size-4) = 35 * (smb_wcnt * 2) = 24 (smb_wcnt == 12 in cli_session_setup_blob_send() )
svn commit: samba-docs r1028 - in trunk/manpages-3: .
Author: jpeach Date: 2007-02-28 00:56:47 + (Wed, 28 Feb 2007) New Revision: 1028 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=1028 Log: Document audit vfs module. Added: trunk/manpages-3/smb-vfs-audit.8.xml Changeset: Added: trunk/manpages-3/smb-vfs-audit.8.xml === --- trunk/manpages-3/smb-vfs-audit.8.xml2007-02-28 00:32:53 UTC (rev 1027) +++ trunk/manpages-3/smb-vfs-audit.8.xml2007-02-28 00:56:47 UTC (rev 1028) @@ -0,0 +1,118 @@ +?xml version=1.0 encoding=iso-8859-1? +!DOCTYPE refentry PUBLIC -//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN http://www.samba.org/samba/DTD/samba-doc; +refentry id=smb-vfs-readonly.8 + +refmeta + refentrytitlesmb-vfs-audit/refentrytitle + manvolnum8/manvolnum +/refmeta + + +refnamediv + refnameaudit/refname + refpurposerecord selected Samba VFS operations in the system log/refpurpose +/refnamediv + +refsynopsisdiv + cmdsynopsis + commandvfs objects = audit/command + /cmdsynopsis +/refsynopsisdiv + +refsect1 + titleDESCRIPTION/title + + paraThis module is part of the citerefentryrefentrytitlesamba/refentrytitle + manvolnum7/manvolnum/citerefentry suite./para + + paraThe commandaudit/command VFS module records selected + client operations to the system log using + citerefentryrefentrytitlesyslog/refentrytitle + manvolnum3/manvolnum/citerefentry suite./para + + paraThe following Samba VFS operations are recorded:/para + simplelist + memberconnect/member + memberdisconnect/member + memberopendir/member + membermkdir/member + memberrmdir/member + memberopen/member + memberclose/member + memberrename/member + memberunlink/member + memberchmod/member + memberfchmod/member + memberchmod_acl/member + memberfchmod_acl/member + /simplelist + + paraThis module is stackable./para + +/refsect1 + + +refsect1 + titleOPTIONS/title + + variablelist + + varlistentry + termaudit:facility = FACILITY/term + listitem + paraLog messages to the named + citerefentryrefentrytitlesyslog/refentrytitle + manvolnum3/manvolnum/citerefentry facility. + + /para + + /listitem + /varlistentry + + varlistentry + termaudit:priority = PRIORITY/term + listitem + paraLog messages with the named + citerefentryrefentrytitlesyslog/refentrytitle + manvolnum3/manvolnum/citerefentry priority. + /para + + /listitem + /varlistentry + + /variablelist +/refsect1 + +refsect1 + titleEXAMPLES/title + + paraLog operations on all shares using the LOCAL1 facility + and NOTICE priority:/para + +programlisting +smbconfsection name=[global]/ + smbconfoption name=vfs objectsaudit/smbconfoption + smbconfoption name=audit:facilityLOCAL1/smbconfoption + smbconfoption name=audit:priorityNOTICE/smbconfoption +/programlisting + +/refsect1 + +refsect1 + titleVERSION/title + + paraThis man page is correct for version 3.0.25 of the Samba suite. + /para +/refsect1 + +refsect1 + titleAUTHOR/title + + paraThe original Samba software and related utilities + were created by Andrew Tridgell. Samba is now developed + by the Samba Team as an Open Source project similar + to the way the Linux kernel is developed./para + +/refsect1 + +/refentry
svn commit: samba-docs r1029 - in trunk/manpages-3: .
Author: jpeach Date: 2007-02-28 01:26:33 + (Wed, 28 Feb 2007) New Revision: 1029 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=1029 Log: Document default_quota module. Added: trunk/manpages-3/smb-vfs-default_quota.8.xml Changeset: Added: trunk/manpages-3/smb-vfs-default_quota.8.xml === --- trunk/manpages-3/smb-vfs-default_quota.8.xml2007-02-28 00:56:47 UTC (rev 1028) +++ trunk/manpages-3/smb-vfs-default_quota.8.xml2007-02-28 01:26:33 UTC (rev 1029) @@ -0,0 +1,132 @@ +?xml version=1.0 encoding=iso-8859-1? +!DOCTYPE refentry PUBLIC -//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN http://www.samba.org/samba/DTD/samba-doc; +refentry id=smb-vfs-readonly.8 + +refmeta + refentrytitlesmb-vfs-default_quota/refentrytitle + manvolnum8/manvolnum +/refmeta + + +refnamediv + refnamedefault_quota/refname + refpurposestore default quota records for Windows clients/refpurpose +/refnamediv + +refsynopsisdiv + cmdsynopsis + commandvfs objects = default_quota/command + /cmdsynopsis +/refsynopsisdiv + +refsect1 + titleDESCRIPTION/title + + paraThis module is part of the + citerefentryrefentrytitlesamba/refentrytitlemanvolnum7/manvolnum/citerefentry + suite./para + + paraMany common quota implementations only store + quotas for users and groups, but do not store a default quota. The + commanddefault_quota/command module allows Samba to store + default quota values which can be examined using the Windows + Explorer interface. + /para + + paraBy default, Samba returns NO_LIMIT the default quota and + refuses to update them. commanddefault_quota/command maps + the default quota to the quota record of a user. By default the + root user is taken because quota limits for root are typically + not enforced./para + + paraThis module is stackable./para + +/refsect1 + + +refsect1 + titleOPTIONS/title + + variablelist + + varlistentry + termdefault_quota:uid = UID/term + listitem + paraUID specifies the user ID of the quota record where the + default user quota values are stored. + /para + + /listitem + /varlistentry + + varlistentry + termdefault_quota:gid = GID/term + listitem + paraGID specifies the group ID of the quota record where the + default group quota values are stored. + /para + + /listitem + /varlistentry + + varlistentry + termdefault_quota:uid nolimit = BOOL/term + listitem + paraIf this parameter is True, then the user whose + quota record is storing the default user quota will + be reported as having a quota of NO_LIMIT. Otherwise, + the stored values will be reported. + /para + + /listitem + /varlistentry + + varlistentry + termdefault_quota:gid nolimit = BOOL/term + listitem + paraIf this parameter is True, then the group whose + quota record is storing the default group quota will + be reported as having a quota of NO_LIMIT. Otherwise, + the stored values will be reported. + /para + + /listitem + /varlistentry + + /variablelist +/refsect1 + +refsect1 + titleEXAMPLES/title + + paraStore the default quota record in the quota record for + the user with ID 65535 and report that user as having no quota + limits:/para + +programlisting +smbconfsection name=[global]/ + smbconfoption name=vfs objectsdefault_quota/smbconfoption + smbconfoption name=default_quota:uid65535/smbconfoption + smbconfoption name=default_quota:uid nolimityes/smbconfoption +/programlisting + +/refsect1 + +refsect1 + titleVERSION/title + + paraThis man page is correct for version 3.0.25 of the Samba suite. + /para +/refsect1 + +refsect1 + titleAUTHOR/title + + paraThe original Samba software and related utilities + were created by Andrew Tridgell. Samba is now developed + by the Samba Team as an Open Source project similar + to the way the Linux kernel is developed./para + +/refsect1 + +/refentry
svn commit: samba-docs r1030 - in trunk/manpages-3: .
Author: jpeach Date: 2007-02-28 01:38:20 + (Wed, 28 Feb 2007) New Revision: 1030 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=1030 Log: Document fake_perms module. Added: trunk/manpages-3/smb-vfs-fake_perms.8.xml Changeset: Added: trunk/manpages-3/smb-vfs-fake_perms.8.xml === --- trunk/manpages-3/smb-vfs-fake_perms.8.xml 2007-02-28 01:26:33 UTC (rev 1029) +++ trunk/manpages-3/smb-vfs-fake_perms.8.xml 2007-02-28 01:38:20 UTC (rev 1030) @@ -0,0 +1,69 @@ +?xml version=1.0 encoding=iso-8859-1? +!DOCTYPE refentry PUBLIC -//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN http://www.samba.org/samba/DTD/samba-doc; +refentry id=smb-vfs-fake_perms.8 + +refmeta + refentrytitlesmb-vfs-fake_perms/refentrytitle + manvolnum8/manvolnum +/refmeta + + +refnamediv + refnamefake_perms/refname + refpurposeenable read only Roaming Profiles/refpurpose +/refnamediv + +refsynopsisdiv + cmdsynopsis + commandvfs objects = fake_perms/command + /cmdsynopsis +/refsynopsisdiv + +refsect1 + titleDESCRIPTION/title + + paraThis module is part of the citerefentryrefentrytitlesamba/refentrytitle + manvolnum7/manvolnum/citerefentry suite./para + + paraThe commandfake_perms/command VFS module was created + to allow Roaming Profile files and directories to be set (on + the Samba server under UNIX) as read only. This module will, + if installed on the Profiles share, report to the client that + the Profile files and directories are writeable. This satisfies + the client even though the files will never be overwritten as + the client logs out or shuts down. + /para + + paraThis module is stackable./para + +/refsect1 + +refsect1 + titleEXAMPLES/title + +programlisting +smbconfsection name=[Profiles]/ + smbconfoption name=path/profiles/smbconfoption + smbconfoption name=vfs objectsfake_perms/smbconfoption +/programlisting + +/refsect1 + +refsect1 + titleVERSION/title + + paraThis man page is correct for version 3.0.25 of the Samba suite. + /para +/refsect1 + +refsect1 + titleAUTHOR/title + + paraThe original Samba software and related utilities + were created by Andrew Tridgell. Samba is now developed + by the Samba Team as an Open Source project similar + to the way the Linux kernel is developed./para + +/refsect1 + +/refentry
svn commit: samba-docs r1031 - in trunk/manpages-3: .
Author: jpeach Date: 2007-02-28 01:43:15 + (Wed, 28 Feb 2007) New Revision: 1031 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=1031 Log: Fix cut'n'paste error. Modified: trunk/manpages-3/smb-vfs-default_quota.8.xml Changeset: Modified: trunk/manpages-3/smb-vfs-default_quota.8.xml === --- trunk/manpages-3/smb-vfs-default_quota.8.xml2007-02-28 01:38:20 UTC (rev 1030) +++ trunk/manpages-3/smb-vfs-default_quota.8.xml2007-02-28 01:43:15 UTC (rev 1031) @@ -1,6 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? !DOCTYPE refentry PUBLIC -//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN http://www.samba.org/samba/DTD/samba-doc; -refentry id=smb-vfs-readonly.8 refmeta refentrytitlesmb-vfs-default_quota/refentrytitle