[Samba] Re: What version of Samba will work with an AIX version of Unix?
Mark Blake-Smith wrote: Hi all We are currently looking to implement a scenario where our AIX Unix Server and Windows Server can communicate with each other using a version of Samba. We currently scan images which are stored on our Unix system and ideally we would like our Windows Server to have access to these files. The software we use for our daily business is Unix based so the the scanned images have to be primarily stored on the AIX Unix server. I understand that you need a specific version of Samba to run on an AIX based version of Unix and was wondering if someone feeling helpful could point me in the right direction. Any information would be greatly appreciated. Kind Regards Mark Hi Mark, to implement the samba Server you have to be more specific. Which Version of AIX are you using? How many people have to access to the Samba Server? Are Unix-groups are available? Do we need AD-Integration? I am using a precompiled package from http://aixpdslib.seas.ucla.edu/packages/samba.html My integration into the Windowsenvironment is done by securtiy = DOMAIN regards Franz -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] file disappear ???
Hi list, I'm experiencing a strange behaviour on my samba server. I've got a list of users allowed to access a disk share from their windows machines, and the clients save files (such as .doc and .xls) in the share. Sometimes certain files disappear, that is the client is no more able to see them. I've tried changing permissions, ownership, name and position (i.e., moving them to a different share) but nothing worked. The only thing I found to solve the problem is to zip all the share content and then to unzip it from a windows machine, then all the clients see again the disappeared file. I've tried to check the unzipped file with the original one but the checksum is the same and diff does not report any difference. Moreover, from the dos command line the file is visible and if you spoecify the file name in the explorer path you can open it. So the file is there, can be accessed but simply is not shown. The name of the file has no strange characters and permissions are ok. Any idea about what can cause this behaviour and which configuration option to work on? I'm running samba 3 on a suse machine, with reiserfs file system. Thanks everybody, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] duplicate group in NET GROUPMAP LIST
Hi List I'm experiencing a strange behaviour on my samba server the group Domain Users (and other builtin groups from my AD servers) appear to have a duplicated SID here is the output of mail# net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) - users Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-512) - -1 and in /var/log/messages May 2 11:00:05 mail winbindd[23804]: [2007/05/02 11:00:05, 0] sam/idmap_rid.c:rid_idmap_get_id_from_sid(476) May 2 11:00:05 mail winbindd[23804]: rid_idmap_get_id_from_sid: no suitable range available for sid: S-1-5-32-549 which appear to be a group in BUILTIN group from AD server the strange fact is the Domain Users appear to have a TWO sids Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) The first appear to be correctly mapped to the local users group the latter has no mapping (-1) that's to me appeares really odd Can somebody explain me this old fact ? My actual Samba server (with smtp, pop3, wibind, sshd, apache21) works perefctly and every user can authenticate correctly on every service with his/her own AD domain user and password Any Hint? PLEASE !?! -- 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 in NET GROUPMAP LIST
On Wednesday 02 May 2007 04:58, Gianluca Culot wrote: Hi List I'm experiencing a strange behaviour on my samba server the group Domain Users (and other builtin groups from my AD servers) appear to have a duplicated SID here is the output of mail# net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) - users Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-512) - -1 and in /var/log/messages May 2 11:00:05 mail winbindd[23804]: [2007/05/02 11:00:05, 0] sam/idmap_rid.c:rid_idmap_get_id_from_sid(476) May 2 11:00:05 mail winbindd[23804]: rid_idmap_get_id_from_sid: no suitable range available for sid: S-1-5-32-549 which appear to be a group in BUILTIN group from AD server the strange fact is the Domain Users appear to have a TWO sids Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) The first appear to be correctly mapped to the local users group the latter has no mapping (-1) that's to me appeares really odd Can somebody explain me this old fact ? My actual Samba server (with smtp, pop3, wibind, sshd, apache21) works perefctly and every user can authenticate correctly on every service with his/her own AD domain user and password Any Hint? PLEASE !?! Execute net groupmap cleanup then reset your mappings. - John T. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
R: [Samba] duplicate group in NET GROUPMAP LIST
-Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di John H Terpstra Inviato: mercoledì 2 maggio 2007 14.07 A: samba@lists.samba.org Oggetto: Re: [Samba] duplicate group in NET GROUPMAP LIST On Wednesday 02 May 2007 04:58, Gianluca Culot wrote: Hi List I'm experiencing a strange behaviour on my samba server the group Domain Users (and other builtin groups from my AD servers) appear to have a duplicated SID here is the output of mail# net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) - users Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-512) - -1 and in /var/log/messages May 2 11:00:05 mail winbindd[23804]: [2007/05/02 11:00:05, 0] sam/idmap_rid.c:rid_idmap_get_id_from_sid(476) May 2 11:00:05 mail winbindd[23804]: rid_idmap_get_id_from_sid: no suitable range available for sid: S-1-5-32-549 which appear to be a group in BUILTIN group from AD server the strange fact is the Domain Users appear to have a TWO sids Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) The first appear to be correctly mapped to the local users group the latter has no mapping (-1) that's to me appeares really odd Can somebody explain me this old fact ? My actual Samba server (with smtp, pop3, wibind, sshd, apache21) works perefctly and every user can authenticate correctly on every service with his/her own AD domain user and password Any Hint? PLEASE !?! Execute net groupmap cleanup then reset your mappings. - John T. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba Looks loke net groupmap cleanup has no effect on my system here is the copy of action from my terminal mail# /home net groupmap delete ntgroup=domain users Sucessfully removed domain users from the mapping db mail# /home net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-512) - -1 mail# /home net groupmap cleanup Group Domain Guests is not mapped Group Domain Users is not mapped Group Domain Admins is not mapped mail# /home net groupmap add ntgroup=Domain Users unixgroup=users type=b No rid or sid specified, choosing algorithmic mapping Successfully added group Domain Users to the mapping db mail# /home net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) - users Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-512) - -1 mail# /home Maybe Domain Users is NOT to be mapped ? is of any use mapping Domain Users and Users ? I would say YES as I want to set permissions based on AD groups -- To unsubscribe from this list go to the following URL and read the instructions:
Re: [Samba] Samba logging behavior on new files
Hi, It would be interesting see how you did it so if its not to much trouble share it here or on the samba wiki. cheers 2 maj 2007 kl. 04:22 skrev Bala: Hi, I trashed my stupid idea/program and wrote samba VFS module to do the same thing. It works very well. I have home made program, which uses File Alteration Monitor library to watch samba log files for new file creation in samba share directory. This technique works fine when I use GNU/Linux machine as client and it fails when I use Windows machine as client. The cause of failure is, samba server creates different pattern of logs and sometimes it does not create log entries on new file creation. New file creation is done by copying file to share directory after mounting it. Log configuration of samba server is log file = /var/log/samba/%U.log log level = 2 Below is log entries when GNU/Linux is used. [2007/03/20 18:01:18, 2] smbd/open.c:open_file(245) b2bc1ir opened file outbox/echoserver read=Yes write=Yes (numopen=1) [2007/03/20 18:01:18, 2] smbd/reply.c:reply_mknew(1324) new file outbox/echoserver [2007/03/20 18:01:18, 2] smbd/close.c:close_normal_file(270) b2bc1ir closed file outbox/echoserver (numopen=0) Below is log entries when Windows is used. [2007/03/25 21:48:53, 2] smbd/open.c:open_file(245) b2bc1ir opened file outbox/test.txt read=No write=Yes (numopen=2) [2007/03/25 21:48:53, 2] smbd/close.c:close_normal_file(270) b2bc1ir closed file outbox/test.txt (numopen=1) [2007/03/25 21:48:54, 2] smbd/open.c:open_file(245) b2bc1ir opened file outbox/test.txt read=Yes write=No (numopen=2) [2007/03/25 21:48:54, 2] smbd/close.c:close_normal_file(270) b2bc1ir closed file outbox/test.txt (numopen=1) [2007/03/25 21:48:54, 2] smbd/open.c:open_file(245) b2bc1ir opened file outbox/test.txt read=Yes write=No (numopen=2) [2007/03/25 22:00:07, 2] smbd/open.c:open_file(245) I use CentOS v4.4 and Samba version 3.0.10-1.4E.9 What could be wrong in my setup? Thanks, Bala __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: R: [Samba] duplicate group in NET GROUPMAP LIST
Hi Gianluca Do you have more than one password backend e.g. both smbpasswd and tdbsam or ldapsam ? -- Rune Tønnesen Venlig Hilsen/Best Regards -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di John H Terpstra Inviato: mercoledì 2 maggio 2007 14.07 A: samba@lists.samba.org Oggetto: Re: [Samba] duplicate group in NET GROUPMAP LIST On Wednesday 02 May 2007 04:58, Gianluca Culot wrote: Hi List I'm experiencing a strange behaviour on my samba server the group Domain Users (and other builtin groups from my AD servers) appear to have a duplicated SID here is the output of mail# net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) - users Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-512) - -1 and in /var/log/messages May 2 11:00:05 mail winbindd[23804]: [2007/05/02 11:00:05, 0] sam/idmap_rid.c:rid_idmap_get_id_from_sid(476) May 2 11:00:05 mail winbindd[23804]: rid_idmap_get_id_from_sid: no suitable range available for sid: S-1-5-32-549 which appear to be a group in BUILTIN group from AD server the strange fact is the Domain Users appear to have a TWO sids Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) The first appear to be correctly mapped to the local users group the latter has no mapping (-1) that's to me appeares really odd Can somebody explain me this old fact ? My actual Samba server (with smtp, pop3, wibind, sshd, apache21) works perefctly and every user can authenticate correctly on every service with his/her own AD domain user and password Any Hint? PLEASE !?! Execute net groupmap cleanup then reset your mappings. - John T. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba Looks loke net groupmap cleanup has no effect on my system here is the copy of action from my terminal mail# /home net groupmap delete ntgroup=domain users Sucessfully removed domain users from the mapping db mail# /home net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-512) - -1 mail# /home net groupmap cleanup Group Domain Guests is not mapped Group Domain Users is not mapped Group Domain Admins is not mapped mail# /home net groupmap add ntgroup=Domain Users unixgroup=users type=b No rid or sid specified, choosing algorithmic mapping Successfully added group Domain Users to the mapping db mail# /home net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) - users Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1
Re: R: [Samba] duplicate group in NET GROUPMAP LIST
On Wednesday 02 May 2007 07:40, Gianluca Culot wrote: ... the strange fact is the Domain Users appear to have a TWO sids Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) The first appear to be correctly mapped to the local users group the latter has no mapping (-1) that's to me appeares really odd Can somebody explain me this old fact ? My actual Samba server (with smtp, pop3, wibind, sshd, apache21) works perefctly and every user can authenticate correctly on every service with his/her own AD domain user and password Any Hint? PLEASE !?! Execute net groupmap cleanup then reset your mappings. - John T. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba Looks loke net groupmap cleanup has no effect on my system here is the copy of action from my terminal mail# /home net groupmap delete ntgroup=domain users Sucessfully removed domain users from the mapping db mail# /home net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-512) - -1 mail# /home net groupmap cleanup Group Domain Guests is not mapped Group Domain Users is not mapped Group Domain Admins is not mapped mail# /home net groupmap add ntgroup=Domain Users unixgroup=users type=b No rid or sid specified, choosing algorithmic mapping Successfully added group Domain Users to the mapping db mail# /home net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) - users Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-512) - -1 mail# /home Maybe Domain Users is NOT to be mapped ? is of any use mapping Domain Users and Users ? I would say YES as I want to set permissions based on AD groups What version of Samba do you have? For now, stop Samba, remove the group_mapping,tdb file, then remap your groups. In the long run suggest you update to the latest release. - John T. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
R: R: [Samba] duplicate group in NET GROUPMAP LIST
-Messaggio originale- Da: Rune Tønnesen [mailto:[EMAIL PROTECTED] Inviato: mercoledì 2 maggio 2007 14.51 A: Gianluca Culot Cc: samba@lists.samba.org Oggetto: Re: R: [Samba] duplicate group in NET GROUPMAP LIST Hi Gianluca Do you have more than one password backend e.g. both smbpasswd and tdbsam or ldapsam ? -- Rune Tønnesen Venlig Hilsen/Best Regards -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di John H Terpstra Inviato: mercoledì 2 maggio 2007 14.07 A: samba@lists.samba.org Oggetto: Re: [Samba] duplicate group in NET GROUPMAP LIST On Wednesday 02 May 2007 04:58, Gianluca Culot wrote: Hi List I'm experiencing a strange behaviour on my samba server the group Domain Users (and other builtin groups from my AD servers) appear to have a duplicated SID here is the output of mail# net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) - users Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-512) - -1 and in /var/log/messages May 2 11:00:05 mail winbindd[23804]: [2007/05/02 11:00:05, 0] sam/idmap_rid.c:rid_idmap_get_id_from_sid(476) May 2 11:00:05 mail winbindd[23804]: rid_idmap_get_id_from_sid: no suitable range available for sid: S-1-5-32-549 which appear to be a group in BUILTIN group from AD server the strange fact is the Domain Users appear to have a TWO sids Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) The first appear to be correctly mapped to the local users group the latter has no mapping (-1) that's to me appeares really odd Can somebody explain me this old fact ? My actual Samba server (with smtp, pop3, wibind, sshd, apache21) works perefctly and every user can authenticate correctly on every service with his/her own AD domain user and password Any Hint? PLEASE !?! Execute net groupmap cleanup then reset your mappings. - John T. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba Looks loke net groupmap cleanup has no effect on my system here is the copy of action from my terminal mail# /home net groupmap delete ntgroup=domain users Sucessfully removed domain users from the mapping db mail# /home net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-512) - -1 mail# /home net groupmap cleanup Group Domain Guests is not mapped Group Domain Users is not mapped Group Domain Admins is not mapped mail# /home net groupmap add ntgroup=Domain Users unixgroup=users type=b No rid or sid specified, choosing algorithmic mapping Successfully added group Domain Users to the mapping db mail# /home net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) - users Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users
R: R: [Samba] duplicate group in NET GROUPMAP LIST
-Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di John H Terpstra Inviato: mercoledì 2 maggio 2007 14.56 A: samba@lists.samba.org Oggetto: Re: R: [Samba] duplicate group in NET GROUPMAP LIST On Wednesday 02 May 2007 07:40, Gianluca Culot wrote: ... the strange fact is the Domain Users appear to have a TWO sids Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) The first appear to be correctly mapped to the local users group the latter has no mapping (-1) that's to me appeares really odd Can somebody explain me this old fact ? My actual Samba server (with smtp, pop3, wibind, sshd, apache21) works perefctly and every user can authenticate correctly on every service with his/her own AD domain user and password Any Hint? PLEASE !?! Execute net groupmap cleanup then reset your mappings. - John T. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba Looks loke net groupmap cleanup has no effect on my system here is the copy of action from my terminal mail# /home net groupmap delete ntgroup=domain users Sucessfully removed domain users from the mapping db mail# /home net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-512) - -1 mail# /home net groupmap cleanup Group Domain Guests is not mapped Group Domain Users is not mapped Group Domain Admins is not mapped mail# /home net groupmap add ntgroup=Domain Users unixgroup=users type=b No rid or sid specified, choosing algorithmic mapping Successfully added group Domain Users to the mapping db mail# /home net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) - users Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-512) - -1 mail# /home Maybe Domain Users is NOT to be mapped ? is of any use mapping Domain Users and Users ? I would say YES as I want to set permissions based on AD groups What version of Samba do you have? For now, stop Samba, remove the group_mapping,tdb file, then remap your groups. In the long run suggest you update to the latest release. - John T. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba Sorry... I forgot I'm running Samba 3.0.14a mail# /home pkg_info | grep samba samba-3.0.14a_1,1 A free SMB and CIFS client and server for UNIX here is the smb.conf [global] workgroup = dmsware netbios name = mail #os level = 20 # we will never be master or slave browser as we are on a firewalled net preferred master = no server string = mail.dmsware.it Samba Shares realm = dmsware.it security = ADS password server = orion.dmsware.it winbind cache time = 3600 winbind use default domain = Yes winbind nested groups = Yes # -antares- winbind enum users = Yes # -antares- winbind enum groups = Yes allow trusted domains = Yes #idmap domains = DMSWARE idmap config DMSWARE:backend = rid idmap config DMSWARE:base_rid = 1000 idmap config DMSWARE:range= 1 - 4 #idmap backend = idmap_rid:DMSWARE=1000-2
[Samba] PDC problems
I have a Samba PDC, running on Centos 4. The samba version is 3.0.23d.30. I have an LDAP backend. Everything seems to be running fine. I recently configured a BDC, to help with load balancing and to act as a backup in the event the PDC went down. Before I installed the PDC, when a new user logged into the domain, their home directory on the PDC was automatically mapped to the drive letter U. Now that the BDC is running, when a new user logs into the domain, their home directory is automatically mapped to U, but it points to their home directory on the BDC and not the PDC. This created a problem at first because there were no home directories on the BDC. I mounted all home directories from the PDC to the BDC and it works fine, but why is the BDC the default home when a user logs in? Also, when a new user logs in, their login script is being pulled from the netlogon share on the BDC and not the PDC, so I had to make a copy of the netlogon directory from the PDC to the BDC. I'm assuming that I have something configured incorrectly. I have included the samba conf files from both PDC and BDC. PDC Samba Conf: [global] unix charset = LOCALE workgroup = mydomain netbios name = PDC server string = Domain Controller running %v interfaces = eth1, lo bind interfaces only = yes os level = 255 preferred master = yes local master = yes domain master = yes security = user time server = yes username map = /etc/samba/smbusers wins support = yes encrypt passwords = yes pam password change = yes name resolve order = wins bcast hosts winbind nested groups = no passdb backend = ldapsam:ldap://127.0.0.1 ldap://BDC; ldap passwd sync = Yes ldap suffix = dc=mydomain,dc=com ldap admin dn = cn=Manager,dc=mydomain,dc=com ldap ssl = no ldap group suffix = ou=Groups ldap user suffix = ou=People ldap machine suffix = ou=People ldap idmap suffix = ou=Idmap idmap backend = ldap:ldap://127.0.0.1/ idmap uid = 1-2 idmap gid = 1-2 map acl inherit = yes add user script = /etc/smbldap-tools/smbldap-useradd -m %u #delete user script = /etc/smbldap-tools/smbldap-userdel %u add machine script = /etc/smbldap-tools/smbldap-useradd -w %u add group script = /etc/smbldap-tools/smbldap-groupadd -p %g #delete group script = /etc/smbldap-tools/smbldap-groupdel %g add user to group script = /etc/smbldap-tools/smbldap-groupmod -m %u %g delete user from group script = /etc/smbldap-tools/smbldap-groupmod -x %u %g set primary group script = /etc/smbldap-tools/smbldap-usermod -g %g %u domain logons = yes log file = /var/log/samba/log.%m log level = 1 syslog = 0 max log size = 50 #smb ports = 139 445 smb ports = 139 hosts allow = 127.0.0.1 172.16.0.0/255.255.0.0 # User profiles and home directories logon drive = U: logon path = \\%L\profiles\%U logon script = %U.bat large readwrite = no read raw = no write raw = no printcap name = /etc/printcap load printers = no printing = template shell = /bin/false winbind use default domain = no BDC Samba Conf. [global] unix charset = LOCALE workgroup = mydomain server string = Backup Domain Controller security = domain username map = /etc/samba/smbusers log level = 1 syslog = 0 log file = /var/log/samba/%m.log max log size = 50 smb ports = 139 name resolve order = wins bcast hosts wins server = 172.16.24.7 ldap suffix = dc=mydomain,dc=com ldap machine suffix = ou=People ldap user suffix = ou=People ldap group suffix = ou=Groups ldap idmap suffix = ou=Idmap ldap admin dn = cn=Manager,dc=mydomain,dc=com idmap backend = ldap:ldap://PDC idmap uid = 1-2 idmap gid = 1-2 winbind trusted domains only = yes password server = 172.16.24.7 template shell = /bin/false domain master = no local master = no os level = 0 preferred master = no winbind use default domain = no veto oplock files = /*.mbd/ large readwrite = no read raw = no write raw = no printcap name = /etc/printcap load printers = no printing = -- *Jason Baker */IT Coordinator/ *Glastender Inc.* 5400 North Michigan Road Saginaw, Michigan 48604 USA 800.748.0423 Phone: 989.752.4275 ext. 228 Fax: 989.752. www.glastender.com http://www.glastender.com -BEGIN GEEK CODE BLOCK- Version: 3.1 GIT$ d- s: a C++$ LU+++$ P+ L++L !E--- W+++ N o? K? w !O M !V PS PE++ Y? PGP- t 5? X+ R+ tv+ b- DI-- D++ G e+ h--- r+++ y+++ --END GEEK CODE BLOCK-- -- To
Re: [Samba] Accessing files on a domain-controled network
On 4/27/07, Gary Dale [EMAIL PROTECTED] wrote: Steven Woody wrote: On 4/27/07, Gary Dale [EMAIL PROTECTED] wrote: Steven Woody wrote: hi, i am new to samba and it seemed that samba documents mainly focus on how to setup a linux box as a samba server. but i am now sitting in a linux box and looking for a easy way to access a shared file folder on a domain-controled network. sorry for my no patience to read every part of the document since i have to let this job done in today. the shared folder is something like: \\serverA\share, and if i need to access it from XP i need to login to our domain ( D ), using my user name( U ), and password ( P ). my task is to, do the same accessing from my linux box using same information above. what do i do? thanks in advance. Here's what I use to access a share. I don't have it mounted automatically. Instead I type in mount /home/mnt/aux and I get prompted for the password. You can remove the noauto and include a password in the /etc/fstab file line for the share but that isn't exactly secure. Note that the filesystem type is cifs. This is similar to smbfs but cifs is maintained. :) //hyperzip/aux$ /home/mnt/aux cifs noauto,user,rw,user=garydale 0 0 You can also look at authenticating against a domain controller for a single sign-on. Check the samba.org howtos and by example documents for details on how to do this. It's not supposed to be too tricky. I've just never gotten to it. :) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba so, i use the similar setting as yours, put a line in fstab, //foohost/backup /mnt/aux cifs noauto,user,rw,user=me 0 0 then i do 'mount /mnt/aux', but got following error, mount error: could not find target server. TCP name foohost/backup not found No ip address specified and hostname not found and, smbcliet -L //foohost will report 'Connection to foohost failed. what's the clue? Look at the error message it's returning. It's telling you it can't find foohost. You can try putting in the IP address instead of the host name. If that works, it's a name resolution issue. yes, thank you. i've ensured that it is a name resolution problem. but i've already set the wins server. what's else do i need to do? thanks. -- woody then sun rose thinly from the sea and the old man could see the other boats, low on the water and well in toward the shore, spread out across the current. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
R: [Samba] Accessing files on a domain-controled network
-Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di Steven Woody Inviato: mercoledì 2 maggio 2007 15.36 A: [EMAIL PROTECTED] Cc: samba@lists.samba.org Oggetto: Re: [Samba] Accessing files on a domain-controled network On 4/27/07, Gary Dale [EMAIL PROTECTED] wrote: Steven Woody wrote: On 4/27/07, Gary Dale [EMAIL PROTECTED] wrote: Steven Woody wrote: hi, i am new to samba and it seemed that samba documents mainly focus on how to setup a linux box as a samba server. but i am now sitting in a linux box and looking for a easy way to access a shared file folder on a domain-controled network. sorry for my no patience to read every part of the document since i have to let this job done in today. the shared folder is something like: \\serverA\share, and if i need to access it from XP i need to login to our domain ( D ), using my user name( U ), and password ( P ). my task is to, do the same accessing from my linux box using same information above. what do i do? thanks in advance. Here's what I use to access a share. I don't have it mounted automatically. Instead I type in mount /home/mnt/aux and I get prompted for the password. You can remove the noauto and include a password in the /etc/fstab file line for the share but that isn't exactly secure. Note that the filesystem type is cifs. This is similar to smbfs but cifs is maintained. :) //hyperzip/aux$ /home/mnt/aux cifs noauto,user,rw,user=garydale 0 0 You can also look at authenticating against a domain controller for a single sign-on. Check the samba.org howtos and by example documents for details on how to do this. It's not supposed to be too tricky. I've just never gotten to it. :) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba so, i use the similar setting as yours, put a line in fstab, //foohost/backup /mnt/aux cifs noauto,user,rw,user=me 0 0 then i do 'mount /mnt/aux', but got following error, mount error: could not find target server. TCP name foohost/backup not found No ip address specified and hostname not found and, smbcliet -L //foohost will report 'Connection to foohost failed. what's the clue? Look at the error message it's returning. It's telling you it can't find foohost. You can try putting in the IP address instead of the host name. If that works, it's a name resolution issue. yes, thank you. i've ensured that it is a name resolution problem. but i've already set the wins server. what's else do i need to do? thanks. -- woody then sun rose thinly from the sea and the old man could see the other boats, low on the water and well in toward the shore, spread out across the current. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba a DNS server would be MUCH better as if you use a wins server you must enable also a winbind client (winbind is a microsoft technology) DNS client is builtin in Unix, so you do not have to install/activate anything just fill in /etc/named.conf -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] ubuntu livecd connects - regular install does not (kinit?)
I am connecting to a samba share with a ubuntu 7.04 livecd using this smbclient command: # smbclient //server/share -A /tmp/credentials -d3 Here is the (successful) debug output: --- Got NTLMSSP neg_flags=0x60890205 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x60080205 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x60080205 Domain=[NAM] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager] dos_clean_name [] smb: \ --- When I use a regular install on the same hardware it no longer works. The debug info is given below: --- Got NTLMSSP neg_flags=0x60890205 NTLMSSP: Set final flags: Got NTLMSSP neg_flags=0x60080205 NTLMSSP Sign/Seal - Initialising with flags: Got NTLMSSP neg_flags=0x60080205 spnego_parse_auth_response failed at 1 Failed to parse auth response SPNEGO login failed: Unexpected information received session setup failed: NT_STATUS_MORE_PROCESSING_REQUIRED did you forget to run kinit? --- I realize this is probably an AD/kerberos issue. I figure the livecd is running services automatically. But what are they and how do I do the same? Thanks in advance for any guidance in this matter. Juan Miscaro Get news delivered with the All new Yahoo! Mail. Enjoy RSS feeds right on your Mail page. Start today at http://mrd.mail.yahoo.com/try_beta?.intl=ca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Joining NT domain]
So the samba domain should trust the NT4 domain. On a windows machine in the NT4 domain, did you use User Manager for Domains to add the samba domain as a trusting domain? It seems a little backwards to me, but the domain that wants to be trusted creates an account for the domain that will trust it. I would get the following error unless I did the NT4 side 1st: # net rpc trustdom establish nt4domain Could not connect to server NT4PDC The username or password was not correct. Couldn't verify trusting domain account. Error was NT_STATUS_LOGON_FAILURE Forwarded Message From: Sam Wun [EMAIL PROTECTED] To: samba@lists.samba.org Subject: [Samba] Joining NT domain Date: Wed, 2 May 2007 10:21:16 +1000 Hi, I am running samba-3.0.25rc3 in Tru64 5.1B. I compiled Samba source with --with-winbind switch. My goal of setting up Samba is to allow existing windows user login this Tru64 server without further asking password if they have alraedy logged in windows, yet with additional user control by adding a line valid users = ... in each directory section, that way Samba won't allow every logged on windows user login, only allow windows users that listed in the valid users = ... line. Therefore I thought joining Samba to the existing NT domain and also adding a line of valid users=... in smb.conf may be the solution. However when I tried to connect existing NT domain, I got an error: # ./net rpc join -S 172.10.40.63 open_policy failed: NT_STATUS_ACCESS_DENIED Password: Note, I didn't compile Ldap and Kerberos into the Samba. I welcome any idea about to achieve this goal. If joining the existing NT domain is a must thing to do, then I may be most probably need to compile Ldap and Kerberos in Samba. If this is the case, do I need to further configure OpenLdap and Kerberos in Tru64? If Openldap and Kerberos is not needed, what should I do to join existing Nt domain? I m very appreciate for every suggestion. Thanks S -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba 3.x and PCNetLink domain trusts]
Except that everything isn't fine, because I can't login to the samba domain as a PCNL/NT4 user or vice versa. Forwarded Message From: Volker Lendecke [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Damian Lock (SSCI) [EMAIL PROTECTED] Cc: samba@lists.samba.org Subject: Re: [Samba] Samba 3.x and PCNetLink domain trusts Date: Wed, 2 May 2007 07:40:23 +0200 On Tue, May 01, 2007 at 01:36:19PM -0400, Damian Lock (SSCI) wrote: # net rpc trustdom establish ent4 Password: Could not connect to server NT4PDC Trust to domain ENT4 established Ok, then even with the NetLink domain it worked. This is an unfortunate but expected error message. Everything is fine :-) Volker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba 3.x and PCNetLink domain trusts]
On Wed, May 02, 2007 at 11:08:22AM -0400, Damian Lock (SSCI) wrote: Except that everything isn't fine, because I can't login to the samba domain as a PCNL/NT4 user or vice versa. Then you need to debug more. Setting up the join did work. Volker pgpj1IVsK76qY.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
R: R: [Samba] duplicate group in NET GROUPMAP LIST
-Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di Gianluca Culot Inviato: mercoledì 2 maggio 2007 15.09 A: samba@lists.samba.org Oggetto: R: R: [Samba] duplicate group in NET GROUPMAP LIST -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di John H Terpstra Inviato: mercoledì 2 maggio 2007 14.56 A: samba@lists.samba.org Oggetto: Re: R: [Samba] duplicate group in NET GROUPMAP LIST On Wednesday 02 May 2007 07:40, Gianluca Culot wrote: ... the strange fact is the Domain Users appear to have a TWO sids Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) The first appear to be correctly mapped to the local users group the latter has no mapping (-1) that's to me appeares really odd Can somebody explain me this old fact ? My actual Samba server (with smtp, pop3, wibind, sshd, apache21) works perefctly and every user can authenticate correctly on every service with his/her own AD domain user and password Any Hint? PLEASE !?! Execute net groupmap cleanup then reset your mappings. - John T. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba Looks loke net groupmap cleanup has no effect on my system here is the copy of action from my terminal mail# /home net groupmap delete ntgroup=domain users Sucessfully removed domain users from the mapping db mail# /home net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-512) - -1 mail# /home net groupmap cleanup Group Domain Guests is not mapped Group Domain Users is not mapped Group Domain Admins is not mapped mail# /home net groupmap add ntgroup=Domain Users unixgroup=users type=b No rid or sid specified, choosing algorithmic mapping Successfully added group Domain Users to the mapping db mail# /home net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) - users Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-512) - -1 mail# /home Maybe Domain Users is NOT to be mapped ? is of any use mapping Domain Users and Users ? I would say YES as I want to set permissions based on AD groups What version of Samba do you have? For now, stop Samba, remove the group_mapping,tdb file, then remap your groups. In the long run suggest you update to the latest release. - John T. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba Sorry... I forgot I'm running Samba 3.0.14a mail# /home pkg_info | grep samba samba-3.0.14a_1,1 A free SMB and CIFS client and server for UNIX here is the smb.conf [global] workgroup = dmsware netbios name = mail #os level = 20 # we will never be master or slave browser as we are on a firewalled net preferred master = no server string = mail.dmsware.it Samba Shares realm = dmsware.it security = ADS password server = orion.dmsware.it winbind cache time = 3600 winbind use default domain = Yes winbind nested groups = Yes
[Samba] Creating a samba BDC How-to:
All, I help run a school and we have a samba domain (no windows servers). I am however fearful of something happening and creating a school-wide outage if my PDC goes down. What is all involved in creating a BDC and to connect to my PDC? In addition, I have another question about pdc / bdc and user data. With a PDC/ BDC infrastructure set up, am I supposed to have all the data (homes drives, shares, etc) on a separate machine so then if a PDC goes down, the BDC can serve the same files? How does a BDC / PDC work in terms of where to store files? I am also currently using the /etc/samba/smbpasswd for username /passwords, but I am looking at going to LDAP... Any direction and just a 'nutshell' response to pdc /bdc with samba would be helpful. Thanks, ~ Aaron -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Creating a samba BDC How-to:
In addition, I have another question about pdc / bdc and user data. With a PDC/ BDC infrastructure set up, am I supposed to have all the data (homes drives, shares, etc) on a separate machine so then if a PDC goes down, the BDC can serve the same files? We actually have no shares on the pdc or bdc we have them only for logins. Our user shares are on a third and more powerful box that is a domain member server. John -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Joining an 2003 AD
On Tue, 2007-05-01 at 08:18 -0400, Aaron Kincer wrote: Here is what I'm saying (and one thing I forgot to include): /etc/hosts has the line = 127.0.1.1 BMSK12LTSP.BOLIVAR.EDU BMSK12LTSP /etc/hostname = BMSK12LTSP server string in smb.conf = BMSK12LTSP Your Active Directory fully qualified domain MUST be BOLIVAR.EDU That's what I'm saying. If you fix these, I suspect it will work. Kemp, Levi wrote: So for example my Server String = BMSK12LTSP then my entry in the /etc/hostname file should contain a line reading 10.250.25.25 BMSK12LTSP.BOLIVAR.EDU BMSK12LTSP ? If that is all this is I'm going to shoot myself. What if you don't have either one defined? Or only one defined, because I don't think I have an entry in my hosts for my server, aside from the localhost.localhost localhost entry. And it is on the internal NIC for the LTSP, 192.168.0.254 I think, I'm not in front of the server right now. Don, are you saying that despite putting in both you still get this error? If this actually works I'm going to add it to the how-to I've got and send it back to the writer. I don't think it was needed when he wrote it, and like I said I got it to work the first time. I don't think I updated Samba that time, either that or I had the entry's in both and didn't know it. Thanks for the info. I'm going to give it a try in the morning and let you know if it worked. Levi From: Don Meyer [mailto:[EMAIL PROTECTED] Sent: Mon 4/30/2007 6:54 PM To: Aaron Kincer; Kemp, Levi Cc: samba@lists.samba.org Subject: Re: [Samba] Joining an 2003 AD At 04:39 PM 4/30/2007, Aaron Kincer wrote: You must make sure that the hostname set in /etc/hostname and what you have for your server string are exactly the same. At least that's how I fixed it. On Edgy 6.10/Samba 3.0.22, I didn't have to do this. This behavior was introduced at the 3.0.23c level, IIRC. (maybe 3.0.23b?)That explains the version differences you are seeing. The gotcha is that I get this failure despite attempting the 'net ads join' with Domain Admin credentials...(Even up through 3.0.25rc3) -D Don Meyer [EMAIL PROTECTED] Network Manager, ACES Academic Computing Facility Technical System Manager, ACES TeleNet System UIUC College of ACES, Information Technology and Communication Services They that can give up essential liberty to obtain a little temporary safety, deserve neither liberty or safety. -- Benjamin Franklin, 1759 Everything seems to be working. I have joined the Domain, checked the groups, wbinfo stuff, klist, everything I can think of, but I'm still not authenticating against the server. I can access the network, ping everything just fine. I get back a positive reply on net ads testjoin. I'm stumped because at this point last time the only error I had was there were no home directories. But I'm not that far apparently. When I do a wbinfo -a username%password, I get this. plaintext password authentication failed error code was NT_STATUS_NO_SUCH_USER (0xc064) error messsage was: No such user Could not authenticate user lnkemp%tigger1 with plaintext password challenge/response password authentication succeeded Does that explain anything? I've reread the how-to on Samba, but nothing stuck out as something I missed or didn't have correct. Any thoughts on what to check again? Thanks -- Levi Kemp [EMAIL PROTECTED] Bolivar R-1 Schools -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Creating a samba BDC How-to:
That makes more sense. Thanks for the clarification. Do you use ldap to sync passwords between pdc and bdc? Yes, and for that we have 2 ldap servers. John -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Problem with Samba-3.0.25rc3 idmap_ldap (winbind dumps core)
On Tue, May 01, 2007 at 02:49:10AM -0500, Don Meyer wrote: [...] Then I traced the secret retrieval process back to passdb/secrets.c, where I then traced the secrets_store_generic function back out to the 'net idmap secret' command. For others reference, to set the ldap_user_dn password for each defined domain, and for the idmap alloc config side, you use the following commands: net idmap secret DOMAIN secret net idmap secret alloc secret (Note: A little pointer dropped in the man page for idmap_ldap would have been quite helpful here...) There is a note in the man pages that say: NOTE In order to use authentication against ldap servers you may need to provide a DN and a password. To avoid exposing the password in plain text in the configuration file we store it into a security store. The net idmap command is used to store a secret for the DN specified in a specific idmap domain. From: http://www.samba.org/samba/docs/man/manpages-3/idmap_ldap.8.html [..] I'm having trouble tracing this beyond the idmap_init function in nsswitch/idmap.c. If this points to a problem in samba, I hope this helps. On the other hand, if this is a problem in my setup, any pointers in the direction of fixing it would be greatly appreciated. A core dump is definitively an issue, I will try to reproduce and fix it today on my train trip or at worst tomorrow. Simo. -- Simo Sorce [EMAIL PROTECTED] --- Samba Team http://www.samba.org -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Can't delete files via FTP
I am getting an error when trying to delete files from FTP. I can upload, download, rename files, and even delete empty folders. But when I try to delete a file, I get below error and the filename changes to '.pureftpd-rename.alphanumeric string'. Command: DELE /path/to/file Response: 550 Could not delete /path/to/file Invalid argument A little Background... I have a small internal webserver, that my users use to host tons of images. It gets full a lot and we can't remove the images. I needed a quick and cheap (not spending a dime) solution for more space. I have a SAN storage with a volume of 1.2TB. I installed Samba and created a service in the SAN controller, then I mounted that on the webserver. Everything works except deleting files from FTP. Here's my smb.conf snippet: [imagesdir] comment = My Webserver Images Directory path = /path/to/volume valid users = sambauser public = no writable = yes printable = no [ftp] comment = ftp server file area path = /path/to/volume writable = yes public = yes I have tried both services, ftp and imagesdir using this mount command: mount_smbfs -I 192.168.0.2 //[EMAIL PROTECTED]/imagesdir /path/to/mounted/directory I also have ACL_SUPPORT enabled and Samba was installed via ports. Here are my specs: WEBSERVER: FreeBSD 5.3-RELEASE Apache 1.3.3 PureFTPd 1.0.20 SAN: FreeBSD 6.0-RELEASE Samba 3.0.24 Please help me or point me in the right direction. :) If you need any more information, just let me know. :D -- View this message in context: http://www.nabble.com/Can%27t-delete-files-via-FTP-tf3682869.html#a10293561 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
Re: [Samba] Samba 3.x and PCNetLink domain trusts]]
I found part of the prob may have been that I didn't join the samba PDC to its own domain. # net join samba -U root Joined domain SAMBA Now, commands like wbinfo -t and wbinfo -m indicate that the domains are trusted. Also, I can run net rpc samdump to dump the NT4 domain info (but not the PCNL domain.) If I try to log in to the NT4 server as a Samba user (who has been added to the local users group) I get an error C19B - which is seems to be a Samba error (not a microsoft error) suggesting a SID (and possibly winbindd?) error. Forwarded Message From: Volker Lendecke [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Damian Lock (SSCI) [EMAIL PROTECTED] Cc: Subject: Re: [Samba] Samba 3.x and PCNetLink domain trusts] Date: Wed, 2 May 2007 17:15:49 +0200 On Wed, May 02, 2007 at 11:08:22AM -0400, Damian Lock (SSCI) wrote: Except that everything isn't fine, because I can't login to the samba domain as a PCNL/NT4 user or vice versa. Then you need to debug more. Setting up the join did work. Volker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Joining an 2003 AD
I figured out my issue after looking over the smb.conf file one more time. Seems I have the full domain name in for my password server br2.bolivar.edu, not just br2. I also failed to have winbind use default domain, and winbind separator included. I'm not sure which fixed it but now when I wbinfo -a I get. plaintext password authentication succeeded challenge/response password authentication succeeded Which is exactly right if I'm not mistaken. I'm going to try and figure out how to auto-create home directories now so I'm sure I'll have a new question soon. I'm also backing up my .conf files in a couple places. If I build a new server I should just be able to paste them into place correct? As long as the server is the same name, which it will be. Levi On Mon, 2007-04-30 at 22:55 -0500, Don Meyer wrote: No, on systems that I have attempted to override this error and join the domain with the system's given name, I have been unable to do so with the Domain Admin credentials that the error states is required for success. My current domain join workaround for a rebuild/new system is to install the 3.0.23-6 packages, run the 'net ads join', then immediately update to current version. -D At 10:31 PM 4/30/2007, Kemp, Levi wrote: Don, are you saying that despite putting in both you still get this error? -- At 04:39 PM 4/30/2007, Aaron Kincer wrote: You must make sure that the hostname set in /etc/hostname and what you have for your server string are exactly the same. At least that's how I fixed it. On Edgy 6.10/Samba 3.0.22, I didn't have to do this. ... The gotcha is that I get this failure despite attempting the 'net ads join' with Domain Admin credentials...(Even up through 3.0.25rc3) Don Meyer [EMAIL PROTECTED] Network Manager, ACES Academic Computing Facility Technical System Manager, ACES TeleNet System UIUC College of ACES, Information Technology and Communication Services They that can give up essential liberty to obtain a little temporary safety, deserve neither liberty or safety. -- Benjamin Franklin, 1759 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba 3.x and PCNetLink domain trusts]]]
It looks as if 2-way trusts are working between Samba and PCNL and between Samba/NT4. The one exception seems to be logging in as Samba/myname on the ENT4 PDC. I had created a ENT4/myname account. I had forgotten to add SAMBA/myname to the local users group on the ENT4 PDC before trying to the ENT4 PDC as SAMBA/myname. If I log in as SAMBA/anothername it is OK. This isn't real show stopper since I think I can drop the NT4 machine and domain altogether. (the goal is to eventually move everything to Samba.) Thanks for the assistance. To: samba@lists.samba.org Subject: Re: [Samba] Samba 3.x and PCNetLink domain trusts]] Date: Wed, 2 May 2007 16:05:59 -0400 I found part of the prob may have been that I didn't join the samba PDC to its own domain. # net join samba -U root Joined domain SAMBA Now, commands like wbinfo -t and wbinfo -m indicate that the domains are trusted. Also, I can run net rpc samdump to dump the NT4 domain info (but not the PCNL domain.) If I try to log in to the NT4 server as a Samba user (who has been added to the local users group) I get an error C19B - which is seems to be a Samba error (not a microsoft error) suggesting a SID (and possibly winbindd?) error. Forwarded Message From: Volker Lendecke [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Damian Lock (SSCI) [EMAIL PROTECTED] Cc: Subject: Re: [Samba] Samba 3.x and PCNetLink domain trusts] Date: Wed, 2 May 2007 17:15:49 +0200 On Wed, May 02, 2007 at 11:08:22AM -0400, Damian Lock (SSCI) wrote: Except that everything isn't fine, because I can't login to the samba domain as a PCNL/NT4 user or vice versa. Then you need to debug more. Setting up the join did work. Volker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: R: R: [Samba] duplicate group in NET GROUPMAP LIST
On Wednesday 02 May 2007 10:21, Gianluca Culot wrote: -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di Gianluca Culot Inviato: mercoledì 2 maggio 2007 15.09 A: samba@lists.samba.org Oggetto: R: R: [Samba] duplicate group in NET GROUPMAP LIST -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] conto di John H Terpstra Inviato: mercoledì 2 maggio 2007 14.56 A: samba@lists.samba.org Oggetto: Re: R: [Samba] duplicate group in NET GROUPMAP LIST On Wednesday 02 May 2007 07:40, Gianluca Culot wrote: ... the strange fact is the Domain Users appear to have a TWO sids Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) The first appear to be correctly mapped to the local users group the latter has no mapping (-1) that's to me appeares really odd Can somebody explain me this old fact ? My actual Samba server (with smtp, pop3, wibind, sshd, apache21) works perefctly and every user can authenticate correctly on every service with his/her own AD domain user and password Any Hint? PLEASE !?! Execute net groupmap cleanup then reset your mappings. - John T. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba Looks loke net groupmap cleanup has no effect on my system here is the copy of action from my terminal mail# /home net groupmap delete ntgroup=domain users Sucessfully removed domain users from the mapping db mail# /home net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-512) - -1 mail# /home net groupmap cleanup Group Domain Guests is not mapped Group Domain Users is not mapped Group Domain Admins is not mapped mail# /home net groupmap add ntgroup=Domain Users unixgroup=users type=b No rid or sid specified, choosing algorithmic mapping Successfully added group Domain Users to the mapping db mail# /home net groupmap list System Operators (S-1-5-32-549) - -1 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-514) - -1 Replicators (S-1-5-32-552) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-2801) - users Guests (S-1-5-32-546) - -1 BUILTIN (S-1-5-21-531635747-2076120898-3807014553-2001) - 500 Domain Guests (S-1-5-21-531635747-2076120898-3807014553-132069) - nobody Power Users (S-1-5-32-547) - -1 Print Operators (S-1-5-32-550) - -1 Administrators (S-1-5-32-544) - -1 Account Operators (S-1-5-32-548) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-3001) - 1000 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-1001) - wheel Backup Operators (S-1-5-32-551) - -1 Users (S-1-5-32-545) - -1 Domain Users (S-1-5-21-531635747-2076120898-3807014553-513) - -1 Domain Admins (S-1-5-21-531635747-2076120898-3807014553-512) - -1 mail# /home Maybe Domain Users is NOT to be mapped ? is of any use mapping Domain Users and Users ? I would say YES as I want to set permissions based on AD groups What version of Samba do you have? For now, stop Samba, remove the group_mapping,tdb file, then remap your groups. In the long run suggest you update to the latest release. - John T. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba Sorry... I forgot I'm running Samba 3.0.14a mail# /home pkg_info | grep samba samba-3.0.14a_1,1 A free SMB and CIFS client and server for UNIX here is the smb.conf [global] workgroup = dmsware netbios name = mail #os level = 20 # we will never be master or slave browser as we are on a firewalled net preferred master = no server string = mail.dmsware.it Samba
[Samba] test
test -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] FreeBSD, winbindd and Domain Groups
I have installed SAMBA from the ports collection and have run into a problem. I am using winbind and I am able to list the groups and users from the Windows 2003 Server (wbinfo -u, wbinfo -g, getent passwd, getent group) without any problem. I am able to display the shares on the SAMBA server using net view without any problem. However, when I try to connect to the share, I receive a message stating, The specified network password is not correct. I am using my username and password which I am currently using on the domain. The valid users on the share are set to jay.hall and the ownership on the directory has been changed to jay.hall. In the log.winbindd file I am seeing the following error messages. [2007/05/02 20:20:00, 0] nsswitch/winbindd_group.c:winbindd_getgrent(829) could not lookup domain group OWS_1299767552_admin [2007/05/02 20:20:00, 1] nsswitch/winbindd_group.c:fill_grent_mem(106) could not lookup membership for group rid S-1-5-21-1220945662-1979792683-83952 Any suggestions anyone has would be greatly appreciated. Thanks, Jay -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Rev 234: added a builtin fetch function to support samba3 unlocked fetch in http://samba.org/~tridge/ctdb
revno: 234 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Wed 2007-05-02 15:11:11 +1000 message: added a builtin fetch function to support samba3 unlocked fetch modified: common/ctdb_ltdb.c ctdb_ltdb.c-20061128065342-to93h6eejj5kon81-2 include/ctdb.h ctdb.h-20061117234101-o3qt14umlg9en8z0-11 include/ctdb_private.h ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13 tools/ctdb_control.c ctdb_control.c-20070426122705-9ehj1l5lu2gn9kuj-1 === modified file 'common/ctdb_ltdb.c' --- a/common/ctdb_ltdb.c2007-05-01 03:25:02 + +++ b/common/ctdb_ltdb.c2007-05-02 05:11:11 + @@ -50,6 +50,15 @@ return 0; } +/* + this is a plain fetch procedure that all databases support +*/ +static int ctdb_fetch_func(struct ctdb_call_info *call) +{ + call-reply_data = call-record_data; + return 0; +} + /* return the lmaster given a key @@ -366,6 +375,17 @@ talloc_free(ctdb_db); return -1; } + + /* + all databases support the fetch function. we need this + for efficient Samba3 ctdb fetch + */ + ret = ctdb_daemon_set_call(ctdb, ctdb_db-db_id, ctdb_fetch_func, CTDB_FETCH_FUNC); + if (ret != 0) { + DEBUG(0,(Failed to setup fetch function for '%s'\n, ctdb_db-db_name)); + talloc_free(ctdb_db); + return -1; + } /* tell all the other nodes about this database */ ctdb_daemon_send_control(ctdb, CTDB_BROADCAST_VNN, 0, === modified file 'include/ctdb.h' --- a/include/ctdb.h2007-05-02 00:53:29 + +++ b/include/ctdb.h2007-05-02 05:11:11 + @@ -180,25 +180,10 @@ Fetch a ctdb record from a remote node . Underneath this will force the dmaster for the record to be moved to the local node. - */ struct ctdb_record_handle *ctdb_fetch_lock(struct ctdb_db_context *ctdb_db, TALLOC_CTX *mem_ctx, TDB_DATA key, TDB_DATA *data); - -/* - do a fetch lock from a client to the local daemon -*/ -#define FETCH_LOCK_SUCCESS 0 -#define FETCH_LOCK_LOCKFAILED 1 -#define FETCH_LOCK_FETCHFAILED 2 -#define FETCH_LOCK_DMASTERFAILED 3 - -int ctdb_client_fetch_lock(struct ctdb_db_context *ctdb_db, - TALLOC_CTX *mem_ctx, - TDB_DATA key, TDB_DATA *data); - - int ctdb_record_store(struct ctdb_record_handle *h, TDB_DATA data); int ctdb_register_message_handler(struct ctdb_context *ctdb, === modified file 'include/ctdb_private.h' --- a/include/ctdb_private.h2007-05-02 01:02:04 + +++ b/include/ctdb_private.h2007-05-02 05:11:11 + @@ -30,7 +30,8 @@ #define CTDB_DS_ALIGNMENT 8 -#define CTDB_NULL_FUNC 0xF001 +#define CTDB_NULL_FUNC 0xFF01 +#define CTDB_FETCH_FUNC 0xFF02 #define CTDB_CURRENT_NODE 0xF001 #define CTDB_BROADCAST_VNN 0xF002 === modified file 'tools/ctdb_control.c' --- a/tools/ctdb_control.c 2007-05-02 03:34:55 + +++ b/tools/ctdb_control.c 2007-05-02 05:11:11 + @@ -50,7 +50,8 @@ cleardb vnn dbid deletes all records in a db\n getrecmode vnn get recovery mode\n setrecmode vnn modeset recovery mode\n - recover vnn recover the cluster\n); + recover vnn recover the cluster\n + attach dbnameattach a database\n); exit(1); }
svn commit: samba-docs r1106 - in trunk/manpages-3: .
Author: kseeger Date: 2007-05-02 07:30:56 + (Wed, 02 May 2007) New Revision: 1106 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=1106 Log: Add comment about mount.cifs to the manpage of smbmount (fix bug #4581) Modified: trunk/manpages-3/smbmount.8.xml Changeset: Modified: trunk/manpages-3/smbmount.8.xml === --- trunk/manpages-3/smbmount.8.xml 2007-04-26 23:44:45 UTC (rev 1105) +++ trunk/manpages-3/smbmount.8.xml 2007-05-02 07:30:56 UTC (rev 1106) @@ -30,8 +30,12 @@ the citerefentryrefentrytitlemount/refentrytitle manvolnum8/manvolnum/citerefentry command when using the -t smbfs option. This command only works in Linux, and the kernel must - support the smbfs filesystem. /para + support the smbfs filesystem./para + paraWARNING: commandsmbmount/command is deprecated and not + maintained any longer. commandmount.cifs/command (mount -t cifs) + should be used instead of commandsmbmount/command./para + paraOptions to commandsmbmount/command are specified as a comma-separated list of key=value pairs. It is possible to send options other than those listed here, assuming that smbfs supports them. If
svn commit: samba-docs r1107 - in trunk/manpages-3: .
Author: kseeger Date: 2007-05-02 07:59:48 + (Wed, 02 May 2007) New Revision: 1107 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=1107 Log: Add comment about umount.cifs to the manpage of smbumount (fix bug #4581) Modified: trunk/manpages-3/smbumount.8.xml Changeset: Modified: trunk/manpages-3/smbumount.8.xml === --- trunk/manpages-3/smbumount.8.xml2007-05-02 07:30:56 UTC (rev 1106) +++ trunk/manpages-3/smbumount.8.xml2007-05-02 07:59:48 UTC (rev 1107) @@ -30,6 +30,10 @@ the user who has mounted a filesystem is allowed to unmount it again. For root it is not necessary to use smbumount. The normal umount program works perfectly well./para + + paraWARNING: commandsmbumount/command is deprecated and not +maintained any longer. commandumount.cifs/command +should be used instead of commandsmbumount/command./para /refsect1 refsect1
svn commit: samba r22635 - in branches/SAMBA_4_0/source/auth: gensec kerberos
Author: metze Date: 2007-05-02 09:54:06 + (Wed, 02 May 2007) New Revision: 22635 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=22635 Log: make it possible to not turn off dns canonicalization of hostnames with krb5:set_dns_canonicalize=yes needed for the drsuapi replication, but we should fix this with a kdc locator plugin ... metze Modified: branches/SAMBA_4_0/source/auth/gensec/gensec_gssapi.c branches/SAMBA_4_0/source/auth/kerberos/krb5_init_context.c Changeset: Modified: branches/SAMBA_4_0/source/auth/gensec/gensec_gssapi.c === --- branches/SAMBA_4_0/source/auth/gensec/gensec_gssapi.c 2007-05-01 21:29:42 UTC (rev 22634) +++ branches/SAMBA_4_0/source/auth/gensec/gensec_gssapi.c 2007-05-02 09:54:06 UTC (rev 22635) @@ -218,7 +218,7 @@ } /* don't do DNS lookups of any kind, it might/will fail for a netbios name */ - ret = gsskrb5_set_dns_canonicalize(FALSE); + ret = gsskrb5_set_dns_canonicalize(lp_parm_bool(-1, krb5, set_dns_canonicalize, false)); if (ret) { DEBUG(1,(gensec_krb5_start: gsskrb5_set_dns_canonicalize failed\n)); talloc_free(gensec_gssapi_state); Modified: branches/SAMBA_4_0/source/auth/kerberos/krb5_init_context.c === --- branches/SAMBA_4_0/source/auth/kerberos/krb5_init_context.c 2007-05-01 21:29:42 UTC (rev 22634) +++ branches/SAMBA_4_0/source/auth/kerberos/krb5_init_context.c 2007-05-02 09:54:06 UTC (rev 22635) @@ -473,7 +473,8 @@ /* Set options in kerberos */ - krb5_set_dns_canonicalize_hostname((*smb_krb5_context)-krb5_context, FALSE); + krb5_set_dns_canonicalize_hostname((*smb_krb5_context)-krb5_context, + lp_parm_bool(-1, krb5, set_dns_canonicalize, false)); return 0; }
Rev 92: merged tridge's branch in http://samba.org/~tridge/psomogyi/
revno: 92 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Peter Somogyi [EMAIL PROTECTED] branch nick: ctdb timestamp: Wed 2007-05-02 17:19:48 +0200 message: merged tridge's branch added: lib/events/events_aio.cevents_aio.c-20070501213746-4fxluwiq4rcxib8p-1 lib/events/events_epoll.c events_epoll.c-20070501213746-4fxluwiq4rcxib8p-2 lib/events/events_select.c events_select.c-20070501213746-4fxluwiq4rcxib8p-3 lib/events/events_signal.c events_signal.c-20070501213746-4fxluwiq4rcxib8p-4 lib/events/events_timed.c events_timed.c-20070501213746-4fxluwiq4rcxib8p-5 lib/replace/strptime.c strptime.c-20070501213746-4fxluwiq4rcxib8p-6 lib/replace/strptime.m4strptime.m4-20070501213719-rb7s7slvbs4wljve-1 lib/util/strlist.c strlist.c-20070501213746-4fxluwiq4rcxib8p-7 lib/util/util.cutil.c-20070501213746-4fxluwiq4rcxib8p-8 renamed: direct/ctdbd.sh = tests/ctdbd.sh ctdbd.sh-20070411085038-phusiewluwzyqjpc-2 modified: Makefile.inmakefile.in-20061117234101-o3qt14umlg9en8z0-1 common/cmdline.c cmdline.c-20070416041216-w1zvz91bkdsgjckw-1 common/ctdb.c ctdb.c-20061127094323-t50f58d65iaao5of-2 common/ctdb_call.c ctdb_call.c-20061128065342-to93h6eejj5kon81-1 common/ctdb_client.c ctdb_client.c-20070411010216-3kd8v37k61steeya-1 common/ctdb_control.c ctdb_control.c-20070426122724-j6gkpiofhbwdin63-1 common/ctdb_daemon.c ctdb_daemon.c-20070409200331-3el1kqgdb9m4ib0g-1 common/ctdb_ltdb.c ctdb_ltdb.c-20061128065342-to93h6eejj5kon81-2 common/ctdb_message.c ctdb_message.c-20070208224107-9dnio7x7z33prrmt-1 common/ctdb_util.c ctdb_util.c-20061128065342-to93h6eejj5kon81-3 direct/ctdbd.c ctdbd.c-20070411085044-dqmhr6mfeexnyt4m-1 ib/ibwrapper.c ibwrapper.c-20061204130028-0125b4f5a72f4b11 include/ctdb.h ctdb.h-20061117234101-o3qt14umlg9en8z0-11 include/ctdb_private.h ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13 include/includes.h includes.h-20061117234101-o3qt14umlg9en8z0-17 lib/events/config.m4 config.m4-20061117234101-o3qt14umlg9en8z0-24 lib/events/config.mk config.mk-20061117234101-o3qt14umlg9en8z0-25 lib/events/events.cevents.c-20061117234101-o3qt14umlg9en8z0-26 lib/events/events.hevents.h-20061117234101-o3qt14umlg9en8z0-27 lib/events/events_internal.h events_internal.h-20061117234101-o3qt14umlg9en8z0-28 lib/events/events_liboop.c events_liboop.c-20061117234101-o3qt14umlg9en8z0-29 lib/events/events_standard.c events_standard.c-20061117234101-o3qt14umlg9en8z0-30 lib/replace/Makefile.inmakefile.in-20070125040949-7t3f5zdl1q4z9hyv-5 lib/replace/README readme-20070125040949-7t3f5zdl1q4z9hyv-6 lib/replace/libreplace.m4 libreplace.m4-20070125040949-7t3f5zdl1q4z9hyv-20 lib/replace/libreplace_macros.m4 libreplace_macros.m4-20070125040949-7t3f5zdl1q4z9hyv-22 lib/replace/replace.c replace.c-20070125040949-7t3f5zdl1q4z9hyv-26 lib/replace/replace.h replace.h-20070125040949-7t3f5zdl1q4z9hyv-27 lib/replace/samba.m4 samba.m4-20070125040949-7t3f5zdl1q4z9hyv-29 lib/replace/snprintf.c snprintf.c-20070125040949-7t3f5zdl1q4z9hyv-30 lib/replace/system/config.m4 config.m4-20070125040949-7t3f5zdl1q4z9hyv-77 lib/replace/system/filesys.h filesys.h-20070125040949-7t3f5zdl1q4z9hyv-79 lib/talloc/Makefile.in makefile.in-20070125040949-7t3f5zdl1q4z9hyv-38 lib/talloc/config.h.in config.h.in-20070125040949-7t3f5zdl1q4z9hyv-42 lib/talloc/configure.acconfigure.ac-20070125040949-7t3f5zdl1q4z9hyv-45 lib/talloc/libtalloc.m4libtalloc.m4-20070125040949-7t3f5zdl1q4z9hyv-47 lib/talloc/talloc.3talloc.3-20070125040949-7t3f5zdl1q4z9hyv-48 lib/talloc/talloc.3.html talloc.3.html-20070125040949-7t3f5zdl1q4z9hyv-49 lib/talloc/talloc.ctalloc.c-20070125040949-7t3f5zdl1q4z9hyv-51 lib/talloc/talloc.htalloc.h-20070125040949-7t3f5zdl1q4z9hyv-52 lib/talloc/talloc.pc talloc.pc-20070125040949-7t3f5zdl1q4z9hyv-54 lib/talloc/talloc.pc.intalloc.pc.in-20070125040949-7t3f5zdl1q4z9hyv-55 lib/talloc/talloc_guide.txt talloc_guide.txt-20070125040949-7t3f5zdl1q4z9hyv-56 lib/talloc/testsuite.c testsuite.c-20070125040949-7t3f5zdl1q4z9hyv-57 lib/tdb/Makefile.inmakefile.in-20070125040949-7t3f5zdl1q4z9hyv-59 lib/tdb/configure.ac configure.ac-20070125040949-7t3f5zdl1q4z9hyv-65 lib/tdb/libtdb.m4 libtdb.m4-20070125040949-7t3f5zdl1q4z9hyv-69 lib/tdb/tdb.pc.in tdb.pc.in-20070125040949-7t3f5zdl1q4z9hyv-72 tcp/tcp_connect.c
Rev 93: ctdb/ib fork bugfix in http://samba.org/~tridge/psomogyi/
revno: 93 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Peter Somogyi [EMAIL PROTECTED] branch nick: ctdb timestamp: Wed 2007-05-02 17:27:56 +0200 message: ctdb/ib fork bugfix - added ibv_fork_init not to have exotic errors after forks (even if ib is not used at all in children) modified: ib/ibwrapper.c ibwrapper.c-20061204130028-0125b4f5a72f4b11 === modified file 'ib/ibwrapper.c' --- a/ib/ibwrapper.c2007-05-02 15:19:48 + +++ b/ib/ibwrapper.c2007-05-02 15:27:56 + @@ -534,13 +534,14 @@ case RDMA_CM_EVENT_DISCONNECTED: DEBUG(11, (RDMA_CM_EVENT_DISCONNECTED\n)); - if ((rc=rdma_ack_cm_event(event))) - DEBUG(0, (disc/rdma_ack_cm_event failed with %d\n, rc)); - event = NULL; /* don't ack more */ - if (cma_id!=pctx-cm_id) { - DEBUG(0, (client DISCONNECT event cm_id=%p\n, cma_id)); + DEBUG(1, (client DISCONNECT event cm_id=%p\n, cma_id)); conn = talloc_get_type(cma_id-context, struct ibw_conn); + + if ((rc=rdma_ack_cm_event(event))) + DEBUG(0, (disc/rdma_ack_cm_event failed with %d\n, rc)); + event = NULL; /* don't ack it any more */ + conn-state = IBWC_DISCONNECTED; pctx-connstate_func(NULL, conn); } @@ -945,6 +946,13 @@ DEBUG(10, (ibw_init(ctx_userdata: %p, ectx: %p)\n, ctx_userdata, ectx)); + rc = ibv_fork_init(); + if (rc) { + sprintf(ibw_lasterr, + FATAL ERROR: ibv_fork_init returned with %d\n, rc); + goto error; + } + /* initialize basic data structures */ memset(ibw_lasterr, 0, IBW_LASTERR_BUFSIZE); @@ -965,13 +973,13 @@ /* process attributes */ if (ibw_process_init_attrs(attr, nattr, pctx-opts)) - goto cleanup; + goto error; /* init cm */ pctx-cm_channel = rdma_create_event_channel(); if (!pctx-cm_channel) { sprintf(ibw_lasterr, rdma_create_event_channel error %d\n, errno); - goto cleanup; + goto error; } pctx-cm_channel_event = event_add_fd(pctx-ectx, pctx, @@ -985,7 +993,7 @@ if (rc) { rc = errno; sprintf(ibw_lasterr, rdma_create_id error %d\n, rc); - goto cleanup; + goto error; } DEBUG(10, (created cm_id %p\n, pctx-cm_id)); @@ -993,7 +1001,7 @@ return ctx; /* don't put code here */ -cleanup: +error: DEBUG(0, (ibw_lasterr)); if (ctx)
svn commit: samba r22636 - in branches/SAMBA_3_0/source/nsswitch: .
Author: gd Date: 2007-05-02 15:44:05 + (Wed, 02 May 2007) New Revision: 22636 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=22636 Log: Fix logic bug. We certainly don't want to crash winbind on each sucessfull centry_uint{8,16,32,64} read. Jeremy, please check :-) Guenther Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c Changeset: Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c === --- branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c 2007-05-02 09:54:06 UTC (rev 22635) +++ branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c 2007-05-02 15:44:05 UTC (rev 22636) @@ -221,7 +221,7 @@ { uint32 ret; - if (centry_check_bytes(centry, 4)) { + if (!centry_check_bytes(centry, 4)) { smb_panic_fn(centry_uint32); return (uint32)-1; } @@ -236,7 +236,7 @@ static uint16 centry_uint16(struct cache_entry *centry) { uint16 ret; - if (centry_check_bytes(centry, 2)) { + if (!centry_check_bytes(centry, 2)) { smb_panic_fn(centry_uint16); return (uint16)-1; } @@ -251,7 +251,7 @@ static uint8 centry_uint8(struct cache_entry *centry) { uint8 ret; - if (centry_check_bytes(centry, 1)) { + if (!centry_check_bytes(centry, 1)) { smb_panic_fn(centry_uint8); return (uint8)-1; } @@ -266,7 +266,7 @@ static NTTIME centry_nttime(struct cache_entry *centry) { NTTIME ret; - if (centry_check_bytes(centry, 8)) { + if (!centry_check_bytes(centry, 8)) { smb_panic_fn(centry_nttime); return (NTTIME)-1; } @@ -300,7 +300,7 @@ return NULL; } - if (centry_check_bytes(centry, (size_t)len)) { + if (!centry_check_bytes(centry, (size_t)len)) { smb_panic_fn(centry_string); return NULL; } @@ -332,7 +332,7 @@ return NULL; } - if (centry_check_bytes(centry, 16)) { + if (!centry_check_bytes(centry, 16)) { return NULL; }
Rev 12082: Install tdbbackup and tdbdump again. in file:///home/jelmer/bzr.samba/SAMBA_4_0/
At file:///home/jelmer/bzr.samba/SAMBA_4_0/ revno: 12082 revision-id: [EMAIL PROTECTED] parent: svn-v2:[EMAIL PROTECTED] committer: Jelmer Vernooij [EMAIL PROTECTED] branch nick: SAMBA_4_0 timestamp: Wed 2007-05-02 19:08:22 +0200 message: Install tdbbackup and tdbdump again. modified: .bzrignore svn-v2:[EMAIL PROTECTED] source/lib/tdb/Makefile.in svn-v2:[EMAIL PROTECTED] source/lib/tdb/configure.acsvn-v2:[EMAIL PROTECTED] === modified file '.bzrignore' --- a/.bzrignore2007-04-30 10:49:42 + +++ b/.bzrignore2007-05-02 17:08:22 + @@ -180,3 +180,5 @@ source/lib/ldb/lib source/lib/ldb/examples/ldbreader source/lib/ldb/examples/ldifreader +source/lib/tdb/bin/tdbbackup +source/lib/tdb/bin/tdbdump === modified file 'source/lib/tdb/Makefile.in' --- a/source/lib/tdb/Makefile.in2007-04-30 10:49:42 + +++ b/source/lib/tdb/Makefile.in2007-05-02 17:08:22 + @@ -19,8 +19,8 @@ .PHONY: test -PROGS = bin/tdbtool$(EXEEXT) bin/tdbtorture$(EXEEXT) -PROGS_NOINSTALL = bin/tdbtest$(EXEEXT) bin/tdbdump$(EXEEXT) bin/tdbbackup$(EXEEXT) +PROGS = bin/tdbtool$(EXEEXT) bin/tdbdump$(EXEEXT) bin/tdbbackup$(EXEEXT) +PROGS_NOINSTALL = bin/tdbtest$(EXEEXT) bin/tdbtorture$(EXEEXT) ALL_PROGS = $(PROGS) $(PROGS_NOINSTALL) TDB_OBJ = @TDB_OBJ@ @LIBREPLACEOBJ@ === modified file 'source/lib/tdb/configure.ac' --- a/source/lib/tdb/configure.ac 2007-04-30 08:08:36 + +++ b/source/lib/tdb/configure.ac 2007-05-02 17:08:22 + @@ -2,7 +2,7 @@ AC_DEFUN([SMB_MODULE_DEFAULT], [echo -n ]) AC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ]) AC_DEFUN([SMB_ENABLE], [echo -n ]) -AC_INIT(tdb, 1.1) +AC_INIT(tdb, 1.1.0) AC_CONFIG_SRCDIR([common/tdb.c]) AC_CONFIG_HEADER(include/config.h) AC_LIBREPLACE_ALL_CHECKS
svn commit: samba r22637 - in branches/SAMBA_4_0: . source/lib/tdb
Author: jelmer Date: 2007-05-02 16:09:33 + (Wed, 02 May 2007) New Revision: 22637 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=22637 Log: Install tdbbackup and tdbdump again. Modified: branches/SAMBA_4_0/ branches/SAMBA_4_0/.bzrignore branches/SAMBA_4_0/source/lib/tdb/Makefile.in branches/SAMBA_4_0/source/lib/tdb/configure.ac Changeset: Property changes on: branches/SAMBA_4_0 ___ Name: bzr:merge ...skipped... Modified: branches/SAMBA_4_0/.bzrignore === --- branches/SAMBA_4_0/.bzrignore 2007-05-02 15:44:05 UTC (rev 22636) +++ branches/SAMBA_4_0/.bzrignore 2007-05-02 16:09:33 UTC (rev 22637) @@ -180,3 +180,5 @@ source/lib/ldb/lib source/lib/ldb/examples/ldbreader source/lib/ldb/examples/ldifreader +source/lib/tdb/bin/tdbbackup +source/lib/tdb/bin/tdbdump Modified: branches/SAMBA_4_0/source/lib/tdb/Makefile.in === --- branches/SAMBA_4_0/source/lib/tdb/Makefile.in 2007-05-02 15:44:05 UTC (rev 22636) +++ branches/SAMBA_4_0/source/lib/tdb/Makefile.in 2007-05-02 16:09:33 UTC (rev 22637) @@ -19,8 +19,8 @@ .PHONY: test -PROGS = bin/tdbtool$(EXEEXT) bin/tdbtorture$(EXEEXT) -PROGS_NOINSTALL = bin/tdbtest$(EXEEXT) bin/tdbdump$(EXEEXT) bin/tdbbackup$(EXEEXT) +PROGS = bin/tdbtool$(EXEEXT) bin/tdbdump$(EXEEXT) bin/tdbbackup$(EXEEXT) +PROGS_NOINSTALL = bin/tdbtest$(EXEEXT) bin/tdbtorture$(EXEEXT) ALL_PROGS = $(PROGS) $(PROGS_NOINSTALL) TDB_OBJ = @TDB_OBJ@ @LIBREPLACEOBJ@ Modified: branches/SAMBA_4_0/source/lib/tdb/configure.ac === --- branches/SAMBA_4_0/source/lib/tdb/configure.ac 2007-05-02 15:44:05 UTC (rev 22636) +++ branches/SAMBA_4_0/source/lib/tdb/configure.ac 2007-05-02 16:09:33 UTC (rev 22637) @@ -2,7 +2,7 @@ AC_DEFUN([SMB_MODULE_DEFAULT], [echo -n ]) AC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ]) AC_DEFUN([SMB_ENABLE], [echo -n ]) -AC_INIT(tdb, 1.1) +AC_INIT(tdb, 1.1.0) AC_CONFIG_SRCDIR([common/tdb.c]) AC_CONFIG_HEADER(include/config.h) AC_LIBREPLACE_ALL_CHECKS
svn commit: samba r22639 - in tags/TDB_1_1_0: .
Author: jelmer Date: 2007-05-02 16:10:23 + (Wed, 02 May 2007) New Revision: 22639 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=22639 Log: Add libreplace to TDB release. Added: tags/TDB_1_1_0/libreplace/ Changeset: Copied: tags/TDB_1_1_0/libreplace (from rev 22638, branches/SAMBA_4_0/source/lib/replace)
svn commit: samba r22638 - in tags: .
Author: jelmer Date: 2007-05-02 16:10:03 + (Wed, 02 May 2007) New Revision: 22638 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=22638 Log: Tag current TDB as 1.1.0 Added: tags/TDB_1_1_0/ Changeset: Copied: tags/TDB_1_1_0 (from rev 22637, branches/SAMBA_4_0/source/lib/tdb)
Re: svn commit: samba r22638 - in tags: .
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] schrieb: Author: jelmer Date: 2007-05-02 16:10:03 + (Wed, 02 May 2007) New Revision: 22638 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=22638 Log: Tag current TDB as 1.1.0 Added: tags/TDB_1_1_0/ why not TDB_1_0_1 ? there was just a Makefile change metze -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGOLm1m70gjA5TCD8RAjfsAJ9HM3gicS5ZNix2nE23lEOCqw5k6gCgj9x9 EYp6LuD4u1Q6r3DgLjGEfQI= =Mflt -END PGP SIGNATURE-
Re: svn commit: samba r22638 - in tags: .
Stefan (metze) Metzmacher wrote: [EMAIL PROTECTED] schrieb: Author: jelmer Date: 2007-05-02 16:10:03 + (Wed, 02 May 2007) New Revision: 22638 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=22638 Log: Tag current TDB as 1.1.0 Added: tags/TDB_1_1_0/ why not TDB_1_0_1 ? The sourceforge project with TDB and the package in Debian both use 1.0.1 as version number. I figured the support for transactions and the other improvements qualified for a new minor release. Cheers, Jelmer
Re: svn commit: samba r22638 - in tags: .
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jelmer Vernooij schrieb: Stefan (metze) Metzmacher wrote: [EMAIL PROTECTED] schrieb: Author: jelmer Date: 2007-05-02 16:10:03 + (Wed, 02 May 2007) New Revision: 22638 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=22638 Log: Tag current TDB as 1.1.0 Added: tags/TDB_1_1_0/ why not TDB_1_0_1 ? The sourceforge project with TDB and the package in Debian both use 1.0.1 as version number. I figured the support for transactions and the other improvements qualified for a new minor release. ok, fine:-) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGOMOOm70gjA5TCD8RAsFGAJsH0IPCY30RixyJrk8NDEz9nsvR5gCgqeGD OPV1XALAswG3QotgTRwRJu0= =GV+z -END PGP SIGNATURE-
svn commit: samba r22640 - in branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4: .
Author: metze Date: 2007-05-02 18:00:02 + (Wed, 02 May 2007) New Revision: 22640 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=22640 Log: - generate nicer output - fix compiler warning about unused ';' metze Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Header.pm Changeset: Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Header.pm === --- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Header.pm 2007-05-02 16:10:23 UTC (rev 22639) +++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Header.pm 2007-05-02 18:00:02 UTC (rev 22640) @@ -43,7 +43,7 @@ } if ($ret) { - pidl /* [ . substr($ret, 0, -1) . ] */; + pidl /* [ . substr($ret, 0, -1) . ] */; } } @@ -108,10 +108,12 @@ pidl tabs().char _empty_;\n; } $tab_depth--; -pidl tabs().}; + +pidl };; if (defined $struct-{PROPERTIES}) { HeaderProperties($struct-{PROPERTIES}, []); } +pidl \n\n; } # @@ -132,10 +134,10 @@ } pidl \n; $tab_depth--; - pidl }\n; + pidl };\n; pidl #else\n; my $count = 0; - pidl enum $name { __donnot_use_enum_$name=0x7FFF}\n; + pidl enum $name { __donnot_use_enum_$name=0x7FFF};\n; my $with_val = 0; my $without_val = 0; foreach my $e (@{$enum-{ELEMENTS}}) { @@ -191,11 +193,12 @@ } } $tab_depth--; - pidl }; + pidl };; if (defined $union-{PROPERTIES}) { HeaderProperties($union-{PROPERTIES}, []); } + pidl \n\n; } # @@ -297,7 +300,7 @@ HeaderFunctionInOut($fn, in); HeaderFunctionInOut($fn, inout); $tab_depth--; - pidl tabs().} in;\n\n; + pidl tabs().} in;\n; $needed++; } @@ -311,7 +314,7 @@ pidl tabs().mapTypeName($fn-{RETURN_TYPE}) . result;\n; } $tab_depth--; - pidl tabs().} out;\n\n; + pidl tabs().} out;\n; $needed++; } @@ -362,11 +365,6 @@ HeaderUnion($d, $d-{NAME}) if ($d-{TYPE} eq UNION); HeaderEnum($d, $d-{NAME}) if ($d-{TYPE} eq ENUM); HeaderBitmap($d, $d-{NAME}) if ($d-{TYPE} eq BITMAP); - pidl ;\n\n if ($d-{TYPE} eq BITMAP or -$d-{TYPE} eq STRUCT or -$d-{TYPE} eq TYPEDEF or -$d-{TYPE} eq UNION or -$d-{TYPE} eq ENUM); } foreach my $d (@{$interface-{DATA}}) {
Re: svn commit: samba r22640 - in branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4: .
Hi Metze, [EMAIL PROTECTED] wrote: Author: metze Date: 2007-05-02 18:00:02 + (Wed, 02 May 2007) New Revision: 22640 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=22640 Log: - generate nicer output - fix compiler warning about unused ';' metze Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Header.pm Changeset: Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Header.pm === --- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Header.pm 2007-05-02 16:10:23 UTC (rev 22639) +++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/Header.pm 2007-05-02 18:00:02 UTC (rev 22640) @@ -43,7 +43,7 @@ } if ($ret) { - pidl /* [ . substr($ret, 0, -1) . ] */; + pidl /* [ . substr($ret, 0, -1) . ] */; } } @@ -108,10 +108,12 @@ pidl tabs().char _empty_;\n; } $tab_depth--; -pidl tabs().}; + +pidl };; I'm pretty sure this breaks support for nested structures / unions. Cheers, Jelmer
svn commit: samba r22641 - in branches/SAMBA_3_0: . source/lib/tdb
Author: jelmer Date: 2007-05-02 18:10:57 + (Wed, 02 May 2007) New Revision: 22641 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=22641 Log: Install tdbdump and tdbbackup. Modified: branches/SAMBA_3_0/ branches/SAMBA_3_0/source/lib/tdb/Makefile.in branches/SAMBA_3_0/source/lib/tdb/configure.ac Changeset: Property changes on: branches/SAMBA_3_0 ___ Name: bzr:merge ...skipped... Modified: branches/SAMBA_3_0/source/lib/tdb/Makefile.in === --- branches/SAMBA_3_0/source/lib/tdb/Makefile.in 2007-05-02 18:00:02 UTC (rev 22640) +++ branches/SAMBA_3_0/source/lib/tdb/Makefile.in 2007-05-02 18:10:57 UTC (rev 22641) @@ -19,8 +19,8 @@ .PHONY: test -PROGS = bin/tdbtool$(EXEEXT) bin/tdbtorture$(EXEEXT) -PROGS_NOINSTALL = bin/tdbtest$(EXEEXT) bin/tdbdump$(EXEEXT) bin/tdbbackup$(EXEEXT) +PROGS = bin/tdbtool$(EXEEXT) bin/tdbdump$(EXEEXT) bin/tdbbackup$(EXEEXT) +PROGS_NOINSTALL = bin/tdbtest$(EXEEXT) bin/tdbtorture$(EXEEXT) ALL_PROGS = $(PROGS) $(PROGS_NOINSTALL) TDB_OBJ = @TDBOBJ@ @LIBREPLACEOBJ@ Modified: branches/SAMBA_3_0/source/lib/tdb/configure.ac === --- branches/SAMBA_3_0/source/lib/tdb/configure.ac 2007-05-02 18:00:02 UTC (rev 22640) +++ branches/SAMBA_3_0/source/lib/tdb/configure.ac 2007-05-02 18:10:57 UTC (rev 22641) @@ -2,7 +2,7 @@ AC_DEFUN([SMB_MODULE_DEFAULT], [echo -n ]) AC_DEFUN([SMB_LIBRARY_ENABLE], [echo -n ]) AC_DEFUN([SMB_ENABLE], [echo -n ]) -AC_INIT(include/tdb.h) +AC_INIT(tdb, 1.1.0) AC_CONFIG_SRCDIR([common/tdb.c]) AC_CONFIG_HEADER(include/config.h) AC_LIBREPLACE_ALL_CHECKS
Re: svn commit: samba r22638 - in tags: .
Jelmer, The sourceforge project with TDB and the package in Debian both use 1.0.1 as version number. I figured the support for transactions and the other improvements qualified for a new minor release. I'd vote for 2.0 - tdb has really improved a lot since the sourceforge project split off. Cheers, Tridge
Re: svn commit: samba r22638 - in tags: .
On Thu, May 03, 2007 at 04:50:13AM +1000, [EMAIL PROTECTED] wrote: Jelmer, The sourceforge project with TDB and the package in Debian both use 1.0.1 as version number. I figured the support for transactions and the other improvements qualified for a new minor release. I'd vote for 2.0 - tdb has really improved a lot since the sourceforge project split off. +1 for 2.0 With transactions we have an api change (addition) so it is worth a major release number change Simo. -- Simo Sorce [EMAIL PROTECTED] --- Samba Team http://www.samba.org
Rev 236: fixed a memory leak in the ctdb_control code in http://samba.org/~tridge/ctdb
revno: 236 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Thu 2007-05-03 05:51:46 +1000 message: fixed a memory leak in the ctdb_control code modified: common/ctdb_daemon.c ctdb_daemon.c-20070409200331-3el1kqgdb9m4ib0g-1 === modified file 'common/ctdb_daemon.c' --- a/common/ctdb_daemon.c 2007-05-02 01:02:04 + +++ b/common/ctdb_daemon.c 2007-05-02 19:51:46 + @@ -810,7 +810,7 @@ /* construct a message to send to the client containing the data */ len = offsetof(struct ctdb_reply_control, data) + data.dsize; - r = ctdbd_allocate_pkt(ctdb, client, CTDB_REPLY_CONTROL, len, + r = ctdbd_allocate_pkt(ctdb, state, CTDB_REPLY_CONTROL, len, struct ctdb_reply_control); CTDB_NO_MEMORY_VOID(ctdb, r);
Rev 235: enabled built in popt if system doesn't have it in http://samba.org/~tridge/ctdb
revno: 235 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Thu 2007-05-03 05:21:14 +1000 message: enabled built in popt if system doesn't have it modified: Makefile.inmakefile.in-20061117234101-o3qt14umlg9en8z0-1 configure.ac configure.ac-20061117234101-o3qt14umlg9en8z0-10 lib/popt/libpopt.m4libpopt.m4-20070125040942-nz1rv4zkr26q77uw-7 lib/popt/samba.m4 samba.m4-20070125040942-nz1rv4zkr26q77uw-14 === modified file 'Makefile.in' --- a/Makefile.in 2007-05-02 03:25:45 + +++ b/Makefile.in 2007-05-02 19:21:14 + @@ -8,16 +8,20 @@ libdir = @libdir@ bindir = @bindir@ localstatedir = @localstatedir@ -VPATH = @srcdir@:@tdbdir@:@tallocdir@:@libreplacedir@ +VPATH = @srcdir@:@tdbdir@:@tallocdir@:@libreplacedir@:@poptdir@ srcdir = @srcdir@ builddir = @builddir@ [EMAIL PROTECTED]@ +POPT_LIBS = @POPT_LIBS@ +POPT_CFLAGS = @POPT_CFLAGS@ +POPT_OBJ = @POPT_OBJ@ + CFLAGS=-g -I$(srcdir)/include -Iinclude -Ilib -Ilib/util -I$(srcdir) \ [EMAIL PROTECTED]@ [EMAIL PROTECTED]@/include [EMAIL PROTECTED]@ \ - -DVARDIR=\$(localstatedir)\ -DUSE_MMAP=1 @CFLAGS@ + -DVARDIR=\$(localstatedir)\ -DUSE_MMAP=1 @CFLAGS@ $(POPT_CFLAGS) [EMAIL PROTECTED]@ -Llib @LIBS@ -lpopt @INFINIBAND_LIBS@ [EMAIL PROTECTED]@ -Llib @LIBS@ $(POPT_LIBS) @INFINIBAND_LIBS@ EVENTS_OBJ = lib/events/events.o lib/events/events_standard.o \ lib/events/events_signal.o lib/events/events_timed.o @@ -32,7 +36,7 @@ CTDB_TCP_OBJ = tcp/tcp_connect.o tcp/tcp_io.o tcp/tcp_init.o -CTDB_OBJ = $(CTDB_COMMON_OBJ) $(CTDB_TCP_OBJ) +CTDB_OBJ = $(CTDB_COMMON_OBJ) $(CTDB_TCP_OBJ) $(POPT_OBJ) OBJS = @TDB_OBJ@ @TALLOC_OBJ@ @LIBREPLACEOBJ@ @INFINIBAND_WRAPPER_OBJ@ $(EXTRA_OBJ) $(EVENTS_OBJ) $(CTDB_OBJ) $(UTIL_OBJ) === modified file 'configure.ac' --- a/configure.ac 2007-04-10 02:51:54 + +++ b/configure.ac 2007-05-02 19:21:14 + @@ -24,6 +24,7 @@ EXTRA_OBJ= +m4_include(libpopt.m4) m4_include(libtalloc.m4) m4_include(libtdb.m4) m4_include(ib/config.m4) === modified file 'lib/popt/libpopt.m4' --- a/lib/popt/libpopt.m4 2007-01-25 04:10:40 + +++ b/lib/popt/libpopt.m4 2007-05-02 19:21:14 + @@ -37,7 +37,7 @@ if test x$poptdir = x; then AC_MSG_ERROR([cannot find popt source in $poptpaths]) fi - POPTOBJ=popt.o findme.o poptconfig.o popthelp.o poptparse.o - AC_SUBST(POPTOBJ) + POPT_OBJ=popt.o findme.o poptconfig.o popthelp.o poptparse.o + AC_SUBST(POPT_OBJ) AC_CHECK_HEADERS([float.h alloca.h]) fi === modified file 'lib/popt/samba.m4' --- a/lib/popt/samba.m4 2007-01-25 04:10:40 + +++ b/lib/popt/samba.m4 2007-05-02 19:21:14 + @@ -1,6 +1,6 @@ m4_include(lib/popt/libpopt.m4) -if test x$POPTOBJ = x; then +if test x$POPT_OBJ = x; then SMB_EXT_LIB(LIBPOPT, [${POPT_LIBS}]) SMB_ENABLE(LIBPOPT,YES) else
Rev 237: merge from ronnie in http://samba.org/~tridge/ctdb
revno: 237 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Thu 2007-05-03 07:19:29 +1000 message: merge from ronnie added: direct/4nodes.txt 4nodes.txt-20070502024949-2rkyfp289w532z1l-1 tests/recover.sh recover.sh-20070502031230-tpuiet6m6tjdotta-1 modified: common/ctdb.c ctdb.c-20061127094323-t50f58d65iaao5of-2 common/ctdb_client.c ctdb_client.c-20070411010216-3kd8v37k61steeya-1 common/ctdb_control.c ctdb_control.c-20070426122724-j6gkpiofhbwdin63-1 include/ctdb.h ctdb.h-20061117234101-o3qt14umlg9en8z0-11 include/ctdb_private.h ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13 tests/ctdb_fetch.c ctdb_fetch.c-20070405031748-f7gslozfj3rwh5ie-1 tools/ctdb_control.c ctdb_control.c-20070426122705-9ehj1l5lu2gn9kuj-1 revno: 197.1.37 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Wed 2007-05-02 22:00:48 +1000 message: merge from tridge revno: 197.1.36 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Wed 2007-05-02 21:31:20 +1000 message: do a real recovery by killing a node and then calling the recover control revno: 197.1.35 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Wed 2007-05-02 21:14:37 +1000 message: recover.sh test script that build a few database and populates them with a record then performs a recovery which merges all records onto node 0 revno: 197.1.34 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Wed 2007-05-02 21:00:02 +1000 message: add a recover test change alignment for the pull/push db structures revno: 197.1.33 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Wed 2007-05-02 13:31:42 +1000 message: discard REQ/REPLY DMASTER when generation id is wrong or when in recovery mode revno: 197.1.32 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Wed 2007-05-02 13:14:12 +1000 message: remove sleep from the fetch test add a test script to start 4 daemons to test recovery revno: 197.1.31 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Wed 2007-05-02 12:43:35 +1000 message: add a control to create a database revno: 197.1.30 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Wed 2007-05-02 11:09:10 +1000 message: remove test code in the fetch test to keep the daemons running forever (so one has lots of tiume to play with ctdb_control) Diff too large for email (662, the limit is 200).
svn commit: samba r22642 - in branches/SAMBA_4_0/source/lib/ldb: . external include
Author: jelmer Date: 2007-05-02 22:05:48 + (Wed, 02 May 2007) New Revision: 22642 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=22642 Log: Allow standalone build to work without tdb or talloc checked out, but provided by the system. Added: branches/SAMBA_4_0/source/lib/ldb/external/ branches/SAMBA_4_0/source/lib/ldb/external/libpopt.m4 branches/SAMBA_4_0/source/lib/ldb/external/libtalloc.m4 branches/SAMBA_4_0/source/lib/ldb/external/libtdb.m4 branches/SAMBA_4_0/source/lib/ldb/external/pkg.m4 Modified: branches/SAMBA_4_0/source/lib/ldb/autogen.sh branches/SAMBA_4_0/source/lib/ldb/include/includes.h Changeset: Modified: branches/SAMBA_4_0/source/lib/ldb/autogen.sh === --- branches/SAMBA_4_0/source/lib/ldb/autogen.sh2007-05-02 18:10:57 UTC (rev 22641) +++ branches/SAMBA_4_0/source/lib/ldb/autogen.sh2007-05-02 22:05:48 UTC (rev 22642) @@ -7,6 +7,11 @@ IPATHS=$IPATHS -I lib/talloc -I talloc -I ../talloc IPATHS=$IPATHS -I lib/tdb -I tdb -I ../tdb IPATHS=$IPATHS -I lib/popt -I popt -I ../popt + +# Always keep this listed last, so the built-in versions of tdb and talloc +# get used if available. +IPATHS=$IPATHS -I ./external + autoheader $IPATHS || exit 1 autoconf $IPATHS || exit 1 Added: branches/SAMBA_4_0/source/lib/ldb/external/libpopt.m4 === --- branches/SAMBA_4_0/source/lib/ldb/external/libpopt.m4 2007-05-02 18:10:57 UTC (rev 22641) +++ branches/SAMBA_4_0/source/lib/ldb/external/libpopt.m4 2007-05-02 22:05:48 UTC (rev 22642) @@ -0,0 +1,7 @@ +POPT_OBJ= +AC_SUBST(POPT_OBJ) +AC_SUBST(POPT_LIBS) +AC_SUBST(POPT_CFLAGS) + +AC_CHECK_HEADERS(popt.h) +AC_CHECK_LIB(popt, poptGetContext, [ POPT_LIBS=-lpopt ]) Added: branches/SAMBA_4_0/source/lib/ldb/external/libtalloc.m4 === --- branches/SAMBA_4_0/source/lib/ldb/external/libtalloc.m4 2007-05-02 18:10:57 UTC (rev 22641) +++ branches/SAMBA_4_0/source/lib/ldb/external/libtalloc.m4 2007-05-02 22:05:48 UTC (rev 22642) @@ -0,0 +1,4 @@ +m4_include(pkg.m4) +TALLOC_OBJ= +AC_SUBST(TALLOC_OBJ) +PKG_CHECK_MODULES(TALLOC, talloc) Added: branches/SAMBA_4_0/source/lib/ldb/external/libtdb.m4 === --- branches/SAMBA_4_0/source/lib/ldb/external/libtdb.m42007-05-02 18:10:57 UTC (rev 22641) +++ branches/SAMBA_4_0/source/lib/ldb/external/libtdb.m42007-05-02 22:05:48 UTC (rev 22642) @@ -0,0 +1,4 @@ +m4_include(pkg.m4) +TDB_OBJ= +AC_SUBST(TDB_OBJ) +PKG_CHECK_MODULES(TDB, tdb = 1.1.0) Added: branches/SAMBA_4_0/source/lib/ldb/external/pkg.m4 === --- branches/SAMBA_4_0/source/lib/ldb/external/pkg.m4 2007-05-02 18:10:57 UTC (rev 22641) +++ branches/SAMBA_4_0/source/lib/ldb/external/pkg.m4 2007-05-02 22:05:48 UTC (rev 22642) @@ -0,0 +1,157 @@ +# pkg.m4 - Macros to locate and utilise pkg-config.-*- Autoconf -*- +# +# Copyright © 2004 Scott James Remnant [EMAIL PROTECTED]. +# +# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# PKG_PROG_PKG_CONFIG([MIN-VERSION]) +# -- +AC_DEFUN([PKG_PROG_PKG_CONFIG], +[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) +m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) +AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl +if test x$ac_cv_env_PKG_CONFIG_set != xset; then + AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) +fi +if test -n $PKG_CONFIG; then + _pkg_min_version=m4_default([$1], [0.9.0]) + AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) + if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + PKG_CONFIG= + fi + +fi[]dnl +])# PKG_PROG_PKG_CONFIG + +# PKG_CHECK_EXISTS(MODULES,
Rev 238: merge from ronnie in http://samba.org/~tridge/ctdb
revno: 238 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Thu 2007-05-03 07:48:08 +1000 message: merge from ronnie revno: 197.1.39 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Thu 2007-05-03 07:21:29 +1000 message: merge from tridge revno: 197.1.38 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Thu 2007-05-03 05:52:45 +1000 message: merge from tridge
Build status as of Thu May 3 00:00:02 2007
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2007-05-02 00:00:35.0 + +++ /home/build/master/cache/broken_results.txt 2007-05-03 00:01:13.0 + @@ -1,25 +1,25 @@ -Build status as of Wed May 2 00:00:02 2007 +Build status as of Thu May 3 00:00:02 2007 Build counts: Tree Total Broken Panic SOC 0 0 0 build_farm 0 0 0 -ccache 38 7 0 +ccache 37 6 0 ctdb 0 0 0 distcc 4 0 0 -ldb 37 8 0 -libreplace 34 11 0 -lorikeet-heimdal 33 17 0 -pidl 21 6 0 -ppp 16 0 0 +ldb 36 10 0 +libreplace 33 11 0 +lorikeet-heimdal 31 16 0 +pidl 20 16 0 +ppp 15 0 0 python 0 0 0 -rsync38 19 0 +rsync37 19 0 samba0 0 0 samba-docs 0 0 0 -samba-gtk5 5 0 -samba4 40 29 4 -samba_3_043 43 1 -smb-build34 33 0 -talloc 38 2 0 -tdb 37 3 0 +samba-gtk4 4 0 +samba4 39 34 4 +samba_3_042 42 1 +smb-build33 32 0 +talloc 37 2 0 +tdb 36 3 0
Rev 239: merged cleanup from ronnie in http://samba.org/~tridge/ctdb
revno: 239 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Thu 2007-05-03 11:13:01 +1000 message: merged cleanup from ronnie added: common/ctdb_recover.c ctdb_recover.c-20070503002147-admmfgt1oj6gexfo-1 modified: Makefile.inmakefile.in-20061117234101-o3qt14umlg9en8z0-1 common/cmdline.c cmdline.c-20070416041216-w1zvz91bkdsgjckw-1 common/ctdb_client.c ctdb_client.c-20070411010216-3kd8v37k61steeya-1 common/ctdb_control.c ctdb_control.c-20070426122724-j6gkpiofhbwdin63-1 include/ctdb.h ctdb.h-20061117234101-o3qt14umlg9en8z0-11 include/ctdb_private.h ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13 tools/ctdb_control.c ctdb_control.c-20070426122705-9ehj1l5lu2gn9kuj-1 revno: 197.1.40 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Thu 2007-05-03 11:06:24 +1000 message: break set/get vnn map out from ctdb_control and put it in ctdb_recover.c for the time being remove all the [de]marshalling and just pass a structure around instead Diff too large for email (393, the limit is 200).
Rev 240: first stage of efficient non-blocking ctdb traverse in http://samba.org/~tridge/ctdb
revno: 240 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Thu 2007-05-03 12:16:03 +1000 message: first stage of efficient non-blocking ctdb traverse added: common/ctdb_traverse.c ctdb_traverse.c-20070503021550-ztfs5rwx8jfm8qqx-1 modified: Makefile.inmakefile.in-20061117234101-o3qt14umlg9en8z0-1 common/ctdb_io.c ctdb_io.c-20070409200335-dzfc7f3rra5rcf60-1 include/ctdb_private.h ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13 tools/ctdb_control.c ctdb_control.c-20070426122705-9ehj1l5lu2gn9kuj-1 Diff too large for email (242, the limit is 200).
Rev 241: don't zero beyond packet header unnecessarily in http://samba.org/~tridge/ctdb
revno: 241 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Thu 2007-05-03 13:44:27 +1000 message: don't zero beyond packet header unnecessarily modified: common/ctdb_daemon.c ctdb_daemon.c-20070409200331-3el1kqgdb9m4ib0g-1 === modified file 'common/ctdb_daemon.c' --- a/common/ctdb_daemon.c 2007-05-02 19:51:46 + +++ b/common/ctdb_daemon.c 2007-05-03 03:44:27 + @@ -727,7 +727,9 @@ { int size; struct ctdb_req_header *hdr; - size = ((length+1)+(CTDB_DS_ALIGNMENT-1)) ~(CTDB_DS_ALIGNMENT-1); + + length = MAX(length, slength); + size = (length+(CTDB_DS_ALIGNMENT-1)) ~(CTDB_DS_ALIGNMENT-1); hdr = (struct ctdb_req_header *)talloc_size(mem_ctx, size); if (hdr == NULL) { @@ -736,9 +738,9 @@ return NULL; } talloc_set_name_const(hdr, type); - memset(hdr, 0, size); + memset(hdr, 0, slength); + hdr-length = length; hdr-operation= operation; - hdr-length = size; hdr-ctdb_magic = CTDB_MAGIC; hdr-ctdb_version = CTDB_VERSION; hdr-srcnode = ctdb-vnn; @@ -761,7 +763,10 @@ { int size; struct ctdb_req_header *hdr; - size = ((length+1)+(CTDB_DS_ALIGNMENT-1)) ~(CTDB_DS_ALIGNMENT-1); + + length = MAX(length, slength); + size = (length+(CTDB_DS_ALIGNMENT-1)) ~(CTDB_DS_ALIGNMENT-1); + hdr = (struct ctdb_req_header *)ctdb-methods-allocate_pkt(mem_ctx, size); if (hdr == NULL) { DEBUG(0,(Unable to allocate transport packet for operation %u of length %u\n, @@ -769,9 +774,9 @@ return NULL; } talloc_set_name_const(hdr, type); - memset(hdr, 0, size); + memset(hdr, 0, slength); + hdr-length = length; hdr-operation= operation; - hdr-length = size; hdr-ctdb_magic = CTDB_MAGIC; hdr-ctdb_version = CTDB_VERSION; hdr-generation = ctdb-vnn_map-generation;
Rev 242: merged from ronnie in http://samba.org/~tridge/ctdb
revno: 242 revision-id: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Andrew Tridgell [EMAIL PROTECTED] branch nick: tridge timestamp: Thu 2007-05-03 13:53:54 +1000 message: merged from ronnie modified: common/ctdb_client.c ctdb_client.c-20070411010216-3kd8v37k61steeya-1 common/ctdb_control.c ctdb_control.c-20070426122724-j6gkpiofhbwdin63-1 common/ctdb_recover.c ctdb_recover.c-20070503002147-admmfgt1oj6gexfo-1 include/ctdb.h ctdb.h-20061117234101-o3qt14umlg9en8z0-11 include/ctdb_private.h ctdb_private.h-20061117234101-o3qt14umlg9en8z0-13 tools/ctdb_control.c ctdb_control.c-20070426122705-9ehj1l5lu2gn9kuj-1 revno: 197.1.42 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Thu 2007-05-03 13:30:38 +1000 message: cleanup getnodemap revno: 197.1.41 merged: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] parent: [EMAIL PROTECTED] committer: Ronnie Sahlberg [EMAIL PROTECTED] branch nick: ctdb timestamp: Thu 2007-05-03 13:07:34 +1000 message: fixup getdbmap control so it looks a bit nicer Diff too large for email (546, the limit is 200).