[Samba] Semaphore Error
Hi all I have a samba PDC (3.0.21c with ldap backend). and another linux server used as file server(samba 3.0.21c). . the users access the file shares using logon script which redirects to respective shares in file server. but when the logon script runs it gives the followin error System error 121 has occurred. The semaphore timeout period has expired. Any ideas? Regards Niranjan -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Semaphore Error
On Wed, Apr 12, 2006 at 01:01:15PM +0530, mallapadi niranjan wrote: I have a samba PDC (3.0.21c with ldap backend). and another linux server used as file server(samba 3.0.21c). . the users access the file shares using logon script which redirects to respective shares in file server. but when the logon script runs it gives the followin error System error 121 has occurred. The semaphore timeout period has expired. We need a debug level 10 log of smbd while this error is displayed. Maybe you want to file a bug at https://bugzilla.samba.org, you can easily upload bigger logfiles there. (please gzip -9 them before :-)) Volker pgpZRlpbrlxTD.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Printing to Samba printer causes application to abort
Thank you. It made some progress...I added the default devmode = yes to the [okib4250b] section in my smb.conf, bounced Samba, deleted the printer from the workstation and reinstalled it. The applications don't abort now. However the apps now give me an unable to start print job error. - Original Message - From: Martin Zielinski [EMAIL PROTECTED] To: Kirk B. Dice [EMAIL PROTECTED] Cc: samba@lists.samba.org Sent: Wednesday, April 12, 2006 2:02 AM Subject: Re: [Samba] Printing to Samba printer causes application to abort Hi! Sounds like the NULL - devicemode problem. Please set the default devmode parameter to yes. man smb.conf gives you more information about that. Bye, Martin Kirk B. Dice wrote: I am using Slackware 10.2 (kernel 2.4.29) and Samba 3.0.21c for my print server. The client workstations are WinNT4. I have two printers on the linux server..an HP DeskJet 600 and an Okidata B4250. I can install and print to the HP from any of the workstations. I can install the Okidata just fine, but when I try to print from Word, Excell, or any application Dr. Watson comes to visit. I get an error 'Exception: access violation (0xc005),Address: 0x68603667' and the application shuts down. I can print directly to the printers on the linux box w/o any problems. The file permissions are both the same for the lpd print spools and the rpcclient shows the drivers to be added correctly and set to each printer. Any help would be greatly appreciated. Kirk Here is my smb.conf: [global] workgroup = toontown security = share hosts allow = 192.168.26. 127. printcap name = /etc/printcap lpq cache time = 20 printing = lprng max log size = 1024 passdb expand explicit = no socket options = TCP_NODELAY dns proxy = no [printers] comment = All Printers path = /tmp print ok = yes guest ok = yes printable = yes public = yes print command = /usr/bin/lpr -R%m -P %p -r %s lpq command = /usr/bin/lpq -P %p lprm command = /usr/bin/lprm -P %p %j lppause command = /usr/sbin/lpc hold %p %j lpresume command = /usr/sbin/lpc relase %p %j queuepause command = /usr/sbin/lpc stop %p queueresume command = /usr/sbin/lpc start %p # printers [hpdj600] comment = HP DeskJet 600 path = /tmp printable = yes [okib4250b] comment = Oki B4250 (back) path = /tmp printable = yes [print$] comment = Printer Driver Download Area path = /etc/samba/drivers readonly = yes browseable = yes guest ok = yes write list = root [public] comment = Public path = /home/public public = yes writable = yes printable = no -- Martin Zielinski [EMAIL PROTECTED] Software Development SEH Computertechnik GmbH www.seh.de -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Printing to Samba printer causes application to abort
Hi! Sorry, I can't reproduce it. It's a typical no devmode problem. But... to create a _valid_ devicemode on your samba server perform the following steps: - open your printer - choose advanced and then printing defaults - toggle a setting and click Apply. This should force the driver to submit a self-created devmode to your samba server and replace the default one. Now your applications should (hope so ;-) receive all valid information for printing. Hope that helps! ~ Martin P.S. I don't know what bounced Samba means but I think you need to restart samba. Kirk B. Dice wrote: Thank you. It made some progress...I added the default devmode = yes to the [okib4250b] section in my smb.conf, bounced Samba, deleted the printer from the workstation and reinstalled it. The applications don't abort now. However the apps now give me an unable to start print job error. - Original Message - From: Martin Zielinski [EMAIL PROTECTED] To: Kirk B. Dice [EMAIL PROTECTED] Cc: samba@lists.samba.org Sent: Wednesday, April 12, 2006 2:02 AM Subject: Re: [Samba] Printing to Samba printer causes application to abort Hi! Sounds like the NULL - devicemode problem. Please set the default devmode parameter to yes. man smb.conf gives you more information about that. Bye, Martin Kirk B. Dice wrote: I am using Slackware 10.2 (kernel 2.4.29) and Samba 3.0.21c for my print server. The client workstations are WinNT4. I have two printers on the linux server..an HP DeskJet 600 and an Okidata B4250. I can install and print to the HP from any of the workstations. I can install the Okidata just fine, but when I try to print from Word, Excell, or any application Dr. Watson comes to visit. I get an error 'Exception: access violation (0xc005),Address: 0x68603667' and the application shuts down. I can print directly to the printers on the linux box w/o any problems. The file permissions are both the same for the lpd print spools and the rpcclient shows the drivers to be added correctly and set to each printer. Any help would be greatly appreciated. Kirk Here is my smb.conf: [global] workgroup = toontown security = share hosts allow = 192.168.26. 127. printcap name = /etc/printcap lpq cache time = 20 printing = lprng max log size = 1024 passdb expand explicit = no socket options = TCP_NODELAY dns proxy = no [printers] comment = All Printers path = /tmp print ok = yes guest ok = yes printable = yes public = yes print command = /usr/bin/lpr -R%m -P %p -r %s lpq command = /usr/bin/lpq -P %p lprm command = /usr/bin/lprm -P %p %j lppause command = /usr/sbin/lpc hold %p %j lpresume command = /usr/sbin/lpc relase %p %j queuepause command = /usr/sbin/lpc stop %p queueresume command = /usr/sbin/lpc start %p # printers [hpdj600] comment = HP DeskJet 600 path = /tmp printable = yes [okib4250b] comment = Oki B4250 (back) path = /tmp printable = yes [print$] comment = Printer Driver Download Area path = /etc/samba/drivers readonly = yes browseable = yes guest ok = yes write list = root [public] comment = Public path = /home/public public = yes writable = yes printable = no -- Martin Zielinski [EMAIL PROTECTED] Software Development SEH Computertechnik GmbH www.seh.de -- Martin Zielinski [EMAIL PROTECTED] Software Development SEH Computertechnik GmbH www.seh.de -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Re: File Permissions
Hi, The main problem was when trying to manage different permissions at different levels, it became really messy. I just lost too much time managing almost every directory one by one. So now I've managed to take a different approach. To every directory there's only two types of access. One group with rwx and another with rx. This permissions are set via ACL at first level. On the following levels every file has 775 permissions. Very easy to maintain... But the fact that it works for, doesn't mean it will work for you. Best Regards, Bruno guerreiro -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Blaž Primc Sent: terça-feira, 11 de Abril de 2006 23:32 To: samba@lists.samba.org Subject: [Samba] Re: File Permissions What wrong? How much is many for you? Best regards, Blaz Primc. Bruno Guerreiro wrote: Hi, You must use ACL's. Your Kernel+FileSystem must suport it and samba must have been compiled with acl support. But just one personnal remark, the path you're trying to walk (many different permissions at different directory levels) is a dangerous one. Trust me. I've been there, done that, and fortunely fled away from it. Best Regards, Bruno Guerreiro -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dracula Sent: terça-feira, 11 de Abril de 2006 13:21 To: Samba Subject: [Samba] File Permissions Hello I trying to grasp the file permissions on Linux. I have Samba installed and functioning properly... I think I understand perimission in this environment with one exception: I need to add more than one group to a file/folder. With Windows..the security tab would allow any number of Groups and each group could have different permissions. (As well with files and subdirectories). With Linux Im not seeing this ability to add multiple groups to a file/folder. Is this a limitation to the Linux environment? We have several situations where we allow a user to List Content but down into the folder structure allow the user to Read some folders and others Read/Write. Thanks Regards, Komal -- 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 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: File Permissions
Hi Bruno, we're using the same principele :) and at the moment everything seems to be in order. Two groups in AD for every top directory: directory_RX and directory_RWX Best regards, Blaž. Bruno Guerreiro wrote: Hi, The main problem was when trying to manage different permissions at different levels, it became really messy. I just lost too much time managing almost every directory one by one. So now I've managed to take a different approach. To every directory there's only two types of access. One group with rwx and another with rx. This permissions are set via ACL at first level. On the following levels every file has 775 permissions. Very easy to maintain... But the fact that it works for, doesn't mean it will work for you. Best Regards, Bruno guerreiro -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Blaž Primc Sent: terça-feira, 11 de Abril de 2006 23:32 To: samba@lists.samba.org Subject: [Samba] Re: File Permissions What wrong? How much is many for you? Best regards, Blaz Primc. Bruno Guerreiro wrote: Hi, You must use ACL's. Your Kernel+FileSystem must suport it and samba must have been compiled with acl support. But just one personnal remark, the path you're trying to walk (many different permissions at different directory levels) is a dangerous one. Trust me. I've been there, done that, and fortunely fled away from it. Best Regards, Bruno Guerreiro -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dracula Sent: terça-feira, 11 de Abril de 2006 13:21 To: Samba Subject: [Samba] File Permissions Hello I trying to grasp the file permissions on Linux. I have Samba installed and functioning properly... I think I understand perimission in this environment with one exception: I need to add more than one group to a file/folder. With Windows..the security tab would allow any number of Groups and each group could have different permissions. (As well with files and subdirectories). With Linux Im not seeing this ability to add multiple groups to a file/folder. Is this a limitation to the Linux environment? We have several situations where we allow a user to List Content but down into the folder structure allow the user to Read some folders and others Read/Write. Thanks Regards, Komal -- 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 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba 4.0 compilation problem
On Mon, 2006-04-10 at 08:53 -0700, jasmine mary wrote: I am compiling the Samba4.0 which provides built in AD support. I compiled it successfully by using the command configure.When i was issuing the make proto all, i am getting the following error. # make proto all Compiling heimdal/lib/asn1/main.c with host compiler In file included from heimdal_build/roken.h:7, from heimdal/lib/asn1/gen_locl.h:51, from heimdal/lib/asn1/main.c:34: heimdal/lib/roken/roken.h:556: conflicting types for `gai_strerror' /usr/include/netdb.h:307: previous declaration of `gai_strerror' *** Error code 1 make: Fatal error: Command failed for target `heimdal/lib/asn1/main.ho' Can you please attach the generated config.log file? # echo $PATH /usr/local/bin/:/usr/local/doc/:/usr/ccs/bin/:/usr/share/lib/:/usr/sbin:/usr/bin Path is set to gcc and make commands. GCC version is 2.95.2. Solaris version is 8. I'm not sure whether GCC 2.95 will be able to compile Samba 4 because of missing features. Cheers, Jelmer -- Jelmer Vernooij [EMAIL PROTECTED] http://samba.org/~jelmer/ signature.asc Description: This is a digitally signed message part -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba and Infrant
I'm using a ReadyNAS NV and exporting my home directory via NFS which is being mounted by a Sun (which also runs Samba). Currently my home directory on the Sun re-exports the directory via Samba [homes] share. The Sun (Samba) is running as a domain controller for the domain. I tried to get the Infrant to join the domain, it created the machine account etc, but failed to actually join (unfortunately the actual error is hidden within the Infrant internally - not exposed via the web interface). I can use the Infrant as a machine in the same workgroup and that seems to allow me to mount CIFS shares etc. Can I utilise the [homes] section, but point to the Infrant server for my Windows boxen to pick up the ReadyNAS by CIFS directly? The Sun is running Solaris 9 with the Sun packaged Samba (2.2.12), the Infrant seems to be Samba 3.0.21b. Steve -- home steve at gbnet.org NetTek Ltdtel/fax +44-(0)207 483 2455 Email to SMS steve - epage (at) gbnet dot net -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] 3.0.22 [Printing, CUPS] share names mixed up due description field?
Best Samba-list, This message is about a reproducable problem regarding Samba printing using cups. Expected results: Print shares should match the CUPS defined configuration. Results : 1st Print shares get mixed up: the sharename becomes the Comment 2nd Print shares are missing We pin-pointed one possible source of the problem down to the Description field of lpadmin. (it seems related to the length of the description not the contents of the field) How we add printers: # lpadmin -p $printername -E -v socket://$printername -m raw -D $description -L $location ) So far we found one workaround by using the same description for all 64 printers. Best regards, Leroy and Paul @ WL - The Netherlands --- System details: OS - RedHat Enterprise 4U2 32-bit running on Intel Samba 3.0.22 compiled from source with cups support Vendor supplied CUPS ( cups-1.1.22-0.rc1.9.8 ) Example one mixing the shares up: hk0oce1|Printer abc:rm=lphost2.wldelft.nl:rp=hk0oce1: hk1cls1|Another label:rm=lphost2.wldelft.nl:rp=hk1cls1: hk1oce1|Something 123:rm=lphost2.wldelft.nl:rp=hk1oce1: hk2oce2|Hmm:rm=lphost2.wldelft.nl:rp=hk2oce2: hk3las1|Just another printer:rm=lphost2.wldelft.nl:rp=hk3las1: hk3occ1|OCE-3145:rm=lphost2.wldelft.nl:rp=hk3occ1: hk3oce1|OCE_OPE180:rm=lphost2.wldelft.nl:rp=hk3oce1: hk4las1|Whatever:rm=lphost2.wldelft.nl:rp=hk4las1: etc etc. till 64 printers... Example two Now it works hk0oce1|Printer at:rm=lphost2.wldelft.nl:rp=hk0oce1: hk1cls1|Printer at WL:rm=lphost2.wldelft.nl:rp=hk1cls1: hk1oce1|Printer at WL:rm=lphost2.wldelft.nl:rp=hk1oce1: hk2oce2|Printer at WL:rm=lphost2.wldelft.nl:rp=hk2oce2: hk3las1|Printer at WL:rm=lphost2.wldelft.nl:rp=hk3las1: hk3occ1|Printer at WL:rm=lphost2.wldelft.nl:rp=hk3occ1: hk3oce1|Printer at WL:rm=lphost2.wldelft.nl:rp=hk3oce1: hk4las1|Printer at WL:rm=lphost2.wldelft.nl:rp=hk4las1: etc etc. till 64 printers... Partial smb.conf: [printers] comment = All Printers path= /drbd/lphost/spool browseable = yes guest ok= yes writable= no printable = yes -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] smbspool and printing
Hi Folks, Just looking for a little direction here. 1) windows ADS server with printers. 2) linux workstations which use smb to authenticate users to win ADS server, and auto mounts there home directories through smb. Question: Printing from linux workstation? I know I can use smbspool to print, but this requires user password. Can I automate this so there is no need for password? Because the users have authenticated to windows server and thay have access to there files through smb mount. So can I do something like this. Currently when a user logs in I have this: #df smb://win3kADSserver/home/user /homes Now can I add something like this: smb://win3kADSserver/printers /somewhere Now point cups at this /somewhere/laser-jet...? Or do something else with smbspool? Just a note, the win3k server is running a lexmark accounting package, therefore I need the users to print as their user name, and not as guest for example. As well to note I have seen where user name and password get embedded into printers.conf/printcap file using smb to print, but I cannot have this. I have a multi user system, and I do not want to restart lpd/cups everytime a user logs in. Plus I don't like the fact that there is a passwd in a clear text file, although only readable by root or sys group, this is not a solution to me. Any thoughts, thanks jerry -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Printing to Samba printer causes application to abort
When I choose the advanced tab I can't toggle anything (they are greyed out). Do I need to change some permissions? - Original Message - From: Martin Zielinski [EMAIL PROTECTED] To: Kirk B. Dice [EMAIL PROTECTED] Cc: samba@lists.samba.org Sent: Wednesday, April 12, 2006 8:52 AM Subject: Re: [Samba] Printing to Samba printer causes application to abort Hi! Sorry, I can't reproduce it. It's a typical no devmode problem. But... to create a _valid_ devicemode on your samba server perform the following steps: - open your printer - choose advanced and then printing defaults - toggle a setting and click Apply. This should force the driver to submit a self-created devmode to your samba server and replace the default one. Now your applications should (hope so ;-) receive all valid information for printing. Hope that helps! ~ Martin P.S. I don't know what bounced Samba means but I think you need to restart samba. Kirk B. Dice wrote: Thank you. It made some progress...I added the default devmode = yes to the [okib4250b] section in my smb.conf, bounced Samba, deleted the printer from the workstation and reinstalled it. The applications don't abort now. However the apps now give me an unable to start print job error. - Original Message - From: Martin Zielinski [EMAIL PROTECTED] To: Kirk B. Dice [EMAIL PROTECTED] Cc: samba@lists.samba.org Sent: Wednesday, April 12, 2006 2:02 AM Subject: Re: [Samba] Printing to Samba printer causes application to abort Hi! Sounds like the NULL - devicemode problem. Please set the default devmode parameter to yes. man smb.conf gives you more information about that. Bye, Martin Kirk B. Dice wrote: I am using Slackware 10.2 (kernel 2.4.29) and Samba 3.0.21c for my print server. The client workstations are WinNT4. I have two printers on the linux server..an HP DeskJet 600 and an Okidata B4250. I can install and print to the HP from any of the workstations. I can install the Okidata just fine, but when I try to print from Word, Excell, or any application Dr. Watson comes to visit. I get an error 'Exception: access violation (0xc005),Address: 0x68603667' and the application shuts down. I can print directly to the printers on the linux box w/o any problems. The file permissions are both the same for the lpd print spools and the rpcclient shows the drivers to be added correctly and set to each printer. Any help would be greatly appreciated. Kirk Here is my smb.conf: [global] workgroup = toontown security = share hosts allow = 192.168.26. 127. printcap name = /etc/printcap lpq cache time = 20 printing = lprng max log size = 1024 passdb expand explicit = no socket options = TCP_NODELAY dns proxy = no [printers] comment = All Printers path = /tmp print ok = yes guest ok = yes printable = yes public = yes print command = /usr/bin/lpr -R%m -P %p -r %s lpq command = /usr/bin/lpq -P %p lprm command = /usr/bin/lprm -P %p %j lppause command = /usr/sbin/lpc hold %p %j lpresume command = /usr/sbin/lpc relase %p %j queuepause command = /usr/sbin/lpc stop %p queueresume command = /usr/sbin/lpc start %p # printers [hpdj600] comment = HP DeskJet 600 path = /tmp printable = yes [okib4250b] comment = Oki B4250 (back) path = /tmp printable = yes [print$] comment = Printer Driver Download Area path = /etc/samba/drivers readonly = yes browseable = yes guest ok = yes write list = root [public] comment = Public path = /home/public public = yes writable = yes printable = no -- Martin Zielinski [EMAIL PROTECTED] Software Development SEH Computertechnik GmbH www.seh.de -- Martin Zielinski [EMAIL PROTECTED] Software Development SEH Computertechnik GmbH www.seh.de -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] 3.0.21c winbind crash
I'm using Samba 3.0.21c on SuSE 9.3 Pro (x86) with the binary RPMs from samba.org/suse.com (3.0.21c-2.1.2) on a Domain Member Server in ADS mode with winbind against W2K3 SP1 AD servers and idmap uids/gids stored in a central OpenLDAP directory. After running successfully for some time, it now refuses to start after a reboot. The domain-specific winbindd instances are even crashing. :-( Do the logs below ring a bell with anyone? - --- smb.conf --- [global] realm = YYY.DE workgroup = XXX security = ADS wins server = 172.16.1.10, 172.16.1.9 interfaces = 172.16.1.14 bind interfaces only = Yes ldap admin dn = cn=root,dc=yyy,dc=de ldap idmap suffix = ou=Idmap ldap suffix = dc=yyy,dc=de idmap backend = ldap:ldap://openldap idmap uid = 10500-2 idmap gid = 10500-2 winbind use default domain = Yes log level = 1 winbind:10 - --- log.wb-XXX --- 2006/04/12 18:21:05, 10] nsswitch/winbindd_dual.c:account_lockout_policy_handler(509) account_lockout_policy_handler called [2006/04/12 18:21:05, 8] nsswitch/winbindd_cm.c:connection_ok(865) Connection to for domain XXX has NULL cli! [2006/04/12 18:21:05, 5] nsswitch/winbindd_cm.c:receive_getdc_response(524) Received packet for \MAILSLOT\NET\GETDCA7810AC [2006/04/12 18:21:05, 10] nsswitch/winbindd_cm.c:receive_getdc_response(568) GetDC gave name ADSERVER1 for domain XXX [2006/04/12 18:21:05, 3] nsswitch/winbindd_cm.c:cm_get_ipc_userpass(94) cm_get_ipc_userpass: No auth-user defined [2006/04/12 18:21:05, 5] nsswitch/winbindd_cm.c:cm_prepare_connection(272) connecting to ADSERVER1 from MYSERVER with kerberos principal [EMAIL PROTECTED] [2006/04/12 18:21:05, 10] nsswitch/winbindd_cache.c:set_global_winbindd_state_online(2297) set_global_winbindd_state_online: online requested. [2006/04/12 18:21:05, 10] nsswitch/winbindd_cache.c:set_global_winbindd_state_online(2300) set_global_winbindd_state_online: rejecting. [2006/04/12 18:21:05, 5] nsswitch/winbindd_cache.c:get_cache(123) get_cache: Setting ADS methods for domain XXX [2006/04/12 18:21:05, 0] lib/fault.c:fault_report(36) === [2006/04/12 18:21:05, 0] lib/fault.c:fault_report(37) INTERNAL ERROR: Signal 11 in pid 10426 (3.0.21c-2.1.2-SUSE-SL9.3) Please read the Trouble-Shooting section of the Samba3-HOWTO [2006/04/12 18:21:05, 0] lib/fault.c:fault_report(39) From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf [2006/04/12 18:21:05, 0] lib/fault.c:fault_report(40) === [2006/04/12 18:21:05, 0] lib/util.c:smb_panic2(1554) PANIC: internal error [2006/04/12 18:21:05, 0] lib/util.c:smb_panic2(1562) BACKTRACE: 4 stack frames: #0 /usr/sbin/winbindd(smb_panic2+0x120) [0x80fb100] #1 /usr/sbin/winbindd(smb_panic+0x26) [0x80fb2d6] #2 /usr/sbin/winbindd [0x80e4f1b] #3 [0xe420] I'll try upgrading to 3.0.22 anytime soon, but I doubt that'll make a difference here. -TL -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] 3.0.21c winbind crash
Thomas Limoncelli wrote: After running successfully for some time, it now refuses to start after a reboot. The domain-specific winbindd instances are even crashing. :-( Do the logs below ring a bell with anyone? myself :-) cp /dev/null /var/lib/samba/winbindd_cache.tdb fixed it for the moment. Shall I finally file a bugzilla entry for this? 3.0.21c still seems to corrupt this file on a daily basis and fall over it on next startup. IIRC I've already sent a sample file privately to Jerry. Anything else I can do? -TL -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] 3.0.21c winbind crash
On Wed, Apr 12, 2006 at 07:02:22PM +0200, Thomas Limoncelli wrote: Thomas Limoncelli wrote: After running successfully for some time, it now refuses to start after a reboot. The domain-specific winbindd instances are even crashing. :-( Do the logs below ring a bell with anyone? myself :-) cp /dev/null /var/lib/samba/winbindd_cache.tdb fixed it for the moment. Shall I finally file a bugzilla entry for this? Yes, please. 3.0.21c still seems to corrupt this file on a daily basis and fall over it on next startup. IIRC I've already sent a sample file privately to Jerry. Anything else I can do? As you're seeing this on SuSE 9.3, can you follow the debug recommendations on http://en.opensuse.org/Samba and then generate a gdb backtrace, that will help us a lot. Also please upload your corrupted tdb file, if possible. For all debugging please use the latest rpm packages available for your SuSE version. Guenther -- Günther DeschnerGPG-ID: 8EE11688 Novell / SUSE LINUX [EMAIL PROTECTED] Samba Team [EMAIL PROTECTED] pgpAYRMdUaBpA.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] 3.0.21c winbind crash
On Wed, Apr 12, 2006 at 07:22:12PM +0200, Guenther Deschner wrote: On Wed, Apr 12, 2006 at 07:02:22PM +0200, Thomas Limoncelli wrote: Thomas Limoncelli wrote: After running successfully for some time, it now refuses to start after a reboot. The domain-specific winbindd instances are even crashing. :-( Do the logs below ring a bell with anyone? myself :-) cp /dev/null /var/lib/samba/winbindd_cache.tdb fixed it for the moment. Shall I finally file a bugzilla entry for this? Yes, please. 3.0.21c still seems to corrupt this file on a daily basis and fall over it on next startup. IIRC I've already sent a sample file privately to Jerry. Anything else I can do? As you're seeing this on SuSE 9.3, can you follow the debug recommendations on http://en.opensuse.org/Samba and then generate a gdb backtrace, that will help us a lot. Also please upload your corrupted tdb file, if possible. For all debugging please use the latest rpm packages available for your SuSE version. What filesystem type is the corrupted tdb stored on ? Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] 3.0.21c winbind crash
Jeremy Allison wrote: What filesystem type is the corrupted tdb stored on ? xfs, kernel 2.6.11.4-21.11-smp. -TL -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] LDAP Account Manager 1.0.1 released
LDAP Account Manager (LAM) 1.0.1 - April 12th, 2006 === A web frontend for managing accounts stored in an LDAP directory. Announcement: - This release fixes several bugs of the 1.0.0 release and adds some basic security checks. Features: - * management of Unix user and group accounts (posixAccount/posixGroup) * management of Samba 2.x/3 user and host accounts (sambaAccount/sambaSamAccount) * management of Kolab 2 accounts (kolabInetorgPerson) * profiles for account creation * account creation via file upload * automatic creation/deletion of home directories * setting quotas * PDF output for all accounts * editor for organizational units (OU) * schema browser * tree view * multiple configuration files * multi-language support (Catalan, Chinese, Dutch, English, French, German, Hungarian, Italian, Japanese, Spanish) * support for LDAP+SSL Availability: - This software is available under the GNU General Public License V2.0. You can get the newest version at http://lam.sf.net. It may take some time until you can download the files from all mirrors. File formats: DEB, RPM, tar.gz There is also a FreeBSD port. Debian users may also use the packages in Debian unstable. Demo installation: -- You can try our demo installation online. http://lam.sf.net/live-demo/index.htm Support: If you find a bug please file a bug report. For questions or implementing new features please use the mailinglist and feature request tracker at our Sourceforge homepage http://www.sf.net/projects/lam. Authors Copyright: Copyright (C) 2003 - 2006: Michael Duergner [EMAIL PROTECTED] Roland Gruber [EMAIL PROTECTED] Tilo Lutz [EMAIL PROTECTED] LAM is published under the GNU General Public License. The comlete list of licenses can be found in the copyright file. signature.asc Description: OpenPGP digital signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] OpenLDAP and Active Directory synchronize
Hello I have OpenLdap Server.I also have Windows Active Directory server.I want to know if you have something to synchronize the users information between Active Directory and the Linux Ldap server ? Thanks Regards, Komal -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Bad password when attempting login to SSH with AD account
Everyone, I have several servers set up, all running the same levels of samba and winbind. I am able to see the domain and authenticate users without any trouble. I am attempting to get integrated logins to work with SSH. I have it working on one server, but two others (with the exact same config) do not work. On the box the works, I get the following message in /var/log/messages when I log in with my domain account. Apr 12 15:28:21 ustr-MINT-A-5 sshd[8643]: Accepted keyboard-interactive/pam for root from 192.63.xxx.xxx port 4102 ssh2 Apr 12 15:28:49 ustr-MINT-A-5 pam_winbind[8668]: user 'NA\trimblrd' granted access Apr 12 15:28:49 ustr-MINT-A-5 pam_winbind[8668]: user 'NA\trimblrd' granted access Apr 12 15:28:49 ustr-MINT-A-5 sshd[8666]: Accepted keyboard-interactive/pam for NA\\trimblrd from 192.63.xxx.xxx port 4104 ssh2 Using the same ID, I get the following messages on the two servers that don't work. Apr 12 15:26:27 ustr-MINT-A-2 sshd[9329]: Invalid user NA\\trimblrd from 192.63.xxx.xxx Apr 12 15:26:29 ustr-MINT-A-2 pam_winbind[9331]: request failed: Wrong Password, PAM error was 7, NT error was NT_STATUS_WRONG_PASSWORD Apr 12 15:26:29 ustr-MINT-A-2 pam_winbind[9331]: user `NA\trimblrd' denied access (incorrect password) Apr 12 15:26:29 ustr-MINT-A-2 sshd[9329]: error: PAM: User not known to the underlying authentication module for illegal user NA\\trimblrd from ustr-trimblrd.na.uis.unisys.com Apr 12 15:26:29 ustr-MINT-A-2 sshd[9329]: Failed keyboard-interactive/pam for invalid user NA\\trimblrd from 192.63.xxx.xxx port 4096 ssh2 Of course you first thought will be that I am entering the wrong password, but I have ruled that out by repeating this process dozens of times with multiple accounts. The strange thing is that AD thinks I really am sending an incorrect password as an my account shows an invalid password attempt in AD. Has anyone seen this problem? Do you know what I may be missing? Thanks in advance, Ron -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Add local windows user
Hi list, Is it possible to create a new user on a win box that is not disabled and doesn't have Password must be changed flag? If yes, please enclose detailed info on how because I've been looking at the NET command and has not yet been successful. Cheers, Henrik -- 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 + LDAP - Error Joining Windows XP To Samba Domain
Richard Ferrara wrote: I am having issues attempting to join a windows xp machine to the domain. If I use the correct root/administrator credentials it gives me an error user name cannot be found. I think that means that samba wasn't able to create the entry with posixAccount objectclass in your directory. Try running your add machine script from the command line, with the appropriate args, and see what it does. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] samba and sun one ldap
[EMAIL PROTECTED] wrote: I don't see any debug flags for net command similar to what smbpasswd provides, so any help and further advise on Sun LDAP/Samba would be appreciated. Thank you. Make sure that your directory server is logging errors and access, and tail those logs while you try your net commands. The logs should clarify the situation. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Problem mapping from windows x64 version
I got a problem mapping a network drive from a samba sharing server wich authenticates on a PDC samba server. Windows says network path was not found but the bdc's log says it tried to authenticate on the server but it seems the client disconected before. Mapping from a windows 32bit version or directly from the pdc everything works fine. Does anybody knows a way to fix it? The samba version is 3.0.22 at both pdc and sharing client, both freebsd 5-4. Thanks.. E. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Problem mapping from windows x64 version
I got a problem mapping a network drive from a samba sharing server wich authenticates on a PDC samba server. Windows says network path was not found but the bdc's log says it tried to authenticate on the server but it seems the client disconected before. Mapping from a windows 32bit version or directly from the pdc everything works fine. Does anybody knows a way to fix it? The samba version is 3.0.22 at both pdc and sharing client, both freebsd 5-4. Thanks.. E. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: OpenLDAP and Active Directory synchronize
well I looked into this about 6 months ago now and the answer then way not without a lot of effort and scripts and it was just a messy answer. But if you find an answer i'd be interested in hearing it, try http://www.ldapguru.com/ I think there is a constant topic about this. Dracula wrote: I have OpenLdap Server.I also have Windows Active Directory server.I want to know if you have something to synchronize the users information between Active Directory and the Linux Ldap server ? This isn't really a Samba question. You should direct it to the OpenLDAP mailing lists. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- Paul Matthews I.T Trainee | The Cathedral School Ph (07) 47222 194 | Fax (07) 47222 111 PO Box 944 Aitkenvale Q 4814 E: [EMAIL PROTECTED] W: www.cathedral.qld.edu.au Anglican coeducation | Day and Boarding | Early Childhood to Year 12 Educating for life-long success *** IMPORTANT NOTICE REGARDING CONFIDENTIALITY This electronic email message is intended only for the addressee and may contain confidential information. If you are not the addressee, you are notified that any transmission, distribution or photocopying of this email is strictly prohibited. The confidentiality attached to this email is not waived, lost or destroyed by reasons of a mistaken delivery to you. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] file transfer problem
Elvar wrote: Elvar wrote: Hello, I'm having a problem copying large amounts of data from our Win2k3 server to a samba share on the samba server. I've turned debugging on in the smb.conf file all the way up to level 10 and I still do not see what is causing my file transfers to abort. It consistently aborts copying files as small as 10 gigs even. I've read through the performance tuning section in the handbook and tried those options, but I'm still not having any luck. I tried copying the same data using ftp instead and did not have any problems so I do not think there is a physical networking problem. If anyone has any suggestions I would greatly appreciate them. Kind regards, Elvar More on this file transfer problem. I can run ntbackup to a share on another random WinXP or 2K workstation just fine without problems. The size of the backup I used in my test was 50G in size. Just to try and change things up I removed FreeBSD as the host OS for the samba box and installed gentoo linux with the same smb.conf hoping that maybe for some insane reason it was an OS problem. Negative, the same exact problem is still happening. Large transfers or even transfers that are large consisting of many files will fail at random times. It rarely ever lasts longer than 10 mins, sometimes 5. Again, I don't thin it's the hardware to the samba box because I can ftp 50G's across just fine. If anyone has any ideas I would really appreciate some assistance. Thanks, Elvar And more... I found that I CAN run an ntbackup job from a Win2k workstation and it will complete a 30G backup to the samba box just fine. So, it looks like the only issue is large data transfers from WinXP workstations and Win2k3 servers. If that tidbit of info gives anyone any other ideas as to what may be wrong, feel free to speak up. :) Regards, Elvar -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: OpenLDAP and Active Directory synchronize
Paul Matthews wrote: well I looked into this about 6 months ago now and the answer then way not without a lot of effort and scripts and it was just a messy answer. But if you find an answer i'd be interested in hearing it, try http://www.ldapguru.com/ I think there is a constant topic about this. This probably isn't an option if you've already deployed OpenLDAP, but Novell's eDirectory has an addon called Identity Manager which does this kind synchronization to AD (and many, many other applications) very smoothly. Yes it's commercial, but it is relatively inexpensive and it's the best damn directory out there in my opinion if you're going to be serious about this. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: OpenLDAP and Active Directory synchronize
On Wed, 2006-04-12 at 20:44 -0600, Justin Grote wrote: Paul Matthews wrote: well I looked into this about 6 months ago now and the answer then way not without a lot of effort and scripts and it was just a messy answer. But if you find an answer i'd be interested in hearing it, try http://www.ldapguru.com/ I think there is a constant topic about this. This probably isn't an option if you've already deployed OpenLDAP, but Novell's eDirectory has an addon called Identity Manager which does this kind synchronization to AD (and many, many other applications) very smoothly. Yes it's commercial, but it is relatively inexpensive and it's the best damn directory out there in my opinion if you're going to be serious about this. Fedora Directory Server can synchronize with Windows LDAP http://directory.fedora.redhat.com/wiki/Howto:WindowsSync Craig -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Semaphore Error
Hi all I have a samba 3.0.21c with ldap backend , i have about 100 users connecting to my domain. i have a linux system which acts as a file server (prjsrv01) where i have declared 2 shares. projects and datalib. The users get drives mapped with the help of logon script. so i map projects share as P: drive net use p: //prjsrv01/projects. but whent the logon script runs the command. it says semaphore error. At the prjsrv01. i increased the log level to 10 and the following is the output of the file . when user locuz logged in. [2006/03/25 12:43:17, 4] lib/username.c:map_username(143) Scanning username map /usr/local/samba3c2/lib/smbusers [2006/03/25 12:43:17, 3] auth/auth.c:check_ntlm_password(219) check_ntlm_password: Checking password for unmapped user [EMAIL PROTECTED] with the new password interface [2006/03/25 12:43:17, 3] auth/auth.c:check_ntlm_password(222) check_ntlm_password: mapped user is: [EMAIL PROTECTED] [2006/03/25 12:43:17, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2006/03/25 12:43:17, 3] smbd/uid.c:push_conn_ctx(393) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2006/03/25 12:43:17, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2006/03/25 12:43:27, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2006/03/25 12:43:27, 2] auth/auth.c:check_ntlm_password(317) check_ntlm_password: Authentication for user [locuz] - [locuz] FAILED with error NT_STATUS_IO_TIMEOUT [2006/03/25 12:43:31, 3] smbd/process.c:process_smb(1194) Transaction 9 of length 43 [2006/03/25 12:43:31, 3] smbd/process.c:switch_message(993) switch message SMBulogoffX (pid 3596) conn 0x0 [2006/03/25 12:43:31, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2006/03/25 12:43:31, 3] smbd/reply.c:reply_ulogoffX(1595) ulogoff, vuser id 102 does not map to user. [2006/03/25 12:43:31, 3] smbd/reply.c:reply_ulogoffX(1606) ulogoffX vuid=102 [2006/03/25 12:43:31, 3] smbd/process.c:timeout_processing(1447) timeout_processing: End of file from client (client has disconnected). [2006/03/25 12:43:31, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0 [2006/03/25 12:43:31, 2] smbd/server.c:exit_server(614) Closing connections [2006/03/25 12:43:31, 3] smbd/connection.c:yield_connection(69) Yielding connection to [2006/03/25 12:43:31, 3] smbd/server.c:exit_server(655) Server exit (normal exit) [2006/03/25 12:43:31, 4] lib/username.c:map_username(143) Scanning username map /usr/local/samba3c2/lib/smbusers [2006/03/25 12:43:31, 3] auth/auth.c:check_ntlm_password(219) check_ntlm_password: Checking password for unmapped user [EMAIL PROTECTED] with the new password interface [2006/03/25 12:43:31, 3] auth/auth.c:check_ntlm_password(222) check_ntlm_password: mapped user is: [EMAIL PROTECTED] [2006/03/25 12:43:31, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2006/03/25 12:43:31, 3] smbd/uid.c:push_conn_ctx(393) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2006/03/25 12:43:31, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2006/03/25 12:43:33, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2006/03/25 12:43:33, 4] lib/username.c:map_username(143) Scanning username map /usr/local/samba3c2/lib/smbusers [2006/03/25 12:43:33, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2006/03/25 12:43:33, 3] smbd/uid.c:push_conn_ctx(393) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2006/03/25 12:43:33, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2006/03/25 12:43:33, 2] lib/smbldap.c:smbldap_open_connection(722) smbldap_open_connection: connection opened [2006/03/25 12:43:33, 3] lib/smbldap.c:smbldap_connect_system(905) ldap_connect_system: succesful connection to the LDAP server [2006/03/25 12:43:33, 4] lib/smbldap.c:smbldap_open(969) The LDAP server is succesfully connected [2006/03/25 12:43:33, 2] passdb/pdb_ldap.c:init_group_from_ldap(2199) init_group_from_ldap: Entry found for group: 513 [2006/03/25 12:43:33, 3] smbd/sec_ctx.c:pop_sec_ctx(386) pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0 [2006/03/25 12:43:33, 4] lib/substitute.c:automount_server(359) Home server: prjsrv01 [2006/03/25 12:43:33, 4] lib/substitute.c:automount_server(359) Home server: prjsrv01 [2006/03/25 12:43:33, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1 [2006/03/25 12:43:33, 3] smbd/uid.c:push_conn_ctx(393) push_conn_ctx(0) : conn_ctx_stack_ndx = 0 [2006/03/25 12:43:33, 3] smbd/sec_ctx.c:set_sec_ctx(288) setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1 [2006/03/25 12:43:33, 3] smbd/sec_ctx.c:push_sec_ctx(256) push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2 [2006/03/25 12:43:33, 3]
svn commit: samba r15049 - in branches/SAMBA_4_0/source: lib/messaging torture/local
Author: tridge Date: 2006-04-12 06:08:24 + (Wed, 12 Apr 2006) New Revision: 15049 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15049 Log: for really efficient oplock handling with thousands of open files we will need a separate messaging endpoint per open file. To make this efficient extend the messaging layer to have a new registration function for temporary message types that maps via an idtree. I have updated the LOCAL-MESSAGING test to use the new function. Modified: branches/SAMBA_4_0/source/lib/messaging/irpc.h branches/SAMBA_4_0/source/lib/messaging/messaging.c branches/SAMBA_4_0/source/lib/messaging/messaging.h branches/SAMBA_4_0/source/torture/local/messaging.c Changeset: Modified: branches/SAMBA_4_0/source/lib/messaging/irpc.h === --- branches/SAMBA_4_0/source/lib/messaging/irpc.h 2006-04-12 04:42:40 UTC (rev 15048) +++ branches/SAMBA_4_0/source/lib/messaging/irpc.h 2006-04-12 06:08:24 UTC (rev 15049) @@ -76,14 +76,18 @@ } async; }; +typedef void (*msg_callback_t)(struct messaging_context *msg, void *private, + uint32_t msg_type, uint32_t server_id, DATA_BLOB *data); struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx, uint32_t server_id, struct event_context *ev); NTSTATUS messaging_send(struct messaging_context *msg, uint32_t server, uint32_t msg_type, DATA_BLOB *data); -void messaging_register(struct messaging_context *msg, void *private, - uint32_t msg_type, - void (*fn)(struct messaging_context *, void *, uint32_t, uint32_t, DATA_BLOB *)); +NTSTATUS messaging_register(struct messaging_context *msg, void *private, + uint32_t msg_type, + msg_callback_t fn); +NTSTATUS messaging_register_tmp(struct messaging_context *msg, void *private, + msg_callback_t fn, uint32_t *msg_type); struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx, uint32_t server_id, struct event_context *ev); struct messaging_context *messaging_client_init(TALLOC_CTX *mem_ctx, Modified: branches/SAMBA_4_0/source/lib/messaging/messaging.c === --- branches/SAMBA_4_0/source/lib/messaging/messaging.c 2006-04-12 04:42:40 UTC (rev 15048) +++ branches/SAMBA_4_0/source/lib/messaging/messaging.c 2006-04-12 06:08:24 UTC (rev 15049) @@ -41,7 +41,9 @@ struct socket_context *sock; const char *base_path; const char *path; - struct dispatch_fn *dispatch; + struct dispatch_fn **dispatch; + uint32_t num_types; + struct idr_context *dispatch_tree; struct messaging_rec *pending; struct irpc_list *irpc; struct idr_context *idr; @@ -54,14 +56,13 @@ } event; }; -/* we have a linked list of dispatch handlers that this messaging - server can deal with */ +/* we have a linked list of dispatch handlers for each msg_type that + this messaging server can deal with */ struct dispatch_fn { struct dispatch_fn *next, *prev; uint32_t msg_type; void *private; - void (*fn)(struct messaging_context *msg, void *private, - uint32_t msg_type, uint32_t server_id, DATA_BLOB *data); + msg_callback_t fn; }; /* an individual message */ @@ -127,14 +128,22 @@ static void messaging_dispatch(struct messaging_context *msg, struct messaging_rec *rec) { struct dispatch_fn *d, *next; - for (d=msg-dispatch;d;d=next) { + + /* temporary IDs use an idtree, the rest use a array of pointers */ + if (rec-header-msg_type = MSG_TMP_BASE) { + d = idr_find(msg-dispatch_tree, rec-header-msg_type); + } else if (rec-header-msg_type msg-num_types) { + d = msg-dispatch[rec-header-msg_type]; + } else { + d = NULL; + } + + for (; d; d = next) { + DATA_BLOB data; next = d-next; - if (d-msg_type == rec-header-msg_type) { - DATA_BLOB data; - data.data = rec-packet.data + sizeof(*rec-header); - data.length = rec-header-length; - d-fn(msg, d-private, d-msg_type, rec-header-from, data); - } + data.data = rec-packet.data + sizeof(*rec-header); + data.length = rec-header-length; + d-fn(msg, d-private, d-msg_type, rec-header-from, data); } rec-header-length = 0; } @@ -272,34 +281,96 @@ /* Register a dispatch function for a particular message type. */ -void messaging_register(struct messaging_context *msg, void *private, - uint32_t msg_type, -
svn commit: samba r15050 - in branches/SAMBA_4_0/source/lib/messaging: .
Author: tridge Date: 2006-04-12 09:38:07 + (Wed, 12 Apr 2006) New Revision: 15050 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15050 Log: fixed a double free in the new messaging code. Modified: branches/SAMBA_4_0/source/lib/messaging/messaging.c Changeset: Modified: branches/SAMBA_4_0/source/lib/messaging/messaging.c === --- branches/SAMBA_4_0/source/lib/messaging/messaging.c 2006-04-12 06:08:24 UTC (rev 15049) +++ branches/SAMBA_4_0/source/lib/messaging/messaging.c 2006-04-12 09:38:07 UTC (rev 15050) @@ -364,12 +364,12 @@ } /* the list base possibly changed */ - if (list == NULL) { - if (msg_type = msg-num_types) { + if (msg_type = msg-num_types) { + if (list == NULL) { idr_remove(msg-dispatch_tree, msg_type); - } else { - msg-dispatch[msg_type] = NULL; } + } else { + msg-dispatch[msg_type] = list; } }
svn commit: samba r15051 - in branches/SAMBA_4_0/source/heimdal_build: .
Author: ab Date: 2006-04-12 12:28:22 + (Wed, 12 Apr 2006) New Revision: 15051 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15051 Log: Remove directory creation from this rule; we use script/buildtree.pl for external build dir instead Modified: branches/SAMBA_4_0/source/heimdal_build/config.mk Changeset: Modified: branches/SAMBA_4_0/source/heimdal_build/config.mk === --- branches/SAMBA_4_0/source/heimdal_build/config.mk 2006-04-12 09:38:07 UTC (rev 15050) +++ branches/SAMBA_4_0/source/heimdal_build/config.mk 2006-04-12 12:28:22 UTC (rev 15051) @@ -434,7 +434,6 @@ .SUFFIXES: .hin .hin.h: - @mkdir -p $(dir $@) @cp $ $@ $(patsubst heimdal/lib/des/%.h,heimdal/lib/des/hcrypto/%.h,$(wildcard heimdal/lib/des/*.h)): heimdal/lib/des/hcrypto
svn commit: samba r15052 - in branches/SAMBA_4_0/source/build/smb_build: .
Author: ab Date: 2006-04-12 13:02:56 + (Wed, 12 Apr 2006) New Revision: 15052 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15052 Log: Do not add builddir variants into include paths when building in-tree Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm Changeset: Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm === --- branches/SAMBA_4_0/source/build/smb_build/makefile.pm 2006-04-12 12:28:22 UTC (rev 15051) +++ branches/SAMBA_4_0/source/build/smb_build/makefile.pm 2006-04-12 13:02:56 UTC (rev 15052) @@ -10,6 +10,7 @@ use strict; use base 'smb_build::env'; +use Cwd 'abs_path'; sub new($$$) { @@ -103,6 +104,7 @@ my $devld_local = ; my $devld_install = ; + my $builddir_headers = ; $self-{duplicate_build} = 0; if ($self-{config}-{LIBRARY_OUTPUT_TYPE} eq SHARED_LIBRARY) { @@ -112,6 +114,10 @@ } $devld_install = -Wl,-rpath-link,\$(builddir)/bin; } + + if (!(abs_path($self-{config}-{srcdir}) eq abs_path($self-{config}-{builddir}))) { + $builddir_headers= -I\$(builddir)/include -I\$(builddir) -I\$(builddir)/lib ; + } $self-output( __EOD__ SHELL=$self-{config}-{SHELL} @@ -122,7 +128,7 @@ CPPFLAGS=$self-{config}-{CPPFLAGS} CC=$self-{config}-{CC} -CFLAGS=-I\$(builddir)/include -I\$(builddir) -I\$(builddir)/lib -I\$(srcdir)/include -I\$(srcdir) -I\$(srcdir)/lib -D_SAMBA_BUILD_ -DHAVE_CONFIG_H $self-{config}-{CFLAGS} \$(CPPFLAGS) +CFLAGS=$builddir_headers-I\$(srcdir)/include -I\$(srcdir) -I\$(srcdir)/lib -D_SAMBA_BUILD_ -DHAVE_CONFIG_H $self-{config}-{CFLAGS} \$(CPPFLAGS) PICFLAG=$self-{config}-{PICFLAG} HOSTCC=$self-{config}-{HOSTCC}
svn commit: samba r15053 - in branches/SAMBA_3_0/source: . auth include nsswitch utils
Author: jerry Date: 2006-04-12 14:10:39 + (Wed, 12 Apr 2006) New Revision: 15053 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15053 Log: fix portabilities issues between 32-bit winbind clients and a 64-bit winbindd server Modified: branches/SAMBA_3_0/source/auth/auth_winbind.c branches/SAMBA_3_0/source/configure.in branches/SAMBA_3_0/source/include/includes.h branches/SAMBA_3_0/source/nsswitch/wb_client.c branches/SAMBA_3_0/source/nsswitch/wb_common.c branches/SAMBA_3_0/source/nsswitch/wbinfo.c branches/SAMBA_3_0/source/nsswitch/winbind_nss_aix.c branches/SAMBA_3_0/source/nsswitch/winbind_nss_config.h branches/SAMBA_3_0/source/nsswitch/winbind_nss_irix.c branches/SAMBA_3_0/source/nsswitch/winbind_nss_linux.c branches/SAMBA_3_0/source/nsswitch/winbindd.c branches/SAMBA_3_0/source/nsswitch/winbindd_async.c branches/SAMBA_3_0/source/nsswitch/winbindd_cache.c branches/SAMBA_3_0/source/nsswitch/winbindd_dual.c branches/SAMBA_3_0/source/nsswitch/winbindd_group.c branches/SAMBA_3_0/source/nsswitch/winbindd_misc.c branches/SAMBA_3_0/source/nsswitch/winbindd_nss.h branches/SAMBA_3_0/source/nsswitch/winbindd_pam.c branches/SAMBA_3_0/source/nsswitch/winbindd_user.c branches/SAMBA_3_0/source/nsswitch/winbindd_util.c branches/SAMBA_3_0/source/utils/net_rpc.c branches/SAMBA_3_0/source/utils/ntlm_auth.c Changeset: Sorry, the patch is too large (1129 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15053
svn commit: samba r15054 - in trunk/source: . auth include nsswitch utils
Author: jerry Date: 2006-04-12 14:11:51 + (Wed, 12 Apr 2006) New Revision: 15054 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15054 Log: port fix to trunk - fix portabilities issues between 32-bit winbind clients and a 64-bit winbindd server Modified: trunk/source/auth/auth_winbind.c trunk/source/configure.in trunk/source/include/includes.h trunk/source/nsswitch/wb_client.c trunk/source/nsswitch/wb_common.c trunk/source/nsswitch/wbinfo.c trunk/source/nsswitch/winbind_nss_aix.c trunk/source/nsswitch/winbind_nss_config.h trunk/source/nsswitch/winbind_nss_irix.c trunk/source/nsswitch/winbind_nss_linux.c trunk/source/nsswitch/winbindd.c trunk/source/nsswitch/winbindd_async.c trunk/source/nsswitch/winbindd_cache.c trunk/source/nsswitch/winbindd_dual.c trunk/source/nsswitch/winbindd_group.c trunk/source/nsswitch/winbindd_misc.c trunk/source/nsswitch/winbindd_nss.h trunk/source/nsswitch/winbindd_pam.c trunk/source/nsswitch/winbindd_user.c trunk/source/nsswitch/winbindd_util.c trunk/source/utils/net_rpc.c trunk/source/utils/ntlm_auth.c Changeset: Sorry, the patch is too large (1205 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15054
svn commit: samba r15055 - in branches/SAMBA_4_0/source/lib/messaging: .
Author: metze Date: 2006-04-12 15:52:17 + (Wed, 12 Apr 2006) New Revision: 15055 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15055 Log: this was my version for the crash bug in the messaging code... it also makes the function a bit shorter and clearer, as the tmp msg_types only have one handler and not a list metze Modified: branches/SAMBA_4_0/source/lib/messaging/messaging.c Changeset: Modified: branches/SAMBA_4_0/source/lib/messaging/messaging.c === --- branches/SAMBA_4_0/source/lib/messaging/messaging.c 2006-04-12 14:11:51 UTC (rev 15054) +++ branches/SAMBA_4_0/source/lib/messaging/messaging.c 2006-04-12 15:52:17 UTC (rev 15055) @@ -299,8 +299,7 @@ msg-num_types = msg_type+1; } - - d = talloc(msg-dispatch, struct dispatch_fn); + d = talloc_zero(msg-dispatch, struct dispatch_fn); NT_STATUS_HAVE_NO_MEMORY(d); d-msg_type = msg_type; d-private = private; @@ -343,37 +342,25 @@ */ void messaging_deregister(struct messaging_context *msg, uint32_t msg_type, void *private) { - struct dispatch_fn *d, *list, *next; + struct dispatch_fn *d, *next; if (msg_type = msg-num_types) { - list = idr_find(msg-dispatch_tree, msg_type); - } else { - list = msg-dispatch[msg_type]; - } - - if (list == NULL) { + d = idr_find(msg-dispatch_tree, msg_type); + if (!d) return; + idr_remove(msg-dispatch_tree, msg_type); + talloc_free(d); return; } - for (d = list; d; d = next) { + for (d = msg-dispatch[msg_type]; d; d = next) { next = d-next; if (d-private == private) { - DLIST_REMOVE(list, d); + DLIST_REMOVE(msg-dispatch[msg_type], d); talloc_free(d); } - } - - /* the list base possibly changed */ - if (msg_type = msg-num_types) { - if (list == NULL) { - idr_remove(msg-dispatch_tree, msg_type); - } - } else { - msg-dispatch[msg_type] = list; } } - /* Send a message to a particular server */
svn commit: samba r15056 - in branches/SAMBA_4_0/source/ntvfs/posix: .
Author: metze Date: 2006-04-12 16:19:42 + (Wed, 12 Apr 2006) New Revision: 15056 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15056 Log: w2k3 gives NT_STATUS_ACCESS_DENIED instead of NT_STATUS_ACCESS_VIOLATION metze Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_write.c Changeset: Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_write.c === --- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_write.c 2006-04-12 15:52:17 UTC (rev 15055) +++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_write.c 2006-04-12 16:19:42 UTC (rev 15056) @@ -50,16 +50,14 @@ } if (!(f-access_mask (SEC_FILE_WRITE_DATA | SEC_FILE_APPEND_DATA))) { - return NT_STATUS_ACCESS_VIOLATION; + return NT_STATUS_ACCESS_DENIED; } status = pvfs_check_lock(pvfs, f, req-smbpid, wr-writex.in.offset, wr-writex.in.count, WRITE_LOCK); - if (!NT_STATUS_IS_OK(status)) { - return status; - } + NT_STATUS_NOT_OK_RETURN(status); if (f-handle-name-stream_name) { ret = pvfs_stream_write(pvfs,
svn commit: samba-web r953 - in trunk/history: .
Author: deryck Date: 2006-04-12 16:26:08 + (Wed, 12 Apr 2006) New Revision: 953 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=953 Log: Fix release notes links for Jerry: Get the file link right and drop the .html from the display name. deryck Modified: trunk/history/header_history.html Changeset: Modified: trunk/history/header_history.html === --- trunk/history/header_history.html 2006-04-06 17:37:53 UTC (rev 952) +++ trunk/history/header_history.html 2006-04-12 16:26:08 UTC (rev 953) @@ -77,71 +77,71 @@ div class=notes h6Release Notes/h6 ul -lia href=samba-3.0.22samba-3.0.22.html/a/li -lia href=samba-3.0.21csamba-3.0.21c.html/a/li -lia href=samba-3.0.21bsamba-3.0.21b.html/a/li -lia href=samba-3.0.21asamba-3.0.21a.html/a/li -lia href=samba-3.0.21samba-3.0.21.html/a/li -lia href=samba-3.0.20bsamba-3.0.20b.html/a/li -lia href=samba-3.0.20asamba-3.0.20a.html/a/li -lia href=samba-3.0.20samba-3.0.20.html/a/li -lia href=samba-3.0.14asamba-3.0.14a.html/a/li -lia href=samba-3.0.13samba-3.0.13.html/a/li -lia href=samba-3.0.12samba-3.0.12.html/a/li -lia href=samba-3.0.11samba-3.0.11.html/a/li -lia href=samba-3.0.10samba-3.0.10.html/a/li -lia href=samba-3.0.9samba-3.0.9.html/a/li -lia href=samba-3.0.8samba-3.0.8.html/a/li -lia href=samba-3.0.7samba-3.0.7.html/a/li -lia href=samba-3.0.6samba-3.0.6.html/a/li -lia href=samba-3.0.5samba-3.0.5.html/a/li -lia href=samba-3.0.4samba-3.0.4.html/a/li -lia href=samba-3.0.3samba-3.0.3.html/a/li -lia href=samba-3.0.2asamba-3.0.2a.html/a/li -lia href=samba-3.0.2samba-3.0.2.html/a/li -lia href=samba-3.0.1samba-3.0.1.html/a/li -lia href=samba-3.0.0samba-3.0.0.html/a/li -lia href=samba-2.2.12samba-2.2.12.html/a/li -lia href=samba-2.2.11samba-2.2.11.html/a/li -lia href=samba-2.2.10samba-2.2.10.html/a/li -lia href=samba-2.2.9samba-2.2.9.html/a/li -lia href=samba-2.2.8asamba-2.2.8a.html/a/li -lia href=samba-2.2.8samba-2.2.8.html/a/li -lia href=samba-2.2.7asamba-2.2.7a.html/a/li -lia href=samba-2.2.7samba-2.2.7.html/a/li -lia href=samba-2.2.6samba-2.2.6.html/a/li -lia href=samba-2.2.5samba-2.2.5.html/a/li -lia href=samba-2.2.4samba-2.2.4.html/a/li -lia href=samba-2.2.3asamba-2.2.3a.html/a/li -lia href=samba-2.2.3samba-2.2.3.html/a/li -lia href=samba-2.2.2samba-2.2.2.html/a/li -lia href=samba-2.2.1samba-2.2.1.html/a/li -lia href=samba-2.2.0samba-2.2.0.html/a/li -lia href=samba-2.0.7samba-2.0.7.html/a/li -lia href=samba-2.0.6samba-2.0.6.html/a/li -lia href=samba-2.0.5asamba-2.0.5a.html/a/li -lia href=samba-2.0.5samba-2.0.5.html/a/li -lia href=samba-2.0.4samba-2.0.4.html/a/li -lia href=samba-2.0.3samba-2.0.3.html/a/li -lia href=samba-2.0.2samba-2.0.2.html/a/li -lia href=samba-2.0.1samba-2.0.1.html/a/li -lia href=samba-2.0.0samba-2.0.0.html/a/li -lia href=samba1.9.18p10samba1.9.18p10.html/a/li -lia href=samba1.9.18p8samba1.9.18p8.html/a/li -lia href=samba1.9.18p7samba1.9.18p7.html/a/li -lia href=samba1.9.18p6samba1.9.18p6.html/a/li -lia href=samba1.9.18p5samba1.9.18p5.html/a/li -lia href=samba1.9.18p4samba1.9.18p4.html/a/li -lia href=samba1.9.18p3samba1.9.18p3.html/a/li -lia href=samba1.9.18p2samba1.9.18p2.html/a/li -lia href=samba1.9.18p1samba1.9.18p1.html/a/li -lia href=samba1.9.18samba1.9.18.html/a/li -lia href=samba1.9.17p5samba1.9.17p5.html/a/li -lia href=samba1.9.17p4samba1.9.17p4.html/a/li -lia href=samba1.9.17p3samba1.9.17p3.html/a/li -lia href=samba1.9.17p2samba1.9.17p2.html/a/li -lia href=samba1.9.17p1samba1.9.17p1.html/a/li -lia href=samba1.9.17samba1.9.17.html/a/li +lia href=samba-3.0.22.htmlsamba-3.0.22/a/li +lia href=samba-3.0.21c.htmlsamba-3.0.21c/a/li +lia href=samba-3.0.21b.htmlsamba-3.0.21b/a/li +lia href=samba-3.0.21a.htmlsamba-3.0.21a/a/li +lia href=samba-3.0.21.htmlsamba-3.0.21/a/li +lia href=samba-3.0.20b.htmlsamba-3.0.20b/a/li +lia href=samba-3.0.20a.htmlsamba-3.0.20a/a/li +lia href=samba-3.0.20.htmlsamba-3.0.20/a/li +lia href=samba-3.0.14a.htmlsamba-3.0.14a/a/li +lia href=samba-3.0.13.htmlsamba-3.0.13/a/li +lia href=samba-3.0.12.htmlsamba-3.0.12/a/li +lia href=samba-3.0.11.htmlsamba-3.0.11/a/li +lia href=samba-3.0.10.htmlsamba-3.0.10/a/li +lia href=samba-3.0.9.htmlsamba-3.0.9/a/li +lia href=samba-3.0.8.htmlsamba-3.0.8/a/li +lia href=samba-3.0.7.htmlsamba-3.0.7/a/li +lia href=samba-3.0.6.htmlsamba-3.0.6/a/li +lia href=samba-3.0.5.htmlsamba-3.0.5/a/li +lia href=samba-3.0.4.htmlsamba-3.0.4/a/li +lia href=samba-3.0.3.htmlsamba-3.0.3/a/li +lia href=samba-3.0.2a.htmlsamba-3.0.2a/a/li +lia href=samba-3.0.2.htmlsamba-3.0.2/a/li +lia href=samba-3.0.1.htmlsamba-3.0.1/a/li +lia
svn commit: samba r15057 - in branches/SAMBA_4_0/source/ntvfs/posix: .
Author: metze Date: 2006-04-12 16:27:53 + (Wed, 12 Apr 2006) New Revision: 15057 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15057 Log: fix access masks for getting and setting security_descriptors I'll add some torture tests later... metze Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_qfileinfo.c branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c Changeset: Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_qfileinfo.c === --- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_qfileinfo.c 2006-04-12 16:19:42 UTC (rev 15056) +++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_qfileinfo.c 2006-04-12 16:27:53 UTC (rev 15057) @@ -28,11 +28,11 @@ /* determine what access bits are needed for a call */ -static uint32_t pvfs_fileinfo_access(enum smb_fileinfo_level level) +static uint32_t pvfs_fileinfo_access(union smb_fileinfo *info) { uint32_t needed; - switch (level) { + switch (info-generic.level) { case RAW_FILEINFO_EA_LIST: case RAW_FILEINFO_ALL_EAS: needed = SEC_FILE_READ_EA; @@ -43,14 +43,24 @@ break; case RAW_FILEINFO_SEC_DESC: - needed = SEC_STD_READ_CONTROL; + needed = 0; + if (info-query_secdesc.in.secinfo_flags (SECINFO_OWNER|SECINFO_GROUP)) { + needed |= SEC_STD_READ_CONTROL; + } + if (info-query_secdesc.in.secinfo_flags SECINFO_DACL) { + needed |= SEC_STD_READ_CONTROL; + } + if (info-query_secdesc.in.secinfo_flags SECINFO_SACL) { + needed |= SEC_FLAG_SYSTEM_SECURITY; + } break; default: needed = SEC_FILE_READ_ATTRIBUTE; break; } - return needed; + + return needed; } /* @@ -304,7 +314,7 @@ } status = pvfs_access_check_simple(pvfs, req, name, - pvfs_fileinfo_access(info-generic.level)); + pvfs_fileinfo_access(info)); if (!NT_STATUS_IS_OK(status)) { return status; } @@ -332,7 +342,7 @@ } h = f-handle; - access_needed = pvfs_fileinfo_access(info-generic.level); + access_needed = pvfs_fileinfo_access(info); if ((f-access_mask access_needed) != access_needed) { return NT_STATUS_ACCESS_DENIED; } Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c === --- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c2006-04-12 16:19:42 UTC (rev 15056) +++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_setfileinfo.c2006-04-12 16:27:53 UTC (rev 15057) @@ -53,16 +53,23 @@ case RAW_SFILEINFO_SEC_DESC: needed = 0; - if (info-set_secdesc.in.secinfo_flags (SECINFO_DACL|SECINFO_SACL)) { + if (info-set_secdesc.in.secinfo_flags (SECINFO_OWNER|SECINFO_GROUP)) { + needed |= SEC_STD_WRITE_OWNER; + } + if (info-set_secdesc.in.secinfo_flags SECINFO_DACL) { needed |= SEC_STD_WRITE_DAC; } + if (info-set_secdesc.in.secinfo_flags SECINFO_SACL) { + needed |= SEC_FLAG_SYSTEM_SECURITY; + } break; default: needed = SEC_FILE_WRITE_ATTRIBUTE; break; } - return needed; + + return needed; } /*
svn commit: samba-web r954 - in trunk/news/developers: .
Author: deryck Date: 2006-04-12 17:09:38 + (Wed, 12 Apr 2006) New Revision: 954 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-webrev=954 Log: Add news item about Waider's work on mod_ntlm_winbind. deryck Added: trunk/news/developers/mod_ntlm_winbind_apache2.html Changeset: Added: trunk/news/developers/mod_ntlm_winbind_apache2.html === --- trunk/news/developers/mod_ntlm_winbind_apache2.html 2006-04-12 16:26:08 UTC (rev 953) +++ trunk/news/developers/mod_ntlm_winbind_apache2.html 2006-04-12 17:09:38 UTC (rev 954) @@ -0,0 +1,14 @@ +h3a name=mod_ntlm_winbind_apache2mod_ntlm_winbind Updated for Apache2/a/h3 + +div class=article + pRonan Waide has done some work updating mod_ntlm_winbind for Apache2. + mod_ntlm_winbind is an Apache module that provides NTLM and Basic + authentication via winbind. Support for both plaintext and NTLM auth + in the same module as also been added./p + + pThe + a href=http://download.samba.org/ftp/unpacked/lorikeet/mod_ntlm_winbind/;module + source is available/a for the interested./p +/div + +
svn commit: samba r15058 - branches/SAMBA_3_0/examples branches/SAMBA_3_0/examples/pam_winbind trunk/examples trunk/examples/pam_winbind
Author: gd Date: 2006-04-12 17:36:13 + (Wed, 12 Apr 2006) New Revision: 15058 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15058 Log: Add sample pam_winbind.conf file. Guenther Added: branches/SAMBA_3_0/examples/pam_winbind/ branches/SAMBA_3_0/examples/pam_winbind/pam_winbind.conf trunk/examples/pam_winbind/ trunk/examples/pam_winbind/pam_winbind.conf Changeset: Added: branches/SAMBA_3_0/examples/pam_winbind/pam_winbind.conf === --- branches/SAMBA_3_0/examples/pam_winbind/pam_winbind.conf2006-04-12 16:27:53 UTC (rev 15057) +++ branches/SAMBA_3_0/examples/pam_winbind/pam_winbind.conf2006-04-12 17:36:13 UTC (rev 15058) @@ -0,0 +1,26 @@ +; +; pam_winbind configuration file +; +; /etc/security/pam_winbind.conf +; + +[global] + +; turn on debugging +;debug = no + +; request a cached login if possible +; (needs winbind offline logon = yes in smb.conf) +;cached_login = no + +; authenticate using kerberos +;krb5_auth = no + +; when using kerberos, request a FILE krb5 credential cache type +; (leave empty to just do krb5 authentication but not have a ticket +; afterwards) +;krb5_ccache_type = + +; make successful authentication dependend on membership of one SID +; (can also take a name) +;require_membership_of = Added: trunk/examples/pam_winbind/pam_winbind.conf === --- trunk/examples/pam_winbind/pam_winbind.conf 2006-04-12 16:27:53 UTC (rev 15057) +++ trunk/examples/pam_winbind/pam_winbind.conf 2006-04-12 17:36:13 UTC (rev 15058) @@ -0,0 +1,26 @@ +; +; pam_winbind configuration file +; +; /etc/security/pam_winbind.conf +; + +[global] + +; turn on debugging +;debug = no + +; request a cached login if possible +; (needs winbind offline logon = yes in smb.conf) +;cached_login = no + +; authenticate using kerberos +;krb5_auth = no + +; when using kerberos, request a FILE krb5 credential cache type +; (leave empty to just do krb5 authentication but not have a ticket +; afterwards) +;krb5_ccache_type = + +; make successful authentication dependend on membership of one SID +; (can also take a name) +;require_membership_of =
svn commit: samba r15059 - in trunk/source: include locking
Author: jra Date: 2006-04-12 23:00:55 + (Wed, 12 Apr 2006) New Revision: 15059 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15059 Log: The brlock code gets called a lot. Ensure we keep the key around while we're using it - saves many calls to locking_key() (now deleted). Jeremy. Modified: trunk/source/include/smb.h trunk/source/locking/brlock.c Changeset: Modified: trunk/source/include/smb.h === --- trunk/source/include/smb.h 2006-04-12 17:36:13 UTC (rev 15058) +++ trunk/source/include/smb.h 2006-04-12 23:00:55 UTC (rev 15059) @@ -838,10 +838,18 @@ enum brl_type {READ_LOCK, WRITE_LOCK, PENDING_LOCK, UNLOCK_LOCK}; enum brl_flavour {WINDOWS_LOCK = 0, POSIX_LOCK = 1}; +/* The key used in the brlock database. */ + +struct lock_key { + SMB_DEV_T device; + SMB_INO_T inode; +}; + struct byte_range_lock { files_struct *fsp; unsigned int num_locks; BOOL modified; + struct lock_key key; void *lock_data; }; Modified: trunk/source/locking/brlock.c === --- trunk/source/locking/brlock.c 2006-04-12 17:36:13 UTC (rev 15058) +++ trunk/source/locking/brlock.c 2006-04-12 23:00:55 UTC (rev 15059) @@ -55,13 +55,6 @@ enum brl_flavour lock_flav; }; -/* The key used in the brlock database. */ - -struct lock_key { - SMB_DEV_T device; - SMB_INO_T inode; -}; - /* The open brlock.tdb database. */ static TDB_CONTEXT *tdb; @@ -87,23 +80,6 @@ } / - Create a locking key - ensuring zero filled for pad purposes. -/ - -static TDB_DATA locking_key(SMB_DEV_T dev, SMB_INO_T inode) -{ -static struct lock_key key; -TDB_DATA kbuf; - -memset(key, '\0', sizeof(key)); -key.device = dev; -key.inode = inode; -kbuf.dptr = (char *)key; -kbuf.dsize = sizeof(key); -return kbuf; -} - -/ See if two locking contexts are equal. / @@ -1332,8 +1308,11 @@ { struct byte_range_lock *br_lck = talloc_get_type_abort(p, struct byte_range_lock); - TDB_DATA key = locking_key(br_lck-fsp-dev, br_lck-fsp-inode); + TDB_DATA key; + key.dptr = (char *)br_lck-key; + key.dsize = sizeof(struct lock_key); + if (!br_lck-modified) { goto done; } @@ -1355,8 +1334,8 @@ done: - SAFE_FREE(br_lck-lock_data); tdb_chainunlock(tdb, key); + SAFE_FREE(br_lck-lock_data); return 0; } @@ -1368,11 +1347,10 @@ struct byte_range_lock *brl_get_locks(TALLOC_CTX *mem_ctx, files_struct *fsp) { - TDB_DATA key = locking_key(fsp-dev, fsp-inode); + TDB_DATA key; TDB_DATA data; - struct byte_range_lock *br_lck; + struct byte_range_lock *br_lck = TALLOC_P(mem_ctx, struct byte_range_lock); - br_lck = TALLOC_P(mem_ctx, struct byte_range_lock); if (br_lck == NULL) { return NULL; } @@ -1380,7 +1358,13 @@ br_lck-fsp = fsp; br_lck-num_locks = 0; br_lck-modified = False; + memset(br_lck-key, '\0', sizeof(struct lock_key)); + br_lck-key.device = fsp-dev; + br_lck-key.inode = fsp-inode; + key.dptr = (char *)br_lck-key; + key.dsize = sizeof(struct lock_key); + if (tdb_chainlock(tdb, key) != 0) { DEBUG(3, (Could not lock byte range lock entry\n)); TALLOC_FREE(br_lck);
svn commit: samba r15060 - in branches/SAMBA_3_0/source: include locking
Author: jra Date: 2006-04-12 23:00:58 + (Wed, 12 Apr 2006) New Revision: 15060 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15060 Log: The brlock code gets called a lot. Ensure we keep the key around while we're using it - saves many calls to locking_key() (now deleted). Jeremy. Modified: branches/SAMBA_3_0/source/include/smb.h branches/SAMBA_3_0/source/locking/brlock.c Changeset: Modified: branches/SAMBA_3_0/source/include/smb.h === --- branches/SAMBA_3_0/source/include/smb.h 2006-04-12 23:00:55 UTC (rev 15059) +++ branches/SAMBA_3_0/source/include/smb.h 2006-04-12 23:00:58 UTC (rev 15060) @@ -836,10 +836,18 @@ enum brl_type {READ_LOCK, WRITE_LOCK, PENDING_LOCK, UNLOCK_LOCK}; enum brl_flavour {WINDOWS_LOCK = 0, POSIX_LOCK = 1}; +/* The key used in the brlock database. */ + +struct lock_key { + SMB_DEV_T device; + SMB_INO_T inode; +}; + struct byte_range_lock { files_struct *fsp; unsigned int num_locks; BOOL modified; + struct lock_key key; void *lock_data; }; Modified: branches/SAMBA_3_0/source/locking/brlock.c === --- branches/SAMBA_3_0/source/locking/brlock.c 2006-04-12 23:00:55 UTC (rev 15059) +++ branches/SAMBA_3_0/source/locking/brlock.c 2006-04-12 23:00:58 UTC (rev 15060) @@ -55,13 +55,6 @@ enum brl_flavour lock_flav; }; -/* The key used in the brlock database. */ - -struct lock_key { - SMB_DEV_T device; - SMB_INO_T inode; -}; - /* The open brlock.tdb database. */ static TDB_CONTEXT *tdb; @@ -87,23 +80,6 @@ } / - Create a locking key - ensuring zero filled for pad purposes. -/ - -static TDB_DATA locking_key(SMB_DEV_T dev, SMB_INO_T inode) -{ -static struct lock_key key; -TDB_DATA kbuf; - -memset(key, '\0', sizeof(key)); -key.device = dev; -key.inode = inode; -kbuf.dptr = (char *)key; -kbuf.dsize = sizeof(key); -return kbuf; -} - -/ See if two locking contexts are equal. / @@ -1332,8 +1308,11 @@ { struct byte_range_lock *br_lck = talloc_get_type_abort(p, struct byte_range_lock); - TDB_DATA key = locking_key(br_lck-fsp-dev, br_lck-fsp-inode); + TDB_DATA key; + key.dptr = (char *)br_lck-key; + key.dsize = sizeof(struct lock_key); + if (!br_lck-modified) { goto done; } @@ -1355,8 +1334,8 @@ done: - SAFE_FREE(br_lck-lock_data); tdb_chainunlock(tdb, key); + SAFE_FREE(br_lck-lock_data); return 0; } @@ -1368,11 +1347,10 @@ struct byte_range_lock *brl_get_locks(TALLOC_CTX *mem_ctx, files_struct *fsp) { - TDB_DATA key = locking_key(fsp-dev, fsp-inode); + TDB_DATA key; TDB_DATA data; - struct byte_range_lock *br_lck; + struct byte_range_lock *br_lck = TALLOC_P(mem_ctx, struct byte_range_lock); - br_lck = TALLOC_P(mem_ctx, struct byte_range_lock); if (br_lck == NULL) { return NULL; } @@ -1380,7 +1358,13 @@ br_lck-fsp = fsp; br_lck-num_locks = 0; br_lck-modified = False; + memset(br_lck-key, '\0', sizeof(struct lock_key)); + br_lck-key.device = fsp-dev; + br_lck-key.inode = fsp-inode; + key.dptr = (char *)br_lck-key; + key.dsize = sizeof(struct lock_key); + if (tdb_chainlock(tdb, key) != 0) { DEBUG(3, (Could not lock byte range lock entry\n)); TALLOC_FREE(br_lck);
Build status as of Thu Apr 13 00:00:02 2006
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2006-04-12 00:00:03.0 + +++ /home/build/master/cache/broken_results.txt 2006-04-13 00:00:03.0 + @@ -1,17 +1,17 @@ -Build status as of Wed Apr 12 00:00:02 2006 +Build status as of Thu Apr 13 00:00:02 2006 Build counts: Tree Total Broken Panic -ccache 9 2 0 +ccache 10 3 0 distcc 11 2 0 -lorikeet-heimdal 17 17 0 -ppp 19 0 0 -rsync35 2 0 +lorikeet-heimdal 19 19 0 +ppp 18 0 0 +rsync36 3 0 samba3 0 0 samba-docs 0 0 0 samba4 40 28 2 -samba_3_037 8 0 -smb-build25 0 0 -talloc 33 17 0 -tdb 33 3 0 +samba_3_038 7 0 +smb-build26 0 0 +talloc 11 8 0 +tdb 9 1 0
svn commit: samba r15061 - in branches/SAMBA_4_0/source: .
Author: ab Date: 2006-04-13 03:09:14 + (Thu, 13 Apr 2006) New Revision: 15061 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15061 Log: Use $(PERL) to run cflags.pl as actual perl binary might not be in /usr/bin Modified: branches/SAMBA_4_0/source/main.mk Changeset: Modified: branches/SAMBA_4_0/source/main.mk === --- branches/SAMBA_4_0/source/main.mk 2006-04-12 23:00:58 UTC (rev 15060) +++ branches/SAMBA_4_0/source/main.mk 2006-04-13 03:09:14 UTC (rev 15061) @@ -311,15 +311,15 @@ .c.ho: @echo Compiling $ with host compiler - @$(HOSTCC) `$(srcdir)/script/cflags.pl [EMAIL PROTECTED] $(CFLAGS) -c $ -o $@ + @$(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl [EMAIL PROTECTED] $(CFLAGS) -c $ -o $@ .c.d: @echo Generating dependencies for $ - @$(CC) -M -MG -MP -MT $(:.c=.o) `$(srcdir)/script/cflags.pl [EMAIL PROTECTED] $(CFLAGS) $ -o $@ + @$(CC) -M -MG -MP -MT $(:.c=.o) `$(PERL) $(srcdir)/script/cflags.pl [EMAIL PROTECTED] $(CFLAGS) $ -o $@ .c.hd: @echo Generating dependencies for $ - @$(CC) -M -MG -MP -MT $(:.c=.ho) `$(srcdir)/script/cflags.pl [EMAIL PROTECTED] $(CFLAGS) $ -o $@ + @$(CC) -M -MG -MP -MT $(:.c=.ho) `$(PERL) $(srcdir)/script/cflags.pl [EMAIL PROTECTED] $(CFLAGS) $ -o $@ include/includes.d: include/includes.h @echo Generating dependencies for $ @@ -328,14 +328,14 @@ .c.o: @if test -n $(CC_CHECKER); then \ echo Checking $ with '$(CC_CHECKER)'; \ - $(CC_CHECKER) `$(srcdir)/script/cflags.pl [EMAIL PROTECTED] $(CFLAGS) $(PICFLAG) -c $ -o $@; \ + $(CC_CHECKER) `$(PERL) $(srcdir)/script/cflags.pl [EMAIL PROTECTED] $(CFLAGS) $(PICFLAG) -c $ -o $@; \ fi @echo Compiling $ - @$(CC) `$(srcdir)/script/cflags.pl [EMAIL PROTECTED] $(CFLAGS) $(PICFLAG) -c $ -o $@ + @$(CC) `$(PERL) $(srcdir)/script/cflags.pl [EMAIL PROTECTED] $(CFLAGS) $(PICFLAG) -c $ -o $@ .h.h.gch: @echo Precompiling $ - @$(CC) `$(srcdir)/script/cflags.pl [EMAIL PROTECTED] $(CFLAGS) $(PICFLAG) -c $ -o $@ + @$(CC) `$(PERL) $(srcdir)/script/cflags.pl [EMAIL PROTECTED] $(CFLAGS) $(PICFLAG) -c $ -o $@ .y.c: @echo Building $ with $(YACC)
svn commit: samba r15062 - in branches/SAMBA_4_0/source/build/smb_build: .
Author: ab Date: 2006-04-13 04:04:10 + (Thu, 13 Apr 2006) New Revision: 15062 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15062 Log: Theoretically, this should allow NetBSD make to handle VPATH-like lookups Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm Changeset: Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm === --- branches/SAMBA_4_0/source/build/smb_build/makefile.pm 2006-04-13 03:09:14 UTC (rev 15061) +++ branches/SAMBA_4_0/source/build/smb_build/makefile.pm 2006-04-13 04:04:10 UTC (rev 15062) @@ -156,6 +156,8 @@ DEFAULT_TEST_TARGET=$self-{config}-{DEFAULT_TEST_TARGET} +# For BSD make +.PATH: \$(VPATH) __EOD__ ); }
svn commit: samba r15063 - in branches/SAMBA_4_0/source/build/smb_build: .
Author: ab Date: 2006-04-13 04:10:09 + (Thu, 13 Apr 2006) New Revision: 15063 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15063 Log: Theoretically, this should allow NetBSD make to handle VPATH-like lookups Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm Changeset: Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm === --- branches/SAMBA_4_0/source/build/smb_build/makefile.pm 2006-04-13 04:04:10 UTC (rev 15062) +++ branches/SAMBA_4_0/source/build/smb_build/makefile.pm 2006-04-13 04:10:09 UTC (rev 15063) @@ -158,6 +158,8 @@ # For BSD make .PATH: \$(VPATH) + [EMAIL PROTECTED] + __EOD__ ); }
svn commit: samba r15064 - in branches/SAMBA_4_0/source/build/smb_build: .
Author: ab Date: 2006-04-13 04:14:18 + (Thu, 13 Apr 2006) New Revision: 15064 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15064 Log: Remove the change until I find proper solution Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm Changeset: Modified: branches/SAMBA_4_0/source/build/smb_build/makefile.pm === --- branches/SAMBA_4_0/source/build/smb_build/makefile.pm 2006-04-13 04:10:09 UTC (rev 15063) +++ branches/SAMBA_4_0/source/build/smb_build/makefile.pm 2006-04-13 04:14:18 UTC (rev 15064) @@ -156,10 +156,6 @@ DEFAULT_TEST_TARGET=$self-{config}-{DEFAULT_TEST_TARGET} -# For BSD make -.PATH: \$(VPATH) - [EMAIL PROTECTED] - __EOD__ ); }
svn commit: samba r15065 - in branches/SAMBA_4_0/source/lib/ldb/include: .
Author: tpot Date: 2006-04-13 04:19:27 + (Thu, 13 Apr 2006) New Revision: 15065 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=15065 Log: Remove duplicate prototype. Modified: branches/SAMBA_4_0/source/lib/ldb/include/ldb.h Changeset: Modified: branches/SAMBA_4_0/source/lib/ldb/include/ldb.h === --- branches/SAMBA_4_0/source/lib/ldb/include/ldb.h 2006-04-13 04:14:18 UTC (rev 15064) +++ branches/SAMBA_4_0/source/lib/ldb/include/ldb.h 2006-04-13 04:19:27 UTC (rev 15065) @@ -1055,7 +1055,6 @@ int ldb_attr_cmp(const char *attr1, const char *attr2); char *ldb_attr_casefold(void *mem_ctx, const char *s); int ldb_attr_dn(const char *attr); -char *ldb_dn_escape_value(void *mem_ctx, struct ldb_val value); /** Create an empty message