[Samba] How to preserve capital letter
Hi all, I'm not sure whether it is samba related, but I've got this situation: I'm sharing a clipper program with samba, and then user access it using dosemu installed in each workstation. The program runs fine, except, when it creates a temporary file, it creates the filename in small letter (not in capital letter when run in DOS). Seems that the program is having trouble with this filename differences. Can anyone give a clue? Thanks -- Fajar Priyanto | Reg'd Linux User #327841 | http://linux2.arinet.org 11:18:54 up 48 min, 2.6.11-1.1369_FC4 GNU/Linux public key: https://www.arinet.org/fajar-pub.key -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Problem adding printer using MSRPC
Hi, When I try to add a printer using APW, the printer gets added successfully. However, when I try to add a printer using the MS_RPC addprinter command, the script fails with access denied. Please let me know if I am doing anything wrong. Thanks, Guru. The addprinter vbscript dim oMaster, oPrinter set oMaster = CreateObject(PrintMaster.PrintMaster.1) set oPrinter = CreateObject(Printer.Printer.1) oPrinter.ServerName = \\abc.xyz.com oPrinter.PrinterName = Apple oPrinter.DriverName = Apple LaserWriter 8500 oPrinter.PortName= Samba printer port oPrinter.shareName = Apple oPrinter.Location = odi-lab oMaster.PrinterAdd(oPrinter) smb.conf [global] idmap uid = 7-20 idmap gid = 7-20 winbind enum users = no winbind enum groups = no winbind cache time = 10 winbind use default domain = yes printcap name = cups load printers = yes printing = cups cups options = raw force printername = yes lpq cache time = 0 log file = /local/local1/errorlog/samba.log max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 smb ports = 50139 local master = no domain master = no preferred master = no dns proxy = no template homedir = /local/local1/ template shell = /admin-shell client schannel = no printer admin = @printeradmin addprinter command = /usr/bin/addprinter1.pl guest account = nobody map to guest = bad password workgroup = workgroup name netbios name = netbios name wins server = winsserver ip password server = password server ip security = domain [print$] path = /state/samba/printers guest ok = yes browseable = yes read only = yes write list = @printeradmin force user = root force group = root [printers] comment = All Printers path = /local/local1/spool/samba browseable = no 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] Re: [SLE] SuSE 9.3 and Latest Binaries - Library Conflict
On Mon, Sep 12, 2005 at 04:30:38PM -0500, david rankin wrote: Mates, Still can't get the latest samba binaries to inatall on SuSE 9.3. I've downloaded them from the samba site and from ftp://ftp.primastasys.com/pub/Samba-Packages/ still no joy. The problem is library related: Use the ones from ftp://ftp.suse.com/pub/projects/samba/ Ciao, Marcus -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Problems installing printer driver
Hello, (please excuse poor translations of german Windows-GUI-items) a customer of ours has a strange problem trying to install a printer driver on the print$ share. The driver in question comes from http://www.kyocera.de/kyocera_n/german/downloads/downloads.html - choose 'Treiber' - choose 'Produkt Typ: Drucker', choose 'Produkt: FS-6020', choose 'Sprache: Deutsch' - 'Mini-KPDL-Win2K_XP-v8.2-DE.exe' (the 9th item of the top). This is a multi driver package, the driver in question is the one for a Kyocera FS-1118MFP(KPDL). The printer driver is installed on an XP Pro machine, the user has authenticated against samba as a person from the printer admin group. The user opens explorer - Network Neighbourhood - samba server - printers and fax machines. In the file menu, he choses server properties - drivers - add and tries to add the above mentioned driver. Some files are then being copied to the samba server, but then copying stops with a message Access Denied. The (reproducible) problem is a file which is tried to be copied to W32X86/: [2005/09/07 13:12:28, 5] smbd/open.c:open_file_shared1(1148) open_file_shared: read/write access requested for file W32X86/SET12.tmp on read only file [2005/09/07 13:12:28, 5] smbd/files.c:file_free(439) freed files structure 9190 (0 used) [2005/09/07 13:12:28, 10] smbd/trans2.c:set_bad_path_error(2191) set_bad_path_error: err = 13 bad_path = 0 [2005/09/07 13:12:28, 3] smbd/error.c:error_packet(105) error string = Permission denied [2005/09/07 13:12:28, 3] smbd/error.c:error_packet(129) error packet at smbd/trans2.c(2200) cmd=162 (SMBntcreateX) NT_STATUS_ACCESS_DENIED We've tried copying a file to that location using smbclient, which worked. Other printer drivers are no problem, either. And, strangly enough, this does not seem to be a problem with 3.0.7, but with both some older and newer versions (including .20). The printer$ section in smb.conf looks like this: [print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = root, Administrator,@Printer-Admins read only = No Anybody has an idea what the problem may be? Regards, Wolf -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Problems installing printer driver
Hello! The driver works on my installation. But I remember a case where a driver package contained read-only files. They have been created on the samba server but could never be removed ('cause they were read only;-) The PPD-Files (the driver only contains ppd-files) of this package _are_ read-only (Properties - Attributes - Write Protected). You might try to remove this flag on (should be) KM6020EG.PPD and repeat the installation. It seems, that samba creates a temporary read-only file (SET12.tmp) and fails to reopen it to move it or change some other properties. Just an idea! bye, Martin Wolf Wiegand wrote: Hello, (please excuse poor translations of german Windows-GUI-items) a customer of ours has a strange problem trying to install a printer driver on the print$ share. The driver in question comes from http://www.kyocera.de/kyocera_n/german/downloads/downloads.html - choose 'Treiber' - choose 'Produkt Typ: Drucker', choose 'Produkt: FS-6020', choose 'Sprache: Deutsch' - 'Mini-KPDL-Win2K_XP-v8.2-DE.exe' (the 9th item of the top). This is a multi driver package, the driver in question is the one for a Kyocera FS-1118MFP(KPDL). The printer driver is installed on an XP Pro machine, the user has authenticated against samba as a person from the printer admin group. The user opens explorer - Network Neighbourhood - samba server - printers and fax machines. In the file menu, he choses server properties - drivers - add and tries to add the above mentioned driver. Some files are then being copied to the samba server, but then copying stops with a message Access Denied. The (reproducible) problem is a file which is tried to be copied to W32X86/: [2005/09/07 13:12:28, 5] smbd/open.c:open_file_shared1(1148) open_file_shared: read/write access requested for file W32X86/SET12.tmp on read only file [2005/09/07 13:12:28, 5] smbd/files.c:file_free(439) freed files structure 9190 (0 used) [2005/09/07 13:12:28, 10] smbd/trans2.c:set_bad_path_error(2191) set_bad_path_error: err = 13 bad_path = 0 [2005/09/07 13:12:28, 3] smbd/error.c:error_packet(105) error string = Permission denied [2005/09/07 13:12:28, 3] smbd/error.c:error_packet(129) error packet at smbd/trans2.c(2200) cmd=162 (SMBntcreateX) NT_STATUS_ACCESS_DENIED We've tried copying a file to that location using smbclient, which worked. Other printer drivers are no problem, either. And, strangly enough, this does not seem to be a problem with 3.0.7, but with both some older and newer versions (including .20). The printer$ section in smb.conf looks like this: [print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = root, Administrator,@Printer-Admins read only = No Anybody has an idea what the problem may be? Regards, Wolf -- 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] SuSE 9.3 and Latest Binaries - Library Conflict
Hi Eric, On Mon, Sep 12, 2005 at 07:39:05PM -0400, Eric A. Hall wrote: On 9/12/2005 5:30 PM, david rankin wrote: Anybody got the binaries to work with 9.3??? Any other thoughts??? binaries from ftp://ftp.suse.com/pub/projects/samba/3.0/i386/9.3/ work fine here, other than guest access not working with ldap due to malformed queries in ldapsmb could you give me more information where and how ldapsmb fails for you ? Guenther -- Günther DeschnerGPG-ID: 8EE11688 Novell / SUSE LINUX [EMAIL PROTECTED] Samba Team [EMAIL PROTECTED] pgpG02ge8mCWh.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
[Samba] Re: Can't fetch domain SID for name: HostName
try to run net getlocalsid before the samba using passdb backend = ldap I means run samba using passdb backend = smbpasswd and run net getlocalsid to obtain the SID for the host. then run the samba using passdb backend = ldap Cheers, EMILIO ANTONIO HERRERA TRUJILLO [EMAIL PROTECTED] ??? news:[EMAIL PROTECTED] ???... Hi there!! I got this message when I run net getlocalsid: Can't fetch domain SID for name: HostName I don't understand why?, because I have my ldap and smb services running well. I ran smbpasswd -w password. What does this message means? I have almost 10 users (of 550 aprox.) that can't login to the domain defined in smb.conf. And when I want to create a new one, I got this message: User SID already owned by uid=XXX,ou=Users,dc=domain,dc=com where XXX was the last one added to the openldap. Pls help !!! Saludos Emilio Herrera Lima -Perú -- 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] Samba Concerns
I am new to Samba and a beginner of Solaris 10 as well. I have installed solaris 10 on an X86 platform and its good that samba is already bundled so I wanted to access the files on my windows network. What I did is to click on network places, Windows Network SMB and I can see the computers on my Windows network. When I tried to access a particular computer I am prompted of ; The folder cannot be displayed. You do not have permission necessary to view the contents of Windows network. I know it is something to do with the permission settings. What adjustment I should do. Thanks, Angelyn -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Locked prf files within Roaming Profiles
Hello everybody, we have the following problem here: We've set up a complete samba domain (based on 3.0.20 now) which is running very fine including ldap backend. But we've still problems using roaming profiles (especially prf*tmp) files. We already tested the veto oplock directive with /prf*.tmp/ and even /*.tmp/ but these files remain always locked. Only root can delete them. Here's the smb.conf of the share, were profiles are stored: [PROFILE01$] nt acl support = yes dos filetimes = yes dos filetime resolution = yes browseable = no writable = yes inherit permissions = yes hide unreadable = yes admin users = ... path = /samba/ages003/data/GES_AZ hide files = /lost+found/ # hide dot files = yes comment = PROFILE SHARE # hide special files = yes inherit acls = yes root preexec = /usr/sbin/samba/create_profile_dirs.sh %u GES_AZ case sensitive = True default case = lower preserve case = no short preserve case = no veto oplock files = /*.tmp/*.bat/ We don't know why the prf*tmp remain locked. Even accessing the profile share directly and trying to delete them failes. If you need more information tell me this. Mit freundlichem Gruß, Dirk Laurenz Systems Engineer PSO - Professional Service Organisation Fujitsu Siemens Computers Hildesheimer Strasse 25 30880 Laatzen Germany Telephone: +49 (511) 84 89 - 18 08 Telefax:+49 (511) 84 89 - 25 18 08 Mobile: +49 (170) 22 10 781 Email: mailto:[EMAIL PROTECTED] Internet: http://www.fujitsu-siemens.com http://www.fujitsu-siemens.de/rl/servicesupport/itdienstleistungen/competencecenter.html *** -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba PDC Config Error
Hello Guys, I am having an issue trying to populate the database. If anyone can give me a clue of what I can do to resolve this it would be great. Thanks Adrian Sender. Please email me if you know how to resolve this : [EMAIL PROTECTED] Here is the error. [EMAIL PROTECTED] sbin]# ./smbldap-populate -a root -k 0 -m 0 Populating LDAP directory for domain DDESIGN (S-1-5-21-2208352985-4221087891-475549611) (using builtin directory structure) adding new entry: dc=ddesign,dc=com failed to add entry: modifications require authentication at ./smbldap-populate line 471, GEN1 line 2. adding new entry: ou=People,dc=ddesign,dc=com failed to add entry: modifications require authentication at ./smbldap-populate line 471, GEN1 line 3. adding new entry: ou=Groups,dc=ddesign,dc=com failed to add entry: modifications require authentication at ./smbldap-populate line 471, GEN1 line 4. adding new entry: ou=People,dc=ddesign,dc=com failed to add entry: modifications require authentication at ./smbldap-populate line 471, GEN1 line 5. adding new entry: ou=Idmap,dc=ddesign,dc=com failed to add entry: modifications require authentication at ./smbldap-populate line 471, GEN1 line 6. adding new entry: uid=root,ou=People,dc=ddesign,dc=com failed to add entry: modifications require authentication at ./smbldap-populate line 471, GEN1 line 7. adding new entry: uid=nobody,ou=People,dc=ddesign,dc=com failed to add entry: modifications require authentication at ./smbldap-populate line 471, GEN1 line 8. adding new entry: cn=Domain Admins,ou=Groups,dc=ddesign,dc=com failed to add entry: modifications require authentication at ./smbldap-populate line 471, GEN1 line 9. adding new entry: cn=Domain Users,ou=Groups,dc=ddesign,dc=com failed to add entry: modifications require authentication at ./smbldap-populate line 471, GEN1 line 10. adding new entry: cn=Domain Guests,ou=Groups,dc=ddesign,dc=com failed to add entry: modifications require authentication at ./smbldap-populate line 471, GEN1 line 11. adding new entry: cn=Domain Computers,ou=Groups,dc=ddesign,dc=com failed to add entry: modifications require authentication at ./smbldap-populate line 471, GEN1 line 12. adding new entry: cn=Administrators,ou=Groups,dc=ddesign,dc=com failed to add entry: modifications require authentication at ./smbldap-populate line 471, GEN1 line 16. adding new entry: cn=Account Operators,ou=Groups,dc=ddesign,dc=com failed to add entry: modifications require authentication at ./smbldap-populate line 471, GEN1 line 18. adding new entry: cn=Print Operators,ou=Groups,dc=ddesign,dc=com failed to add entry: modifications require authentication at ./smbldap-populate line 471, GEN1 line 19. adding new entry: cn=Backup Operators,ou=Groups,dc=ddesign,dc=com failed to add entry: modifications require authentication at ./smbldap-populate line 471, GEN1 line 20. adding new entry: cn=Replicators,ou=Groups,dc=ddesign,dc=com failed to add entry: modifications require authentication at ./smbldap-populate line 471, GEN1 line 21. adding new entry: sambaDomainName=DDESIGN,dc=ddesign,dc=com failed to add entry: modifications require authentication at ./smbldap-populate line 471, GEN1 line 21. Please provide a password for the domain root: No such object at /opt/IDEALX/sbin//smbldap_tools.pm line 341. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] wbinfo returns Error looking up domain users
Hi all, We have the following setup : PDC (samba/ldap) BDC's this was all originally setup on 2.0.9 and was working fine. We upgraded to 2.0.20 a few days now wbinfo doens't work. We use usrmgr.exe for admin and no users show up and only the BULTIN groups show up. zeus ~ # wbinfo -u Error looking up domain users zeus ~ # wbinfo -g BUILTIN/Print Operators BUILTIN/Backup Operators BUILTIN/Replicators zeus ~ # wbinfo -t checking the trust secret via RPC calls failed error code was (0x0) Could not check secret zeus ~ # wbinfo -m zeus ~ # As you can see it seems like winbind doesn't seem to getting details from the PDC. We setup the wins server on the PDC and then BDC talks to WINS on PDC. this was working before upgrading. I have noticed a few posts regarding this problem, but no responses apart from one stating NOT to use winbind on PDC. We have moved it but still the same result. I'm busy downgrading to 2.0.14 to see if this will help for now. Any Ideas ? -- Henti Smith [EMAIL PROTECTED] +27 82 958 2525 http://www.geekware.co.za DISCLAIMER : Unauthorised use of characters, images, sounds, odors, severed limbs, noodles, wierd dreams, strange looking fruit, oxygen, and certain parts of Jupiter are strictly forbidden. If I find you violating, or molesting my property in any way, I will employ a pair of burly convicts to find you, kidnap you, and perform god-awful sexual experiments on you until you lose the ability to sound out vowels. I don't know why you are still reading this, but by doing so you have proven that you have far too much time on your hands, and you should go plant a tree, or read a book or something. - http://www.ctrlaltdel-online.com/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] wbinfo returns Error looking up domain users
Hi, Have you tried this patches? http://www.samba.org/samba/patches/ They solved my usermanager problems. Best Regards, Bruno Guerreiro -Original Message- From: Henti Smith [mailto:[EMAIL PROTECTED] Sent: terça-feira, 13 de Setembro de 2005 0:03 To: samba@lists.samba.org Subject: [Samba] wbinfo returns Error looking up domain users Hi all, We have the following setup : PDC (samba/ldap) BDC's this was all originally setup on 2.0.9 and was working fine. We upgraded to 2.0.20 a few days now wbinfo doens't work. We use usrmgr.exe for admin and no users show up and only the BULTIN groups show up. zeus ~ # wbinfo -u Error looking up domain users zeus ~ # wbinfo -g BUILTIN/Print Operators BUILTIN/Backup Operators BUILTIN/Replicators zeus ~ # wbinfo -t checking the trust secret via RPC calls failed error code was (0x0) Could not check secret zeus ~ # wbinfo -m zeus ~ # As you can see it seems like winbind doesn't seem to getting details from the PDC. We setup the wins server on the PDC and then BDC talks to WINS on PDC. this was working before upgrading. I have noticed a few posts regarding this problem, but no responses apart from one stating NOT to use winbind on PDC. We have moved it but still the same result. I'm busy downgrading to 2.0.14 to see if this will help for now. Any Ideas ? -- Henti Smith [EMAIL PROTECTED] +27 82 958 2525 http://www.geekware.co.za DISCLAIMER : Unauthorised use of characters, images, sounds, odors, severed limbs, noodles, wierd dreams, strange looking fruit, oxygen, and certain parts of Jupiter are strictly forbidden. If I find you violating, or molesting my property in any way, I will employ a pair of burly convicts to find you, kidnap you, and perform god-awful sexual experiments on you until you lose the ability to sound out vowels. I don't know why you are still reading this, but by doing so you have proven that you have far too much time on your hands, and you should go plant a tree, or read a book or something. - http://www.ctrlaltdel-online.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
[Samba] USERMANAGER
Hi, has this patch been compiled into any rpm packages for suse sles9 (x86_32 and x86_64) http://groups.google.de/group/mailing.unix.samba/browse_frm/thread/e064e314723ea14b/d0dbc6730dcf461f?lnk=stq=USRMGR.EXE+doesn%27t+work+anymore.rnum=1hl=de#d0dbc6730dcf461f Mit freundlichem Gruß, Dirk Laurenz Systems Engineer PSO - Professional Service Organisation Fujitsu Siemens Computers Hildesheimer Strasse 25 30880 Laatzen Germany Telephone: +49 (511) 84 89 - 18 08 Telefax:+49 (511) 84 89 - 25 18 08 Mobile: +49 (170) 22 10 781 Email: mailto:[EMAIL PROTECTED] Internet: http://www.fujitsu-siemens.com http://www.fujitsu-siemens.de/rl/servicesupport/itdienstleistungen/competencecenter.html *** -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Accessing /home/user properly from Win2003 Server share
Hi all, In answer to my own (somewhat confused) question. I've done further research on this and I think I've got to use Windows Services for UNIX from Microsoft to achieve this. The network we have is now going to be: One PDC running Windows 2003 Server and providing Exchange Server to the company. One Server Dell PowerVault with 2TB HDs running Windows 2003 Server plus Microsoft Services for UNIX. One or both of these windows servers will be running NIS/NFS to provide share and authentication information for our remaining farm of Linux boxes running RHEL v4 and running Cadence and similar tools. All desktops for the staff are actually WinXP machines. Currently it looks like Samba won't get used at all, except to share drives between the Farm Linux boxes themselves. This is to take advantage of the large local drives that exist on each of the Linux machines as temporary storage. We initially tried bringing up OpenLDAP and Samba on RHEL v4, but couldn't get the passwords to sync properly. This also, I think, may have been a headache, to authenticate Exchange against. Sucks, I've been looking into samba providing the solution all along. If this Services for Unix works then it means we'll be running almost exclusively Microsoft for server uses. Please feel free to add any comments. Kind Regards, Steve Hobbs From: [EMAIL PROTECTED] on behalf of Steve Hobbs Sent: Mon 9/12/2005 5:58 PM To: samba@lists.samba.org Subject: [Samba] Accessing /home/user properly from Win2003 Server share Hi, After a major fight with Samba and Winbind (and my confusion), I finally have my a RHEL v4.0 ES box successfully authenticating against the Active Directory (ads) on a Windows 2003 Server. I installed the latest version of Samba in the process (3.0.20) and SELinux started complaining so I've disabled that for now. I can now telnet, ssh, su, etc... as any of my windows users on the Linux Server. I'll supply the full /etc/smb.conf and /etc/krb5.conf and other related settings to this list once I've got more stable. (There are some of the links I used at the end of this mail.) Now my cry for help. Our company has bought a Dell Poweredge storage box running Windows 2003 Server with 2TB of disc space. This will be used for both Windows and Linux shares (Exchange, Windows Home, Windows Project, /home, /project, etc...). We want to mount both the user and a project directory from this box on to several linux boxes. It is well documented on how to set up a Linux box as a server, but how do I mount [homes] shares with the correct permissions from the Windows server? I also have a /project area, which anyone can access, but all of the files need to have correct permissions as each user creates/accesses them. Can someone please point me in the right direction here? A second question. How using my authentication method, do I customize the shell that each account uses (not just /bin/bash)? Here's my smb.conf for my setup [global] workgroup = DomainName realm = RealmName preferred master = no server string = ServerName with Samba (%v) on %L security = ads password server = Win2003PasswordServerName encrypt passwords = yes log level = 3 log file = /var/log/samba/%m max log size = 50 winbind separator = + allow trusted domains = no idmap backend = idmap_rid:DomainName=500-1 idmap uid = 500-1 idmap gid = 500-1 winbind enum users = yes winbind enum groups = yes winbind use default domain = yes template shell = /bin/tcsh template homedir = /home/%U Thanks in Advance, Steve Hobbs Diablo Technologies PS Useful links http://www.enterprisenetworkingplanet.com/netos/article.php/3487081 http://www.enterprisenetworkingplanet.com/netos/article.php/3502441 http://justlinux.com/forum/archive/index.php/t-118512.html -- 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] ldapsearch -x doesn't work for me
Hello, i can not use ldapsearch -x on my BDC Samba/openLDAP Server. getent group shows me all database entries, but ldapsearch -x and a ldapbrowser 2.8.2 from http://www-unix.mcs.anl.gov/~gawor/ldap/download.html , which can not be connected to BDC, but to the PDC, don't work for me. Any idea? Thanks a lot and best regards Andreas -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Unable to take ownership of directories
I'm using samba as a win2000 domain member and providing some files using posix ACLs My share configuration is like that: [software] path = /srv/software public = yes read only = no printable = no group = root directory security mask = 0777 directory mask = 0770 create mask = 0660 store dos attributes = no dos filemode = yes inherit permissions = yes inherit acls = yes hide unreadable = yes but I discovered a strange problem: Using the windows native acl tool I'm able to take file ownership of each file in my share bot not of any directory. Error message is access denied. The acls of all my files and directories look like that: user::rwx group::rwx group:edv.team:rwx mask::rwx other::--- default:user::rwx default:group::rwx default:group:edv.team:rwx default:mask::rwx default:other::--- The user who wants to take ownership of directories belongs to the edv.team group. Any ideas? Maybe something with the different directory/security/force masks? I'm not very familar with them. Looking forward to your answers. Jan -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] ldapsearch -x doesn't work for me
Andreas Bauer schrieb: Hello, i can not use ldapsearch -x on my BDC Samba/openLDAP Server. getent group shows me all database entries, but ldapsearch -x and a ldapbrowser 2.8.2 from http://www-unix.mcs.anl.gov/~gawor/ldap/download.html , which can not be connected to BDC, but to the PDC, don't work for me. Any idea? Is /etc/ldap.conf setup correctly? Some apps search for /etc/openldap/ldap.conf or /usr/local/etc/openldap/ldap.conf (you can make copies or symlinks). You can also try to assign hostaddress, searchbase etc. with ldapsearch's command line parameters directly. Thomas -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] SuSE 9.3 and Latest Binaries - Library Conflict
On 9/13/2005 4:43 AM, Guenther Deschner wrote: On Mon, Sep 12, 2005 at 07:39:05PM -0400, Eric A. Hall wrote: binaries from ftp://ftp.suse.com/pub/projects/samba/3.0/i386/9.3/ work fine here, other than guest access not working with ldap due to malformed queries in ldapsmb could you give me more information where and how ldapsmb fails for you ? I can't do anything that explicitly requires guest access (browse the domain, login to the domain, etc). Stuff that requires an account works just fine. Judging from these lines in the log.smbd file: | [2005/09/01 01:00:02, 4] lib/smbldap.c:smbldap_open(869) | The LDAP server is succesfully connected | [2005/09/01 01:00:02, 4] passdb/pdb_ldap.c:ldapsam_getsampwnam(1335) | ldapsam_getsampwnam: Unable to locate user [] count=0 and the output from ldap log file: | Sep 1 01:00:02 rhino slapd[8360]: conn=123 op=2 SRCH | base=dc=labs,dc=ntrg,dc=com scope=2 deref=0 | filter=((?=undefined)(objectClass=sambaSamAccount)) it seems that lLDAP ookups for the guest account have a malformed LDAP search filter (?=undefined) which is apparently generated by pdb_ldap.c Regular users work fine; only the guest account lookups are broken. I've attached the original message with full logs. -- Eric A. Hallhttp://www.ehsco.com/ Internet Core Protocols http://www.oreilly.com/catalog/coreprot/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: ldapsearch -x doesn't work for me
i can not use ldapsearch -x on my BDC Samba/openLDAP Server. getent group shows me all database entries, but ldapsearch -x and a ldapbrowser 2.8.2 from http://www-unix.mcs.anl.gov/~gawor/ldap/download.html , which can not be connected to BDC, but to the PDC, don't work for me. Any idea? Sure but please note it has nothing to do with samba. Is /etc/ldap.conf setup correctly? Some apps search for /etc/openldap/ldap.conf or /usr/local/etc/openldap/ldap.conf (you can make copies or symlinks). You can also try to assign hostaddress, searchbase etc. with ldapsearch's command line parameters directly. To find out what is your ldapsearch searching for do: strings `which ldapsearch` | grep \\.conf Cheers, -- Michal Kurowski [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] SuSE 9.3 and Latest Binaries - Library Conflict
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 david rankin wrote: | Mates, | |Still can't get the latest samba binaries to inatall on SuSE 9.3. | I've downloaded them from the samba site and from | ftp://ftp.primastasys.com/pub/Samba-Packages/ still no joy. The problem | is library related: | | nemesis:/home/david/Documents/linux/rpms/samba320 # rpm -Uvh * | warning: cifs-mount-3.0.20-0.1.i586.rpm: V3 DSA signature: NOKEY, key ID | 414a57c3 | error: Failed dependencies: |perl-ldap is needed by ldapsmb-1.33-3 |liblber.so.2 is needed by libsmbclient3-3.0.20-1 |libldap.so.2 is needed by libsmbclient3-3.0.20-1 |liblber.so.2 is needed by samba3-3.0.20-1 |libldap.so.2 is needed by samba3-3.0.20-1 |liblber.so.2 is needed by samba3-client-3.0.20-1 |libldap.so.2 is needed by samba3-client-3.0.20-1 |libreadline.so.4 is needed by samba3-client-3.0.20-1 |libmysqlclient.so.12 is needed by samba3-pdb-3.0.20-1 |python 2.3.99 is needed by samba3-python-3.0.20-1 |liblber.so.2 is needed by samba3-python-3.0.20-1 |libldap.so.2 is needed by samba3-python-3.0.20-1 |liblber.so.2 is needed by samba3-winbind-3.0.20-1 |libldap.so.2 is needed by samba3-winbind-3.0.20-1 | | Now in SuSE 9.3, the installed libraries are: I think you might just be missing some symlinks for libldap.so and liblber.so cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDJueaIR7qMdg1EfYRAg+8AJ9nbfM6aVZZ8Bxb0U+gzp+t8DtzFQCfW0dG BIId4D9rMCUzXHEehqVyiZM= =yKDM -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: [SLE] SuSE 9.3 and Latest Binaries - Library Conflict
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcus Meissner wrote: | On Mon, Sep 12, 2005 at 04:30:38PM -0500, david rankin wrote: |Mates, | | Still can't get the latest samba binaries to inatall on SuSE 9.3. I've |downloaded them from the samba site and from |ftp://ftp.primastasys.com/pub/Samba-Packages/ still no joy. The problem is |library related: | | Use the ones from ftp://ftp.suse.com/pub/projects/samba/ These are identical to the ones posted on samba.org Lars maintains both sets last time I checked. cheers, jerry = Alleviating the pain of Windows(tm) --- http://www.samba.org GnuPG Key- http://www.plainjoe.org/gpg_public.asc I never saved anything for the swim back. Ethan Hawk in Gattaca -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDJufMIR7qMdg1EfYRAob5AKC77chIUaKf+E7I6ZiXmWBlZqvPLwCglo7P +AYpgNayPMdriG9nx5YF50I= =GWVa -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Authentication against AD?
I am having a hard time getting Samba to authentication correctly against a Windows Active Directory setup. Here is a snap of the smb.conf [global] passdb backend = ldapsam security = domain password server = server1.com server2.com prefered master = No local master = no hide unreadable = yes wins support = no winbind use default domain = yes domain master = No netbios name = samba-newb workgroup = scl prefered master = no dns proxy = no idmap uid = 15000-2 idmap gid = 15000-2 realm = server.com socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$ use spnego = yes server string = samba-newb update encrypted = yes domain logons = yes winbind separator = + winbind enum users = yes winbind enum groups = yes encrypt passwords = yes os level = 20 template shell = /bin/bash template homedir = /home/%D/%U [newb] comment = newb inherit acls = Yes path = /usr/local/files/ read only = no force group = users force user = users guest ok = no I can run the net ads join command which works fine, but if I try to authentication without a local account I am recieving errors. Any assistance or pointers is appreciated. -- Jason Gerfen Student Computing Labs, University Of Utah [EMAIL PROTECTED] J. Willard Marriott Library 295 S 1500 E, Salt Lake City, UT 84112-0860 801-585-9810 My girlfriend threated to leave me if I went boarding... I will miss her. ~ DIATRIBE aka FBITKK -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Authentication against AD?
On Tuesday 13 September 2005 11:09 am, Jason Gerfen wrote: I am having a hard time getting Samba to authentication correctly against a Windows Active Directory setup. Here is a snap of the smb.conf [global] passdb backend = ldapsam security = domain password server = server1.com server2.com prefered master = No local master = no hide unreadable = yes wins support = no winbind use default domain = yes domain master = No netbios name = samba-newb workgroup = scl prefered master = no dns proxy = no idmap uid = 15000-2 idmap gid = 15000-2 realm = server.com socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$ use spnego = yes server string = samba-newb update encrypted = yes domain logons = yes winbind separator = + winbind enum users = yes winbind enum groups = yes encrypt passwords = yes os level = 20 template shell = /bin/bash template homedir = /home/%D/%U [newb] comment = newb inherit acls = Yes path = /usr/local/files/ read only = no force group = users force user = users guest ok = no I can run the net ads join command which works fine, but if I try to authentication without a local account I am recieving errors. Any assistance or pointers is appreciated. -- Jason Gerfen Student Computing Labs, University Of Utah [EMAIL PROTECTED] J. Willard Marriott Library 295 S 1500 E, Salt Lake City, UT 84112-0860 801-585-9810 My girlfriend threated to leave me if I went boarding... I will miss her. ~ DIATRIBE aka FBITKK Jason, It looks like your smb.conf is set up more for a Samba PDC than for a member server in a Windows AD. Are you looking to make your Samba server a member server? If so: security = ads wins server = ip.of.your.winsserver I don't believe you need: passdb backend = ldapsam Is kerberos installed, and do you have krb5.conf set up properly? Dimitri -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Config problems with profiles?
I have tried setting the ntconfig.pol file to 777 no joy I have tried setting the ntconfig.pol file to username:users no joy No matter what I get back Permission Denied, Error Opening File ntconfig.pol? Any Ideas why ?? -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.10.24/100 - Release Date: 9/13/2005 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Authentication against AD?
Jason Gerfen wrote: I am having a hard time getting Samba to authentication correctly against a Windows Active Directory setup. Here is a snap of the smb.conf [global] passdb backend = ldapsam security = domain These two jump out at me. Should be: security = ads And since you're using domain/ads, you shouldn't use passdb backend. -- Rex -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Authentication against AD?
Jason Gerfen wrote: I am having a hard time getting Samba to authentication correctly against a Windows Active Directory setup. Here is a snap of the smb.conf [global] passdb backend = ldapsam security = domain password server = server1.com server2.com prefered master = No local master = no hide unreadable = yes wins support = no winbind use default domain = yes domain master = No netbios name = samba-newb Oh, and security=ads mixed with netbios name = didn't work (for me at least), last time I tried. See https://bugzilla.samba.org/show_bug.cgi?id=2727 -- Rex -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Different parsing alg. on smbwinbind for separator
Speculation?? Any developers here want to comment? Is this a known bug? It must be that the two programs (winbindd smbd) use different algorithms to parse the winbind separator since winbind definitely grabs the first character whatever it might be while the samba program (I assume it is smbd) can parse the quote character () as a quote and grab the character contained within, e.g. the restart after changing separator to +. (I'm not as concerned as to what causes winbind to reread the smb.conf file after running for awhile. If the parsing worked okay then that wouldn't be a problem.) I'm running my server in domain mode. jeff Jeffrey B. Green wrote: Hi, Has anyone seen this behavior before: - Set winbind separator = + - Start winbind, start samba - cannot authenticate users - change winbind separator = + - Restart samba - Authentication works okay for several days - somehow after several days, the separator gets changed to , i.e. the double quote, at which point it no longer authenticates users okay. jeff -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Locked prf files within Roaming Profiles
On Tue, Sep 13, 2005 at 11:29:37AM +0200, [EMAIL PROTECTED] wrote: Hello everybody, we have the following problem here: We've set up a complete samba domain (based on 3.0.20 now) which is running very fine including ldap backend. But we've still problems using roaming profiles (especially prf*tmp) files. We already tested the veto oplock directive with /prf*.tmp/ and even /*.tmp/ but these files remain always locked. Only root can delete them. Here's the smb.conf of the share, were profiles are stored: [PROFILE01$] nt acl support = yes dos filetimes = yes dos filetime resolution = yes browseable = no writable = yes inherit permissions = yes hide unreadable = yes admin users = ... path = /samba/ages003/data/GES_AZ hide files = /lost+found/ # hide dot files = yes comment = PROFILE SHARE # hide special files = yes inherit acls = yes root preexec = /usr/sbin/samba/create_profile_dirs.sh %u GES_AZ case sensitive = True default case = lower preserve case = no short preserve case = no veto oplock files = /*.tmp/*.bat/ We don't know why the prf*tmp remain locked. Even accessing the profile share directly and trying to delete them failes. If you need more information tell me this. An smbstatus output would help to start... Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Cannot login to share from winxp
I'm using Fedora and have setup a samba share on the server. I followed the instructions at: http://www.reallylinux.com/docs/sambaserver.shtml I am able to see the samba server through nwk nh but when I try to access the share I get this error message: \\server\share is not accessable. You might not have permission to use this network resource. etc... The /var/log/samba/machine.log contains: smbd/service.c:make_connection-snum(615) '/home/shareddir' does not exist or is not a directory, when connecting to [userid] The shared dir is my linux users home dir and so it exists and it is a directory. Can someone point me in the right direction please... = Kevin W. Gagel Network Administrator Information Technology Services (250) 562-2131 local 448 --- The College of New Caledonia, Visit us at http://www.cnc.bc.ca Virus scanning is done on all incoming and outgoing email. Anti-spam information for CNC can be found at http://avas.cnc.bc.ca --- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Different parsing alg. on smbwinbind for separator
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey B. Green wrote: | Speculation?? Any developers here want to comment? Is this a known bug? | It must be that the two programs (winbindd smbd) use different | algorithms to parse the winbind separator since winbind definitely grabs | the first character whatever it might be while the samba program (I | assume it is smbd) can parse the quote character () as a quote and grab | the character contained within, e.g. the restart after changing | separator to +. (I'm not as concerned as to what causes winbind to | reread the smb.conf file after running for awhile. If the parsing worked | okay then that wouldn't be a problem.) | | I'm running my server in domain mode. | | jeff | | Jeffrey B. Green wrote: | | Hi, | | Has anyone seen this behavior before: | | - Set winbind separator = + | - Start winbind, start samba | - cannot authenticate users | - change winbind separator = + | - Restart samba | - Authentication works okay for several days | - somehow after several days, the separator gets changed to , i.e. | the double quote, at which point it no longer authenticates users okay. That's a broken config. The winbind separator is a single character. There's a lot of code that does snprintf( , %s%c%s, domain, *lp_winbind_separator(), user); That's what you are hitting. Fix smb.conf. cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDJwkcIR7qMdg1EfYRAh8QAKDQGSwpDqxovOKTf4TttpML6qMXlgCfZ1tl iK05QLxgIc03vya0NB2B3I0= =G7B2 -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] net rpc shutdown does not work
Hello everyone, using Samba 3.0.20, the net rcp shutdown command does not work. I use /usr/local/samba/bin/net rpc shutdown --server=MYCLIENT --user=DOMAIN_ADMIN_USER and the result I get back is [2005/09/09 18:00:15, 0, effective(0, 0), real(0, 0)] utils/net_rpc.c:rpc_init_shutdown_internals(4485) Shutdown of remote machine failed! [2005/09/09 18:00:15, 0, effective(0, 0), real(0, 0)] utils/net_rpc.c:rpc_reg_shutdown_internals(4555) Shutdown of remote machine failed! Using the old 3.0.14a rpcclient with the command rpcclient MYCLIENT -c shutdowninit -t 15 -U DOMAIN_ADMIN_USER just works fine. I also tried granting my admin user the shutdown privilege, but it does not help either. If you need any debug logs, let me know. Client systems are XP Pro SP2. Filed as Bug 3080. Thanks Florian -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] mass-adding users with pdbedit or smbpasswd leads to long delay
Hello everyone, Mass-adding users with pdbedit or smbpasswd leads to long delay. The system is fast enough, however, it takes one second per user. Might there be any (hidden) delay in these tools? The command to add the users is: ( echo $2 ; echo $2 ) | /usr/local/samba/bin/smbpasswd -a $1 -s /usr/local/samba/bin/pdbedit -r -u $1 -f $3 $4 whereas $1 is the logon name, $3 and $4 are the users first and last name. Filed as bug 3081. Thanks Florian -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] mass-adding users with pdbedit or smbpasswd leads to long delay
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Florian Effenberger wrote: | Hello everyone, | | Mass-adding users with pdbedit or smbpasswd leads to long delay. The | system is | fast enough, however, it takes one second per user. | | Might there be any (hidden) delay in these tools? If you are using an ldap backend, then it is possible. cheers, jerry = Alleviating the pain of Windows(tm) --- http://www.samba.org GnuPG Key- http://www.plainjoe.org/gpg_public.asc I never saved anything for the swim back. Ethan Hawk in Gattaca -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDJwqGIR7qMdg1EfYRAjsVAKDV6LwhOP2Xqi7b4uqE+OQKGe8qUACggeQ1 Y4VI+D6h5/Y9CobwPSzoXdA= =efRm -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] MMC plugin with Samba
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pseudomizer wrote: | Hello, | | | | Can I use the Microsoft MMC plugin to manage samba | instances like creating shares, etc.? If not, | is this on the roadmap? If yes, how? Yes. managing files and printers works in the current code. See the docs for more details. cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDJwrOIR7qMdg1EfYRAukSAKCr/cJxrsJW9Vv1/Kr++NZNGkjfhQCfey/a TxiMsbKXro/bybeRLMOL3Bg= =HGWZ -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] mass-adding users with pdbedit or smbpasswd leads to long delay
Hi Jerry, If you are using an ldap backend, then it is possible. I use pdb_mysql (I know, experimental...). Don't know if this is a general pdbedit problem or if it depends on the module. Thanks Florian -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Can't see windows shares by name
Has no one had this problem before ? I know I have not seen many posts on google groups about it .. but I thought for sure someone here could help. I am really stuck. Peter Peter Marshall wrote: Hello all, I am having a small problem with a bsd box of mine. Using the file manager in kde, I can type \\ip_address and get prompted for a username and password for the coresponding server on my domain. However, When I type, \\servername, I again get prompted for a username and password, but it gets rejected. I think it is having problems looking up the name ... which is kind of strange to me as I can ping the server by name. Does any one have an idea how to fix this problem .. I googled for a bit but was unable to find a solution. Thanks Peter -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] mass-adding users with pdbedit or smbpasswd leads to long delay
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Florian Effenberger wrote: | Hi Jerry, | |If you are using an ldap backend, then it is |possible. | | I use pdb_mysql (I know, experimental...). Don't know | if this is a general pdbedit problem or if it depends | on the module. Can you reproduce the delays with tdbsam? cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDJxLYIR7qMdg1EfYRAlQzAKDfVuTkycYl2cZ+Aq2VYhJL6gKyjACg0hwU P5eUX2N1jwxbG7x2k5X5jmQ= =poDI -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Different parsing alg. on smbwinbind for separator
Thanks for the reply. I was indeed assuming that I was doing something wrong with the config, however what I was trying to point out was the inconsistency between the two programs in handling that item. I.e. if it is a single character, then both programs should be grabbing the same thing, the same character. They are doing something different in reading that attribute from the configuration file. jeff Gerald (Jerry) Carter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey B. Green wrote: | Speculation?? Any developers here want to comment? Is this a known bug? | It must be that the two programs (winbindd smbd) use different | algorithms to parse the winbind separator since winbind definitely grabs | the first character whatever it might be while the samba program (I | assume it is smbd) can parse the quote character () as a quote and grab | the character contained within, e.g. the restart after changing | separator to +. (I'm not as concerned as to what causes winbind to | reread the smb.conf file after running for awhile. If the parsing worked | okay then that wouldn't be a problem.) | | I'm running my server in domain mode. | | jeff | | Jeffrey B. Green wrote: | | Hi, | | Has anyone seen this behavior before: | | - Set winbind separator = + | - Start winbind, start samba | - cannot authenticate users | - change winbind separator = + | - Restart samba | - Authentication works okay for several days | - somehow after several days, the separator gets changed to , i.e. | the double quote, at which point it no longer authenticates users okay. That's a broken config. The winbind separator is a single character. There's a lot of code that does snprintf( , %s%c%s, domain, *lp_winbind_separator(), user); That's what you are hitting. Fix smb.conf. cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDJwkcIR7qMdg1EfYRAh8QAKDQGSwpDqxovOKTf4TttpML6qMXlgCfZ1tl iK05QLxgIc03vya0NB2B3I0= =G7B2 -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Building a new machine
We recently suffered a server loss, during the power an unforgiving power outage. I built a new machine, copied over all information contained in the home directory, and also copied shadow, shadow passwd, groups, passwd. I was able to set the permissions and ownership they way it was on the old server, and everything looked well. However when I asked the users to log in, they couldn't. Is there a file I should have copied over, that would trick these machines into thinking they were authenticating to the old samba server? We are running debian sarge on the 2.6.8 kernel and samba version 3.0.14a-3. All help is appreciated, thank you in advance. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Roaming profile : taking forever to login /log off
Hello everybody, We are using SMB as PDC and roaming profile. but login /log off are taking 15 min (200 MB) on our GB network. when I use tcpdump to monitor SMB on the client and the server , I can see that the copy hang during several minutes. our stations : win xp sp2 (webclient disabled) our smb serveur : samba-3.0.9 here is my smb.conf : # Global parameters [global] workgroup = DOMAIN server string = DOMAIN PDC Server interfaces = IP passdb backend = ldapsam:ldap://ldap-master.lan.lexum.pri/ passwd program = /usr/local/sbin/krb5_update_pwd.pl -u %u passwd chat = *Password:* %n\n *Again:* %n\n *Changed* username map = /etc/samba/smbusers unix password sync = Yes log level = 10 log file = /var/log/samba/%m.log max log size = 50 name resolve order = wins lmhosts bcast host dns time server = Yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = /etc/printcap add user script = /usr/local/sbin/smbldap-useradd -m %u delete user script = /usr/local/sbin/smbldap-userdel %u add group script = /usr/local/sbin/smbldap-groupadd -p %g add user to group script = /usr/local/sbin/smbldap-groupmod -m %u %g delete user from group script = /usr/local/sbin/smbldap-groupmod -x %u set primary group script = /usr/local/sbin/smbldap-usermod -g %g %u add machine script = /usr/local/sbin/smbldap-useradd -t 5 -w %u logon path = \\%L\%U\windows logon drive = Z: logon home = \\%L\%U domain logons = Yes os level = 33 preferred master = Yes domain master = Yes dns proxy = No wins support = Yes ldap admin dn = cn=samba,ou=LdapSystem,dc=lan,dc=lexum,dc=pri ldap group suffix = ou=Group ldap idmap suffix = ou=Idmap ldap machine suffix = ou=Computers ldap suffix = dc=lan,dc=lexum,dc=pri ldap ssl = no ldap user suffix = ou=Users hosts allow = 192.168.4., 127.0.0.1 cups options = raw mangled names = No [homes] comment = Home Directories read only = No browseable = No csc policy = disable [netlogon] comment = Network Logon Service path = /etc/samba/netlogon guest ok = Yes share modes = No -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Building a new machine
We recently suffered a server loss, during the power an unforgiving power outage. I built a new machine, copied over all information contained in the home directory, and also copied shadow, shadow passwd, groups, passwd. Did you even bother with any of the samba information? The smbpasswd, and tdb files? I was able to set the permissions and ownership they way it was on the old server, and everything looked well. However when I asked the users to log in, they couldn't. Is there a file I should have copied over, that would trick these machines into thinking they were authenticating to the old samba server? More info please!!! What errors We are running debian sarge on the 2.6.8 kernel and samba version 3.0.14a- 3. All help is appreciated, thank you in advance. -- 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] Re: [SLE] SuSE 9.3 and Latest Binaries - Library Conflict [solved]
I don't know what happened or changed, but I downloaded the binaries again fro us4.samba.org and they installed just fine?? Go figure -- David C. Rankin, J.D., P.E. RANKIN LAW FIRM, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 (936) 715-9339 fax www.rankinlawfirm.com -- - Original Message - From: Gerald (Jerry) Carter [EMAIL PROTECTED] To: Marcus Meissner [EMAIL PROTECTED] Cc: david rankin [EMAIL PROTECTED]; samba samba@lists.samba.org; Suse Linux suse-linux-e@suse.com Sent: Tuesday, September 13, 2005 9:53 AM Subject: Re: [Samba] Re: [SLE] SuSE 9.3 and Latest Binaries - Library Conflict -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcus Meissner wrote: | On Mon, Sep 12, 2005 at 04:30:38PM -0500, david rankin wrote: |Mates, | | Still can't get the latest samba binaries to inatall on SuSE 9.3. I've |downloaded them from the samba site and from |ftp://ftp.primastasys.com/pub/Samba-Packages/ still no joy. The problem is |library related: | | Use the ones from ftp://ftp.suse.com/pub/projects/samba/ These are identical to the ones posted on samba.org Lars maintains both sets last time I checked. cheers, jerry = Alleviating the pain of Windows(tm) --- http://www.samba.org GnuPG Key- http://www.plainjoe.org/gpg_public.asc I never saved anything for the swim back. Ethan Hawk in Gattaca -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDJufMIR7qMdg1EfYRAob5AKC77chIUaKf+E7I6ZiXmWBlZqvPLwCglo7P +AYpgNayPMdriG9nx5YF50I= =GWVa -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Authentication against AD?
Dimitri Yioulos wrote: On Tuesday 13 September 2005 11:09 am, Jason Gerfen wrote: I am having a hard time getting Samba to authentication correctly against a Windows Active Directory setup. Here is a snap of the smb.conf [global] passdb backend = ldapsam security = domain password server = server1.com server2.com prefered master = No local master = no hide unreadable = yes wins support = no winbind use default domain = yes domain master = No netbios name = samba-newb workgroup = scl prefered master = no dns proxy = no idmap uid = 15000-2 idmap gid = 15000-2 realm = server.com socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$ use spnego = yes server string = samba-newb update encrypted = yes domain logons = yes winbind separator = + winbind enum users = yes winbind enum groups = yes encrypt passwords = yes os level = 20 template shell = /bin/bash template homedir = /home/%D/%U [newb] comment = newb inherit acls = Yes path = /usr/local/files/ read only = no force group = users force user = users guest ok = no I can run the net ads join command which works fine, but if I try to authentication without a local account I am recieving errors. Any assistance or pointers is appreciated. -- Jason Gerfen Student Computing Labs, University Of Utah [EMAIL PROTECTED] J. Willard Marriott Library 295 S 1500 E, Salt Lake City, UT 84112-0860 801-585-9810 My girlfriend threated to leave me if I went boarding... I will miss her. ~ DIATRIBE aka FBITKK Jason, It looks like your smb.conf is set up more for a Samba PDC than for a member server in a Windows AD. Are you looking to make your Samba server a member server? If so: security = ads wins server = ip.of.your.winsserver I don't believe you need: passdb backend = ldapsam Is kerberos installed, and do you have krb5.conf set up properly? I removed the passdb backend = ldapsam Kerberos is installed and the krb5.conf is working as the kinit and klist work for gathering the TGT's I also modified the server to = ads I don't have a wins server, so that is not configured. I am still experiencing the same problems with having this work as a member server. Any other tips out there? Dimitri -- Jason Gerfen My girlfriend threated to leave me if I went boarding... I will miss her. ~ DIATRIBE aka FBITKK -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Different parsing alg. on smbwinbind for separator
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey B. Green wrote: | Thanks for the reply. I was indeed assuming that I was doing something | wrong with the config, however what I was trying to point out was the | inconsistency between the two programs in handling that item. I.e. if it | is a single character, then both programs should be grabbing the same | thing, the same character. They are doing something different in reading | that attribute from the configuration file. Yeah. It's basically a corner case on the test procedures. There are a couple of outstanding bugs in the smb.conf parser. This probably falls under that category. ciao, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDJyxkIR7qMdg1EfYRAtXoAKDEA8iAPLsqwOLQZ4QZuIDsxBFBTwCfeJGX DcwClH881CEwqfuLVLDiYdY= =1pmb -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: Authentication against AD?
Jason Gerfen wrote: I am having a hard time getting Samba to authentication correctly against a Windows Active Directory setup. template shell = /bin/bash template homedir = /home/%D/%U I can run the net ads join command which works fine, but if I try to authentication without a local account I am recieving errors. Any assistance or pointers is appreciated. If you want to avoid the use of local accounts, you also need to configure/use winbind and pam+nss_winbind -- Rex -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: Authentication against AD?
On Tuesday 13 September 2005 3:58 pm, Rex Dieter wrote: Jason Gerfen wrote: I am having a hard time getting Samba to authentication correctly against a Windows Active Directory setup. template shell = /bin/bash template homedir = /home/%D/%U I can run the net ads join command which works fine, but if I try to authentication without a local account I am recieving errors. Any assistance or pointers is appreciated. If you want to avoid the use of local accounts, you also need to configure/use winbind and pam+nss_winbind -- Rex Rex is right. You need to configure resolv.conf, nsswitch.conf, and etc/pam.d/login. Dimitri -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Building a new machine
On 9/13/05, Paul Gienger [EMAIL PROTECTED] wrote: We recently suffered a server loss, during the power an unforgiving power outage. I built a new machine, copied over all information contained in the home directory, and also copied shadow, shadow passwd, groups, passwd. Did you even bother with any of the samba information? The smbpasswd, and tdb files? We copied the enitre samba directory over, renaming all default install files i.e.smbpasswd to smbpasswd_default I was able to set the permissions and ownership they way it was on the old server, and everything looked well. However when I asked the users to log in, they couldn't. Is there a file I should have copied over, that would trick these machines into thinking they were authenticating to the old samba server? More info please!!!What errors I cannot give an exact message error since it is a remote office but it is close to, 'The system cannot log you on to this domain because the system's computer name is missing or the password on the account is incorrect.' We are running debian sarge on the 2.6.8 kernel and samba version 3.0.14a- 3. All help is appreciated, thank you in advance. -- 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]: Including Windows domain with smbclient -U command?
To all, Can on specify the Windows domain in the smbclient -U command? Can one do something like, smbclient -U //server -Umywindowsdomain\johndoe%password Kind Regards, Wayne e-mail: [EMAIL PROTECTED] __ 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
Re: [Samba] Samba PDC (3.0.14a) with LDAP cannot add machines
Eduard, list, Eduard Witteveen wrote: Jan Evert van Grootheest wrote: I am setting up a Samba PDC which uses LDAP for account information. It is a debian installation with samba 3.0.14a and slapd 2.2.23 (I'm also using ldap-account-manager, but I don't think that has anything to do with this). Jan, I also ran into maybe similar problems, which i couldnt solve on ubuntu(debian). The problem for me is that when the script is executed on the command line/ '/usr/sbin/smbldap-useradd -w //eduard-laptop$'/ the following enviourment varaibles are set: Eduard, I don't think I have your problem, because it is smbd that is reporting this. Furthermore I don't have smbldap-useradd on this system (I use ldap-accound-manager for this). To be sure: I do not have a problem creating the user account for the machine. I have problems joining the machine itself to the domain. As far as I understand, the machine will set a password for itself and I think that is what is failing. I think I understand the reason now, but I'm not sure what to do next. Apparently, when I attempt to join the machine to the domain, an smbd instance is started with as the user that I gave (which is part of the Domain Admins group). And of course this user is not root, so that apparently is why it fails. So... any suggestions what to do? Thanks, Jan Evert -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba]: Including Windows domain with smbclient -U command?
--- Leewa [EMAIL PROTECTED] wrote: To all, Can on specify the Windows domain in the smbclient -U command? Can one do something like, smbclient -U //server -Umywindowsdomain\johndoe%password Kind Regards, Wayne e-mail: [EMAIL PROTECTED] __ 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 __ 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
[Samba] Problems with samba PDC domain
I'm trying out samba for the first time as a PDC for a Windows domain with XP SP2 clients. After working through a few kinks I figured out how to add machines and users to my centeral samba server and get the machines to join, etc. Eveything seemed to work fine, but I'm discovering strange bugs with the latest installed software packages on my XP systems. For instance, a user can launch Acrobat 6, but Acrobat 7 fails. Also, I can't seem to download anything via 'Internet Explorer', but Firefox works fine --- i.e. when I hit a pdf file it claims it cannot connect to reach it (also a security center window launches asking if I want to cancel, save, or open, but nothing works). Any ideas? I'm running Samba 3 on a Fedora system and my clients are XP systems (Service pack 2). Thanks, Joe __ 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
[Samba] RE: samba Digest, Vol 33, Issue 16
From: Nathan Vidican [EMAIL PROTECTED] Reply To: Nathan Vidican [EMAIL PROTECTED] To: samba@lists.samba.org Subject: [Samba] Samba (I think) embeded into a machine,how to verify? (remote 'smbd -V') Sent: Tuesday, 13 September 2005 4:42:57 AM Is there any way to remotely verify the usage or existence of samba vs some other smb-type server? We have recently purchased an all-in-one fax/copier/printer/etc machine, and I have strong suspitions that this thing is just internally running Samba, and if such is the case it may actually prove us able to remedy some of the issues we have with it. The big question then, is how to I get the output of 'smbd -V' remotely from a 'normal' running instance of samba, or is it even possible from an smb-client's perspective? Hello Nathan, Have you tried to nmap the machine?; for example nmap -O iphere. This will tell you what ports are open such as 139, 145. Hope this helps. Adrian Sender -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] pam_ldap problem on an LDAP+SMB configuration
Hi there. This is my first post to this list, I hope I can help you in the future. By now, I'm the one who needs help :) I've been trying to configure a Fedora Core 4 box to use samba + LDAP. I followed instructions of http://www.idealx.org/prj/samba/smbldap-howto.en.html but it seems like I'm having problems on the pam_ldap layer: when I go to step 4.5 (http://www.idealx.org/prj/samba/smbldap-howto.en.html#htoc32) ssh [EMAIL PROTECTED] I get the following message on /var/log/messages: Sep 13 18:09:40 linux2 sshd(pam_unix)[23077]: check pass; user unknown Sep 13 18:09:40 linux2 sshd(pam_unix)[23077]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser=rhost=linux2 Sep 13 18:09:40 linux2 sshd[23077]: pam_ldap: error trying to bind as user uid=testuser1,ou=Users,dc=valeeuro,dc=com (Invalid credentials) I have tried everything, but no success, I always get to this and I don't know what to do now. Its really important to me to get this configuration working, so I don't want to give up. Can someone help me or tell me if I have to read somewhere else ? Thanks in advance. David. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] pam_ldap problem on an LDAP+SMB configuration
On Tue, 2005-09-13 at 18:40 -0500, David Martinez wrote: Hi there. This is my first post to this list, I hope I can help you in the future. By now, I'm the one who needs help :) I've been trying to configure a Fedora Core 4 box to use samba + LDAP. I followed instructions of http://www.idealx.org/prj/samba/smbldap-howto.en.html but it seems like I'm having problems on the pam_ldap layer: when I go to step 4.5 (http://www.idealx.org/prj/samba/smbldap-howto.en.html#htoc32) ssh [EMAIL PROTECTED] I get the following message on /var/log/messages: Sep 13 18:09:40 linux2 sshd(pam_unix)[23077]: check pass; user unknown Sep 13 18:09:40 linux2 sshd(pam_unix)[23077]: authentication failure; logname= uid=0 euid=0 tty=ssh ruser=rhost=linux2 Sep 13 18:09:40 linux2 sshd[23077]: pam_ldap: error trying to bind as user uid=testuser1,ou=Users,dc=valeeuro,dc=com (Invalid credentials) I have tried everything, but no success, I always get to this and I don't know what to do now. Its really important to me to get this configuration working, so I don't want to give up. Can someone help me or tell me if I have to read somewhere else ? probably would help if you posted the ldap relevant sections of your smb.conf to the list - also, for the ldap admin...did you set the password (smbpasswd -w X) ? Craig -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] mass-adding users with pdbedit or smbpasswd leads to long delay
Hi Jerry, Can you reproduce the delays with tdbsam? unfortunately, I currently don't have a testing machine here. ;-( If anyone else on this list is willing to test this out, let us know the results. Otherwise I will set up a test system and then attach my results to the output, but it can take a while. :) Thanks! Florian -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] mass-adding users with pdbedit or smbpasswd leads to long delay
unfortunately, I currently don't have a testing machine here. ;-( If anyone else on this list is willing to test this out, let us know the results. Otherwise I will set up a test system and then attach my results to the output, but it can take a while. :) Addendum: The machine I experienced the problems on is now a production system for daily use of 1'500 users and I don't want to test it there, too risky. ;-) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Message Couldn't verify trusting domain account. Error was NT_STATUS_LOGON_FAILURE while attempting net rpc trustdom establish domain_B
This is a little of a new experience for me, I am a bit of a novice. I have usually been able to stumble around documentation and other mailing lists to figure out problems, unfortunately I have struck and issue that has me going around in circles ... I have set up a VPN between three locations using openvpn (device = tun ), two satellite locations (referred to as B C) talking to a central location (refereed to as A) All machines are running a fairly standard release of Redhat 9.0 and Samba 3.0.20. I am now trying to a domain trust relationship established between each of these sites. When I establish a trust from one of the satellite locations it appears to work ... *net rpc trustdom establish domain_A* Could not connect to server A Trust to domain DOMAIN_A established but from the central location I get the error message *net rpc trustdom establish domain_B* Could not connect to server B [2005/09/14 11:14:21, 0] utils/net_rpc.c:rpc_trustdom_establish(4917) Couldn't verify trusting domain account. Error was NT_STATUS_UNSUCCESSFUL I found I can duplicate the above error message if I type in an incorrect password on one of the satellite computers (B C) when connecting, but I am sure passwords etc are correct. Another symptom is that listing the trusted domains on computer A shows Trusted domains list: none Trusting domains list: DOMAIN_B domain controller is not responding DOMAIN_Cdomain controller is not responding I do not have WINS browsing working across domain as yet, but do not think that is an issue as net lookup (host / dc / master) all give the correct answer. I do see some interesting entries in /var/log/messages like ... nmbd[13580]: [2005/09/14 11:48:44, 0] nmbd/nmbd_browsesync.c:get_domain_master_name_node_status_fail(488) nmbd[13580]: get_domain_master_name_node_status_fail: nmbd[13580]: Doing a node status request to the domain master browser at IP 10.1.3.1 failed. nmbd[13580]: Cannot get workgroup name. nmbd[13580]: [2005/09/14 11:48:44, 0] nmbd/nmbd_browsesync.c:get_domain_master_name_node_status_fail(488) nmbd[13580]: get_domain_master_name_node_status_fail: nmbd[13580]: Doing a node status request to the domain master browser at IP 10.1.5.1 failed. nmbd[13580]: Cannot get workgroup name. nmbd[13580]: [2005/09/14 11:48:44, 0] nmbd/nmbd_browsesync.c:get_domain_master_name_node_status_fail(488) nmbd[13580]: get_domain_master_name_node_status_fail: nmbd[13580]: Doing a node status request to the domain master browser at IP 10.2.1.1 failed. nmbd[13580]: Cannot get workgroup name. where, 10.1.3.1 = B 10.1.5.1 = C 10.2.1.1 = tun0 IP address What other information / tests can I try? Thanks in advance for looking at this problem ... Andrew -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
svn commit: samba r10196 - in trunk/source: client libsmb modules printing utils
Author: jra Date: 2005-09-13 06:32:42 + (Tue, 13 Sep 2005) New Revision: 10196 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10196 Log: Fix all const warnings. We compile without warnings now (ok, a few strange exceptions... - getdate.y for example). Jeremy. Modified: trunk/source/client/smbspool.c trunk/source/libsmb/libsmbclient.c trunk/source/modules/weird.c trunk/source/printing/notify.c trunk/source/utils/ntlm_auth.c trunk/source/utils/testparm.c Changeset: Modified: trunk/source/client/smbspool.c === --- trunk/source/client/smbspool.c 2005-09-13 05:39:00 UTC (rev 10195) +++ trunk/source/client/smbspool.c 2005-09-13 06:32:42 UTC (rev 10196) @@ -70,7 +70,10 @@ FILE *fp;/* File to print */ int status=0; /* Status of LPD job */ struct cli_state *cli; /* SMB interface */ + char null_str[0]; + null_str[0] = '\0'; + /* we expect the URI in argv[0]. Detect the case where it is in argv[1] and cope */ if (argc 2 strncmp(argv[0],smb://, 6) !strncmp(argv[1],smb://, 6)) { argv++; @@ -158,12 +161,12 @@ if ((password = strchr_m(username, ':')) != NULL) *password++ = '\0'; else - password = ; + password = null_str; } else { -username = ; -password = ; +username = null_str; +password = null_str; server = uri + 6; } Modified: trunk/source/libsmb/libsmbclient.c === --- trunk/source/libsmb/libsmbclient.c 2005-09-13 05:39:00 UTC (rev 10195) +++ trunk/source/libsmb/libsmbclient.c 2005-09-13 06:32:42 UTC (rev 10196) @@ -3057,7 +3057,7 @@ /* * We return the pointer here as the offset */ - ret_val = (off_t)dir-dir_next; + ret_val = (off_t)(long)dir-dir_next; return ret_val; } Modified: trunk/source/modules/weird.c === --- trunk/source/modules/weird.c2005-09-13 05:39:00 UTC (rev 10195) +++ trunk/source/modules/weird.c2005-09-13 06:32:42 UTC (rev 10196) @@ -23,7 +23,7 @@ static struct { char from; - char *to; + const char *to; int len; } weird_table[] = { {'q', ^q^, 3}, Modified: trunk/source/printing/notify.c === --- trunk/source/printing/notify.c 2005-09-13 05:39:00 UTC (rev 10195) +++ trunk/source/printing/notify.c 2005-09-13 06:32:42 UTC (rev 10196) @@ -328,7 +328,7 @@ static void send_notify_field_buffer(const char *sharename, uint32 type, uint32 field, uint32 id, uint32 len, -char *buffer) +const char *buffer) { struct spoolss_notify_msg *msg; @@ -349,7 +349,7 @@ msg-field = field; msg-id = id; msg-len = len; - msg-notify.data = buffer; + msg-notify.data = CONST_DISCARD(char *,buffer); send_spoolss_notify2_msg(msg); } @@ -484,7 +484,7 @@ snum, strlen(location) + 1, location); } -void notify_printer_byname( const char *printername, uint32 change, char *value ) +void notify_printer_byname( const char *printername, uint32 change, const char *value ) { int snum = print_queue_snum(printername); int type = PRINTER_NOTIFY_TYPE; Modified: trunk/source/utils/ntlm_auth.c === --- trunk/source/utils/ntlm_auth.c 2005-09-13 05:39:00 UTC (rev 10195) +++ trunk/source/utils/ntlm_auth.c 2005-09-13 06:32:42 UTC (rev 10196) @@ -1023,7 +1023,7 @@ DATA_BLOB null_blob = data_blob(NULL, 0); DATA_BLOB to_server; char *to_server_base64; - char *my_mechs[] = {OID_NTLMSSP, NULL}; + const char *my_mechs[] = {OID_NTLMSSP, NULL}; DEBUG(10, (Got spnego negTokenInit with NTLMSSP\n)); @@ -1053,7 +1053,7 @@ } spnego.type = SPNEGO_NEG_TOKEN_INIT; - spnego.negTokenInit.mechTypes = my_mechs; + spnego.negTokenInit.mechTypes = CONST_DISCARD(char **,my_mechs); spnego.negTokenInit.reqFlags = 0; spnego.negTokenInit.mechListMIC = null_blob; Modified: trunk/source/utils/testparm.c === --- trunk/source/utils/testparm.c 2005-09-13 05:39:00 UTC (rev 10195) +++ trunk/source/utils/testparm.c 2005-09-13 06:32:42 UTC (rev 10196) @@ -206,7 +206,7 @@ poptContext pc; static const char *term_code = ; static char *parameter_name = NULL; - static char *section_name = NULL; + static const char *section_name = NULL; static char *new_local_machine = NULL; const char *cname; const char *caddr;
svn commit: samba r10197 - in branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Ethereal: .
Author: tpot Date: 2005-09-13 06:39:40 + (Tue, 13 Sep 2005) New Revision: 10197 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10197 Log: Assume that external dissectors are structs which I think is always the case. Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Ethereal/NDR.pm Changeset: Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Ethereal/NDR.pm === --- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Ethereal/NDR.pm 2005-09-13 06:32:42 UTC (rev 10196) +++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Ethereal/NDR.pm 2005-09-13 06:39:40 UTC (rev 10197) @@ -294,7 +294,7 @@ } else { if ($l-{DATA_TYPE} =~ /^([a-z]+)\_(.*)$/) { - pidl_code offset = $1_dissect_$2(tvb,offset,pinfo,tree,drep,$hf,$param);; + pidl_code offset = $1_dissect_struct_$2(tvb,offset,pinfo,tree,drep,$hf,$param);; } return;
svn commit: samba r10198 - in trunk/source/rpc_client: .
Author: jerry Date: 2005-09-13 12:05:20 + (Tue, 13 Sep 2005) New Revision: 10198 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10198 Log: commenting out unused function Modified: trunk/source/rpc_client/cli_netlogon.c Changeset: Modified: trunk/source/rpc_client/cli_netlogon.c === --- trunk/source/rpc_client/cli_netlogon.c 2005-09-13 06:39:40 UTC (rev 10197) +++ trunk/source/rpc_client/cli_netlogon.c 2005-09-13 12:05:20 UTC (rev 10198) @@ -193,6 +193,7 @@ return result; } +#if 0 /* not currebntly used */ / LSA Authenticate 3 @@ -242,6 +243,7 @@ return result; } +#endif /* not currebntly used */ / Wrapper function that uses the auth and auth2 calls to set up a NETLOGON
svn commit: samba r10199 - in branches/SAMBA_4_0/source/torture: . local
Author: tridge Date: 2005-09-13 12:44:33 + (Tue, 13 Sep 2005) New Revision: 10199 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10199 Log: added a LOCAL-RESOLVE torture test, useful for measuring the overhead of the async name resolution mechanisms Added: branches/SAMBA_4_0/source/torture/local/resolve.c Modified: branches/SAMBA_4_0/source/torture/config.mk branches/SAMBA_4_0/source/torture/torture.c Changeset: Modified: branches/SAMBA_4_0/source/torture/config.mk === --- branches/SAMBA_4_0/source/torture/config.mk 2005-09-13 12:05:20 UTC (rev 10198) +++ branches/SAMBA_4_0/source/torture/config.mk 2005-09-13 12:44:33 UTC (rev 10199) @@ -146,7 +146,8 @@ torture/local/binding_string.o \ torture/local/idtree.o \ torture/local/socket.o \ - torture/local/irpc.o + torture/local/irpc.o \ + torture/local/resolve.o REQUIRED_SUBSYSTEMS = \ LIBSMB \ MESSAGING Added: branches/SAMBA_4_0/source/torture/local/resolve.c === --- branches/SAMBA_4_0/source/torture/local/resolve.c 2005-09-13 12:05:20 UTC (rev 10198) +++ branches/SAMBA_4_0/source/torture/local/resolve.c 2005-09-13 12:44:33 UTC (rev 10199) @@ -0,0 +1,87 @@ +/* + Unix SMB/CIFS implementation. + + local test for async resolve code + + Copyright (C) Andrew Tridgell 2004 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#include includes.h +#include lib/events/events.h +#include librpc/gen_ndr/nbt.h + +static BOOL test_async_resolve(TALLOC_CTX *mem_ctx) +{ + struct nbt_name n; + struct event_context *ev = event_context_find(mem_ctx); + int timelimit = lp_parm_int(-1, torture, timelimit, 10); + const char *host = lp_parm_string(-1, torture, host); + int count = 0; + struct timeval tv = timeval_current(); + + ZERO_STRUCT(n); + n.name = host; + + printf(Testing async resolve of localhost for %d seconds\n, timelimit); + while (timeval_elapsed(tv) timelimit) { + const char *s; + struct composite_context *c = resolve_name_host_send(n, ev); + NTSTATUS status = resolve_name_host_recv(c, mem_ctx, s); + if (!NT_STATUS_IS_OK(status)) { + printf(async resolve failed - %s\n, nt_errstr(status)); + return False; + } + count++; + } + + printf(async rate of %.1f resolves/sec\n, count/timeval_elapsed(tv)); + return True; +} + +/* + test resolution using sync method +*/ +static BOOL test_sync_resolve(TALLOC_CTX *mem_ctx) +{ + int timelimit = lp_parm_int(-1, torture, timelimit, 10); + struct timeval tv = timeval_current(); + int count = 0; + const char *host = lp_parm_string(-1, torture, host); + + printf(Testing sync resolve of localhost for %d seconds\n, timelimit); + while (timeval_elapsed(tv) timelimit) { + sys_inet_ntoa(interpret_addr2(host)); + count++; + } + + printf(sync rate of %.1f resolves/sec\n, count/timeval_elapsed(tv)); + return True; +} + + +BOOL torture_local_resolve(void) +{ + TALLOC_CTX *mem_ctx = talloc_init(torture_local_irpc); + BOOL ret = True; + + ret = test_sync_resolve(mem_ctx); + ret = test_async_resolve(mem_ctx); + + talloc_free(mem_ctx); + + return ret; +} Modified: branches/SAMBA_4_0/source/torture/torture.c === --- branches/SAMBA_4_0/source/torture/torture.c 2005-09-13 12:05:20 UTC (rev 10198) +++ branches/SAMBA_4_0/source/torture/torture.c 2005-09-13 12:44:33 UTC (rev 10199) @@ -2324,6 +2324,7 @@ {LOCAL-IDTREE, torture_local_idtree, 0}, {LOCAL-SOCKET, torture_local_socket, 0}, {LOCAL-PAC, torture_pac, 0}, + {LOCAL-RESOLVE, torture_local_resolve, 0}, /* COM (Component Object Model) testers */ {COM-SIMPLE, torture_com_simple, 0 },
svn commit: samba r10200 - in branches/SAMBA_4_0/source: lib/socket libcli/composite libcli/resolve
Author: tridge Date: 2005-09-13 12:46:03 + (Tue, 13 Sep 2005) New Revision: 10200 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10200 Log: added a composite_trigger_done() call that allows a composite function to cause an event to happen immediately. This allows metzes patch for recognising IPs in resolve_name() to work, and also allows us to remove some of the other code where we currently do specific checks for is_ipaddress(). Modified: branches/SAMBA_4_0/source/lib/socket/connect.c branches/SAMBA_4_0/source/libcli/composite/composite.c branches/SAMBA_4_0/source/libcli/composite/connect.c branches/SAMBA_4_0/source/libcli/resolve/resolve.c Changeset: Modified: branches/SAMBA_4_0/source/lib/socket/connect.c === --- branches/SAMBA_4_0/source/lib/socket/connect.c 2005-09-13 12:44:33 UTC (rev 10199) +++ branches/SAMBA_4_0/source/lib/socket/connect.c 2005-09-13 12:46:03 UTC (rev 10200) @@ -36,11 +36,6 @@ { struct nbt_name name; - if (is_ipaddress(address) || strcasecmp(localhost, address) == 0) { - *ret_address = address; - return NT_STATUS_OK; - } - name.name = address; name.scope = NULL; name.type = NBT_NAME_CLIENT; Modified: branches/SAMBA_4_0/source/libcli/composite/composite.c === --- branches/SAMBA_4_0/source/libcli/composite/composite.c 2005-09-13 12:44:33 UTC (rev 10199) +++ branches/SAMBA_4_0/source/libcli/composite/composite.c 2005-09-13 12:46:03 UTC (rev 10200) @@ -44,3 +44,27 @@ } +/* + callback from composite_trigger_done() +*/ +static void composite_trigger(struct event_context *ev, struct timed_event *te, + struct timeval t, void *ptr) +{ + struct composite_context *c = talloc_get_type(ptr, struct composite_context); + c-state = SMBCLI_REQUEST_DONE; + if (c-async.fn) { + c-async.fn(c); + } +} + + +/* + trigger an immediate 'done' event on a composite context + this is used when the composite code works out that the call + can be completed without waiting for any external event +*/ +void composite_trigger_done(struct composite_context *c) +{ + /* a zero timeout means immediate */ + event_add_timed(c-event_ctx, c, timeval_zero(), composite_trigger, c); +} Modified: branches/SAMBA_4_0/source/libcli/composite/connect.c === --- branches/SAMBA_4_0/source/libcli/composite/connect.c2005-09-13 12:44:33 UTC (rev 10199) +++ branches/SAMBA_4_0/source/libcli/composite/connect.c2005-09-13 12:46:03 UTC (rev 10200) @@ -352,17 +352,9 @@ c-event_ctx = talloc_reference(c, state-sock-event.ctx); c-private = state; - /* if the destination is an IP address, then skip the name resolution part */ - if (is_ipaddress(io-in.dest_host)) { - state-stage = CONNECT_SOCKET; - state-creq = smbcli_sock_connect_send(state-sock, io-in.dest_host, - state-io-in.port, - io-in.dest_host); - } else { - state-stage = CONNECT_RESOLVE; - make_nbt_name_server(name, io-in.dest_host); - state-creq = resolve_name_send(name, c-event_ctx, lp_name_resolve_order()); - } + state-stage = CONNECT_RESOLVE; + make_nbt_name_server(name, io-in.dest_host); + state-creq = resolve_name_send(name, c-event_ctx, lp_name_resolve_order()); if (state-creq == NULL) goto failed; state-creq-async.private = c; Modified: branches/SAMBA_4_0/source/libcli/resolve/resolve.c === --- branches/SAMBA_4_0/source/libcli/resolve/resolve.c 2005-09-13 12:44:33 UTC (rev 10199) +++ branches/SAMBA_4_0/source/libcli/resolve/resolve.c 2005-09-13 12:46:03 UTC (rev 10200) @@ -144,6 +144,15 @@ c-event_ctx = talloc_reference(c, event_ctx); } + if (is_ipaddress(state-name.name) || + strcasecmp(state-name.name, localhost) == 0) { + struct ipv4_addr ip = interpret_addr2(state-name.name); + state-reply_addr = talloc_strdup(state, sys_inet_ntoa(ip)); + if (!state-reply_addr) goto failed; + composite_trigger_done(c); + return c; + } + state-req = setup_next_method(c); if (state-req == NULL) goto failed;
svn commit: samba r10201 - in trunk/source: . include registry rpc_parse rpc_server script services
Author: jerry Date: 2005-09-13 13:36:24 + (Tue, 13 Sep 2005) New Revision: 10201 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10201 Log: This is the svcctl work from the past few days. I've been working on this using svk, but I think it's time to check at least this version in. Not completed but getting closer * expand the svcctl_ops structure to be built at run-time to include services listed in smb.conf * move the service data from its own tdb to the registry * persistently store service security descriptors 'hklm\system\currentcontrolset\service\service_name\Security' * Cleanup several svcctl RPC's (parsing and server side implementation) * Add 'RemoteRegistry' builtin service to get the MMC service control plugin a little farther along (services/svc_winreg.c) * Added separate set of SERVICE_CONTROL_OPS for netlogon (services/svc_netlogon.c) TODO: * cleanup existing init script parsing * Finish QueryServiceConfig[2]() server code * fix the stub functions in services/svc_rcinit.c Added: trunk/source/services/svc_netlogon.c trunk/source/services/svc_winreg.c Modified: trunk/source/Makefile.in trunk/source/include/rpc_reg.h trunk/source/include/rpc_svcctl.h trunk/source/registry/reg_frontend.c trunk/source/registry/reg_objects.c trunk/source/rpc_parse/parse_svcctl.c trunk/source/rpc_server/srv_eventlog_nt.c trunk/source/rpc_server/srv_svcctl_nt.c trunk/source/script/mkproto.awk trunk/source/services/services_db.c trunk/source/services/svc_rcinit.c trunk/source/services/svc_spoolss.c Changeset: Sorry, the patch is too large (1979 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10201
Re: svn commit: samba r10201 - in trunk/source: . include registry rpc_parse rpc_server script services
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: | Author: jerry | Date: 2005-09-13 13:36:24 + (Tue, 13 Sep 2005) | New Revision: 10201 | | WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10201 | | Log: | This is the svcctl work from the past few days. I've been working | on this using svk, but I think it's time to check at least this | version in. Not completed but getting closer | | * expand the svcctl_ops structure to be built at run-time to | include services listed in smb.conf | * move the service data from its own tdb to the registry | * persistently store service security descriptors | 'hklm\system\currentcontrolset\service\service_name\Security' | * Cleanup several svcctl RPC's (parsing and server side implementation) | * Add 'RemoteRegistry' builtin service to get the MMC service control | plugin a little farther along (services/svc_winreg.c) | * Added separate set of SERVICE_CONTROL_OPS for netlogon | (services/svc_netlogon.c) | | TODO: | | * cleanup existing init script parsing | * Finish QueryServiceConfig[2]() server code | * fix the stub functions in services/svc_rcinit.c Brian Marcin, You probably should review this for any design holes. The start/stop or queryconfig calls are not finished but you will get the actual idea. I'm not quite sure how the original code could have worked but that might just be a difference in trunk and any integration work you might have done. My chainsaw is not quite dull yet so there's some more stuff coming later today. Hopefully I'll have the QueryServiceConfig[2]() calls finished up for the new design. Please take a look over it and let me know if you see any problems with the approach. cheers, jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDJtcaIR7qMdg1EfYRAknPAKDCg9s0ZbtYo7RqElFnYaShoRZzjACdEU4l B++ngxYTHdv1pjAOoGiQEiQ= =aXok -END PGP SIGNATURE-
svn commit: samba r10202 - in trunk/source/client: .
Author: jra Date: 2005-09-13 15:37:36 + (Tue, 13 Sep 2005) New Revision: 10202 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10202 Log: Fix stupid typo spotted by Metze :-). Jeremy. Modified: trunk/source/client/smbspool.c Changeset: Modified: trunk/source/client/smbspool.c === --- trunk/source/client/smbspool.c 2005-09-13 13:36:24 UTC (rev 10201) +++ trunk/source/client/smbspool.c 2005-09-13 15:37:36 UTC (rev 10202) @@ -70,7 +70,7 @@ FILE *fp;/* File to print */ int status=0; /* Status of LPD job */ struct cli_state *cli; /* SMB interface */ - char null_str[0]; + char null_str[1]; null_str[0] = '\0';
svn commit: samba r10203 - in trunk/source: include rpc_parse rpc_server services
Author: jerry Date: 2005-09-13 15:39:49 + (Tue, 13 Sep 2005) New Revision: 10203 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10203 Log: have QueryServiceConfig() working now Modified: trunk/source/include/rpc_svcctl.h trunk/source/rpc_parse/parse_svcctl.c trunk/source/rpc_server/srv_svcctl_nt.c trunk/source/services/services_db.c Changeset: Sorry, the patch is too large (282 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10203
svn commit: samba r10204 - in branches/SAMBA_3_0/source/libsmb: .
Author: jra Date: 2005-09-13 16:54:59 + (Tue, 13 Sep 2005) New Revision: 10204 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10204 Log: I love valgrind :-). Found stupid missing parantheses :-). Jeremy. Modified: branches/SAMBA_3_0/source/libsmb/smb_share_modes.c Changeset: Modified: branches/SAMBA_3_0/source/libsmb/smb_share_modes.c === --- branches/SAMBA_3_0/source/libsmb/smb_share_modes.c 2005-09-13 15:39:49 UTC (rev 10203) +++ branches/SAMBA_3_0/source/libsmb/smb_share_modes.c 2005-09-13 16:54:59 UTC (rev 10204) @@ -255,7 +255,7 @@ ld = (struct locking_data *)db_data.dptr; ld-u.s.num_share_mode_entries = 1; ld-u.s.delete_on_close = 0; - shares = (share_mode_entry *)db_data.dptr + sizeof(struct locking_data); + shares = (share_mode_entry *)(db_data.dptr + sizeof(struct locking_data)); create_share_mode_entry(shares, new_entry); memcpy(db_data.dptr + sizeof(struct locking_data) + sizeof(share_mode_entry), filename,
svn commit: samba r10205 - branches/SAMBA_3_0/source/rpc_parse trunk/source/rpc_parse
Author: gd Date: 2005-09-13 17:03:03 + (Tue, 13 Sep 2005) New Revision: 10205 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10205 Log: fix obvious typo in the NET_USER_INFO_3 parsing Guenther Modified: branches/SAMBA_3_0/source/rpc_parse/parse_net.c trunk/source/rpc_parse/parse_net.c Changeset: Modified: branches/SAMBA_3_0/source/rpc_parse/parse_net.c === --- branches/SAMBA_3_0/source/rpc_parse/parse_net.c 2005-09-13 16:54:59 UTC (rev 10204) +++ branches/SAMBA_3_0/source/rpc_parse/parse_net.c 2005-09-13 17:03:03 UTC (rev 10205) @@ -1626,7 +1626,7 @@ if(!smb_io_unistr2(uni_logon_srv, usr-uni_logon_srv, usr-hdr_logon_srv.buffer, ps, depth)) /* logon server unicode string */ return False; - if(!smb_io_unistr2(uni_logon_dom, usr-uni_logon_dom, usr-hdr_logon_srv.buffer, ps, depth)) /* logon domain unicode string */ + if(!smb_io_unistr2(uni_logon_dom, usr-uni_logon_dom, usr-hdr_logon_dom.buffer, ps, depth)) /* logon domain unicode string */ return False; if(!smb_io_dom_sid2(, usr-dom_sid, ps, depth)) /* domain SID */ Modified: trunk/source/rpc_parse/parse_net.c === --- trunk/source/rpc_parse/parse_net.c 2005-09-13 16:54:59 UTC (rev 10204) +++ trunk/source/rpc_parse/parse_net.c 2005-09-13 17:03:03 UTC (rev 10205) @@ -1626,7 +1626,7 @@ if(!smb_io_unistr2(uni_logon_srv, usr-uni_logon_srv, usr-hdr_logon_srv.buffer, ps, depth)) /* logon server unicode string */ return False; - if(!smb_io_unistr2(uni_logon_dom, usr-uni_logon_dom, usr-hdr_logon_srv.buffer, ps, depth)) /* logon domain unicode string */ + if(!smb_io_unistr2(uni_logon_dom, usr-uni_logon_dom, usr-hdr_logon_dom.buffer, ps, depth)) /* logon domain unicode string */ return False; if(!smb_io_dom_sid2(, usr-dom_sid, ps, depth)) /* domain SID */
svn commit: samba r10206 - in trunk/source: include param rpc_parse rpc_server services
Author: jerry Date: 2005-09-13 17:03:18 + (Tue, 13 Sep 2005) New Revision: 10206 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10206 Log: * QueryServiceConfig2() now works, but only for info level SERVICE_CONFIG_DESCRIPTION. * MMC service control plugin is now able to bring up the properties of a service (with a few error messages about unsupported rpc calls). * rename 'enable svcctl' to 'svcctl list' for better consistency with the 'eventlog list' smb.conf parameter. Modified: trunk/source/include/rpc_svcctl.h trunk/source/param/loadparm.c trunk/source/rpc_parse/parse_svcctl.c trunk/source/rpc_server/srv_svcctl_nt.c trunk/source/services/services_db.c Changeset: Sorry, the patch is too large (591 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10206
svn commit: samba r10207 - in branches/SAMBA_4_0/source: gtk/tools lib/registry lib/registry/common
Author: jelmer Date: 2005-09-13 17:28:18 + (Tue, 13 Sep 2005) New Revision: 10207 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10207 Log: Add some const Modified: branches/SAMBA_4_0/source/gtk/tools/gregedit.c branches/SAMBA_4_0/source/lib/registry/common/reg_interface.c branches/SAMBA_4_0/source/lib/registry/reg_backend_dir.c branches/SAMBA_4_0/source/lib/registry/reg_backend_ldb.c branches/SAMBA_4_0/source/lib/registry/reg_backend_nt4.c branches/SAMBA_4_0/source/lib/registry/reg_backend_rpc.c branches/SAMBA_4_0/source/lib/registry/reg_backend_w95.c branches/SAMBA_4_0/source/lib/registry/regf.idl branches/SAMBA_4_0/source/lib/registry/registry.h Changeset: Sorry, the patch is too large (597 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10207
svn commit: lorikeet r469 - in trunk/heimdal/lib/asn1: .
Author: lha Date: 2005-09-13 19:46:34 + (Tue, 13 Sep 2005) New Revision: 469 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=469 Log: 1.27: unput() have to happen in actions for flex 2.5.31, can do them in user code section, so move up handle_comment and handle_string into action, not much sharing was done anyway. Modified: trunk/heimdal/lib/asn1/lex.l Changeset: Sorry, the patch is too large (265 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=469
svn commit: lorikeet r470 - in trunk/heimdal/lib/asn1: .
Author: lha Date: 2005-09-13 19:50:11 + (Tue, 13 Sep 2005) New Revision: 470 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=470 Log: signness warnings LP64 problem Can't assume malloc(~(size_t)0) will fail Modified: trunk/heimdal/lib/asn1/check-common.c trunk/heimdal/lib/asn1/check-common.h trunk/heimdal/lib/asn1/check-der.c trunk/heimdal/lib/asn1/check-gen.c Changeset: Sorry, the patch is too large (293 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=470
svn commit: samba r10208 - in branches/SAMBA_3_0/source/utils: .
Author: jra Date: 2005-09-13 20:13:33 + (Tue, 13 Sep 2005) New Revision: 10208 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10208 Log: Correctly display RDWR only when it *is* RDWR... Jeremy. Modified: branches/SAMBA_3_0/source/utils/status.c Changeset: Modified: branches/SAMBA_3_0/source/utils/status.c === --- branches/SAMBA_3_0/source/utils/status.c2005-09-13 17:28:18 UTC (rev 10207) +++ branches/SAMBA_3_0/source/utils/status.c2005-09-13 20:13:33 UTC (rev 10208) @@ -128,7 +128,8 @@ } } d_printf(0x%-8x ,(unsigned int)e-access_mask); - if (e-access_mask (FILE_READ_DATA|FILE_WRITE_DATA)) { + if ((e-access_mask (FILE_READ_DATA|FILE_WRITE_DATA))== + (FILE_READ_DATA|FILE_WRITE_DATA)) { d_printf(RDWR ); } else if (e-access_mask FILE_WRITE_DATA) { d_printf(WRONLY );
svn commit: samba r10209 - in trunk/source/utils: .
Author: jra Date: 2005-09-13 20:13:36 + (Tue, 13 Sep 2005) New Revision: 10209 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10209 Log: Correctly display RDWR only when it *is* RDWR... Jeremy. Modified: trunk/source/utils/status.c Changeset: Modified: trunk/source/utils/status.c === --- trunk/source/utils/status.c 2005-09-13 20:13:33 UTC (rev 10208) +++ trunk/source/utils/status.c 2005-09-13 20:13:36 UTC (rev 10209) @@ -128,7 +128,8 @@ } } d_printf(0x%-8x ,(unsigned int)e-access_mask); - if (e-access_mask (FILE_READ_DATA|FILE_WRITE_DATA)) { + if ((e-access_mask (FILE_READ_DATA|FILE_WRITE_DATA))== + (FILE_READ_DATA|FILE_WRITE_DATA)) { d_printf(RDWR ); } else if (e-access_mask FILE_WRITE_DATA) { d_printf(WRONLY );
svn commit: lorikeet r471 - in trunk/heimdal/lib/roken: .
Author: lha Date: 2005-09-13 20:13:46 + (Tue, 13 Sep 2005) New Revision: 471 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=471 Log: Guess that this will please HP/UX 11.nn that have a SIOCGLIFCONF that doesn't work like Solaris SIOCGLIFCONF. If this works, I'll commit this change plus autoconf glue to Heimdal. Modified: trunk/heimdal/lib/roken/getifaddrs.c Changeset: Modified: trunk/heimdal/lib/roken/getifaddrs.c === --- trunk/heimdal/lib/roken/getifaddrs.c2005-09-13 19:50:11 UTC (rev 470) +++ trunk/heimdal/lib/roken/getifaddrs.c2005-09-13 20:13:46 UTC (rev 471) @@ -56,6 +56,21 @@ #include ifaddrs.h +#ifdef __hpux +#define lifconf if_laddrconf +#define lifc_len iflc_len +#define lifc_buf iflc_buf +#define lifc_req iflc_req + +#define lifreq if_laddrreq +#define lifr_addr iflr_addr +#define lifr_name iflr_name +#define lifr_dstaddr iflr_dstaddr +#define lifr_broadaddr iflr_broadaddr +#define lifr_flags iflr_flags +#define lifr_index iflr_index +#endif + #ifdef AF_NETLINK /* @@ -1011,8 +1026,10 @@ ret = ENOMEM; goto error_out; } +#ifndef __hpux ifconf.lifc_family = AF_UNSPEC; ifconf.lifc_flags = 0; +#endif ifconf.lifc_len= buf_size; ifconf.lifc_buf= buf;
svn commit: lorikeet r472 - in trunk/heimdal/lib/asn1: .
Author: lha Date: 2005-09-13 21:09:36 + (Tue, 13 Sep 2005) New Revision: 472 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=lorikeetrev=472 Log: 1.22: Avoid empty array initiators. Modified: trunk/heimdal/lib/asn1/check-der.c Changeset: Modified: trunk/heimdal/lib/asn1/check-der.c === --- trunk/heimdal/lib/asn1/check-der.c 2005-09-13 20:13:46 UTC (rev 471) +++ trunk/heimdal/lib/asn1/check-der.c 2005-09-13 21:09:36 UTC (rev 472) @@ -41,7 +41,7 @@ #include check-common.h -RCSID($Id: check-der.c,v 1.21 2005/09/13 19:36:17 lha Exp $); +RCSID($Id: check-der.c,v 1.22 2005/09/13 21:08:03 lha Exp $); static int cmp_integer (void *a, void *b) @@ -482,12 +482,16 @@ static int check_fail_general_string(void) { +#if 0 struct test_case tests[] = { }; int ntests = sizeof(tests) / sizeof(*tests); return generic_decode_fail(tests, ntests, sizeof(heim_general_string), (generic_decode)der_get_general_string); +#else +return 0; +#endif } static int @@ -522,12 +526,16 @@ static int check_fail_heim_integer(void) { +#if 0 struct test_case tests[] = { }; int ntests = sizeof(tests) / sizeof(*tests); return generic_decode_fail(tests, ntests, sizeof(heim_integer), (generic_decode)der_get_heim_integer); +#else +return 0; +#endif } static int
svn commit: samba r10210 - branches/SAMBA_3_0/source/libsmb trunk/source/libsmb
Author: gd Date: 2005-09-13 21:21:43 + (Tue, 13 Sep 2005) New Revision: 10210 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10210 Log: Fix memleak. Guenther Modified: branches/SAMBA_3_0/source/libsmb/clikrb5.c trunk/source/libsmb/clikrb5.c Changeset: Modified: branches/SAMBA_3_0/source/libsmb/clikrb5.c === --- branches/SAMBA_3_0/source/libsmb/clikrb5.c 2005-09-13 20:13:36 UTC (rev 10209) +++ branches/SAMBA_3_0/source/libsmb/clikrb5.c 2005-09-13 21:21:43 UTC (rev 10210) @@ -119,8 +119,10 @@ DEBUG(1,(krb5_get_pw_salt failed (%s)\n, error_message(ret))); return ret; } - return krb5_string_to_key_salt(context, enctype, password-data, - salt, key); + + ret = krb5_string_to_key_salt(context, enctype, password-data, salt, key); + krb5_free_salt(context, salt); + return ret; } #else #error UNKNOWN_CREATE_KEY_FUNCTIONS Modified: trunk/source/libsmb/clikrb5.c === --- trunk/source/libsmb/clikrb5.c 2005-09-13 20:13:36 UTC (rev 10209) +++ trunk/source/libsmb/clikrb5.c 2005-09-13 21:21:43 UTC (rev 10210) @@ -119,8 +119,10 @@ DEBUG(1,(krb5_get_pw_salt failed (%s)\n, error_message(ret))); return ret; } - return krb5_string_to_key_salt(context, enctype, password-data, - salt, key); + + ret = krb5_string_to_key_salt(context, enctype, password-data, salt, key); + krb5_free_salt(context, salt); + return ret; } #else #error UNKNOWN_CREATE_KEY_FUNCTIONS
svn commit: samba r10211 - branches/SAMBA_3_0/source/libads trunk/source/libads
Author: gd Date: 2005-09-13 21:26:25 + (Tue, 13 Sep 2005) New Revision: 10211 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10211 Log: Fix another memleak (this time in the kerberos keytab code) Guenther Modified: branches/SAMBA_3_0/source/libads/kerberos_verify.c trunk/source/libads/kerberos_verify.c Changeset: Modified: branches/SAMBA_3_0/source/libads/kerberos_verify.c === --- branches/SAMBA_3_0/source/libads/kerberos_verify.c 2005-09-13 21:21:43 UTC (rev 10210) +++ branches/SAMBA_3_0/source/libads/kerberos_verify.c 2005-09-13 21:26:25 UTC (rev 10211) @@ -128,7 +128,11 @@ ZERO_STRUCT(kt_cursor); out: - + + for (i = 0; i sizeof(valid_princ_formats) / sizeof(valid_princ_formats[0]); i++) { + SAFE_FREE(valid_princ_formats[i]); + } + if (!auth_ok) { if (!number_matched_principals) { DEBUG(3, (ads_keytab_verify_ticket: no keytab principals matched expected file service name.\n)); Modified: trunk/source/libads/kerberos_verify.c === --- trunk/source/libads/kerberos_verify.c 2005-09-13 21:21:43 UTC (rev 10210) +++ trunk/source/libads/kerberos_verify.c 2005-09-13 21:26:25 UTC (rev 10211) @@ -128,7 +128,11 @@ ZERO_STRUCT(kt_cursor); out: - + + for (i = 0; i sizeof(valid_princ_formats) / sizeof(valid_princ_formats[0]); i++) { + SAFE_FREE(valid_princ_formats[i]); + } + if (!auth_ok) { if (!number_matched_principals) { DEBUG(3, (ads_keytab_verify_ticket: no keytab principals matched expected file service name.\n));
svn commit: samba r10212 - in branches/SAMBA_4_0/swat/scripting/client: .
Author: deryck Date: 2005-09-13 21:31:40 + (Tue, 13 Sep 2005) New Revision: 10212 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10212 Log: An IE fix. Must set initial values in the onload function. deryck Modified: branches/SAMBA_4_0/swat/scripting/client/desktop.js Changeset: Modified: branches/SAMBA_4_0/swat/scripting/client/desktop.js === --- branches/SAMBA_4_0/swat/scripting/client/desktop.js 2005-09-13 21:26:25 UTC (rev 10211) +++ branches/SAMBA_4_0/swat/scripting/client/desktop.js 2005-09-13 21:31:40 UTC (rev 10212) @@ -8,12 +8,6 @@ // The global widget we attach everything to var w = new QxWidget(); -with(w) { - setTop(0); - setLeft(0); - setWidth(docX()); - setHeight(docY()); -} /* Qooxdoo's browser sniffer doesn't distinguish IE version. We'll cover IE 6 for now, but these checks need to be @@ -143,6 +137,13 @@ window.application.main = function() { + with(w) { + setTop(0); + setLeft(0); + setWidth(docX()); + setHeight(docY()); + } + var doc = this.getClientWindow().getClientDocument(); doc.addEventListener(contextmenu, contextMenu); doc.add(w);
Re: svn commit: samba r10211 - branches/SAMBA_3_0/source/libads trunk/source/libads
On Tue, Sep 13, 2005 at 09:26:25PM +, [EMAIL PROTECTED] wrote: Author: gd Date: 2005-09-13 21:26:25 + (Tue, 13 Sep 2005) New Revision: 10211 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10211 Log: Fix another memleak (this time in the kerberos keytab code) Wow - I thought I'd valgrinded those to death You never know huh... :-). Well done ! Jeremy.
svn commit: samba r10213 - in branches/SAMBA_4_0/source: ldap_server libcli/cldap libcli/ldap
Author: tridge Date: 2005-09-13 22:05:45 + (Tue, 13 Sep 2005) New Revision: 10213 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10213 Log: fixed a memory leak in the ldap client and server code spotted by Karl Melcher. ldap_encode() now takes a memory context to use for the data blob Modified: branches/SAMBA_4_0/source/ldap_server/ldap_server.c branches/SAMBA_4_0/source/libcli/cldap/cldap.c branches/SAMBA_4_0/source/libcli/ldap/ldap.c branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c Changeset: Modified: branches/SAMBA_4_0/source/ldap_server/ldap_server.c === --- branches/SAMBA_4_0/source/ldap_server/ldap_server.c 2005-09-13 21:31:40 UTC (rev 10212) +++ branches/SAMBA_4_0/source/ldap_server/ldap_server.c 2005-09-13 22:05:45 UTC (rev 10213) @@ -87,12 +87,14 @@ DATA_BLOB b; msg = call-replies-msg; - if (!ldap_encode(msg, b)) { + if (!ldap_encode(msg, b, call)) { DEBUG(0,(Failed to encode ldap reply of type %d\n, msg-type)); goto failed; } status = data_blob_append(call, blob, b.data, b.length); + data_blob_free(b); + if (!NT_STATUS_IS_OK(status)) goto failed; DLIST_REMOVE(call-replies, call-replies); Modified: branches/SAMBA_4_0/source/libcli/cldap/cldap.c === --- branches/SAMBA_4_0/source/libcli/cldap/cldap.c 2005-09-13 21:31:40 UTC (rev 10212) +++ branches/SAMBA_4_0/source/libcli/cldap/cldap.c 2005-09-13 22:05:45 UTC (rev 10213) @@ -337,12 +337,11 @@ goto failed; } - if (!ldap_encode(msg, req-encoded)) { + if (!ldap_encode(msg, req-encoded, req)) { DEBUG(0,(Failed to encode cldap message to %s:%d\n, req-dest_addr, req-dest_port)); goto failed; } - talloc_steal(req, req-encoded.data); DLIST_ADD_END(cldap-send_queue, req, struct cldap_request *); @@ -389,13 +388,12 @@ msg-type = LDAP_TAG_SearchResultEntry; msg-r.SearchResultEntry = *io-response; - if (!ldap_encode(msg, blob1)) { + if (!ldap_encode(msg, blob1, req)) { DEBUG(0,(Failed to encode cldap message to %s:%d\n, req-dest_addr, req-dest_port)); status = NT_STATUS_INVALID_PARAMETER; goto failed; } - talloc_steal(req, blob1.data); } else { blob1 = data_blob(NULL, 0); } @@ -403,13 +401,12 @@ msg-type = LDAP_TAG_SearchResultDone; msg-r.SearchResultDone = *io-result; - if (!ldap_encode(msg, blob2)) { + if (!ldap_encode(msg, blob2, req)) { DEBUG(0,(Failed to encode cldap message to %s:%d\n, req-dest_addr, req-dest_port)); status = NT_STATUS_INVALID_PARAMETER; goto failed; } - talloc_steal(req, blob2.data); req-encoded = data_blob_talloc(req, NULL, blob1.length + blob2.length); if (req-encoded.data == NULL) goto failed; Modified: branches/SAMBA_4_0/source/libcli/ldap/ldap.c === --- branches/SAMBA_4_0/source/libcli/ldap/ldap.c2005-09-13 21:31:40 UTC (rev 10212) +++ branches/SAMBA_4_0/source/libcli/ldap/ldap.c2005-09-13 22:05:45 UTC (rev 10213) @@ -189,7 +189,7 @@ } } -BOOL ldap_encode(struct ldap_message *msg, DATA_BLOB *result) +BOOL ldap_encode(struct ldap_message *msg, DATA_BLOB *result, TALLOC_CTX *mem_ctx) { struct asn1_data data; int i, j; @@ -462,7 +462,7 @@ return False; } - *result = data_blob(data.data, data.length); + *result = data_blob_talloc(mem_ctx, data.data, data.length); asn1_free(data); return True; } Modified: branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c === --- branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c 2005-09-13 21:31:40 UTC (rev 10212) +++ branches/SAMBA_4_0/source/libcli/ldap/ldap_client.c 2005-09-13 22:05:45 UTC (rev 10213) @@ -497,7 +497,7 @@ msg-messageid = req-messageid; - if (!ldap_encode(msg, req-data)) { + if (!ldap_encode(msg, req-data, req)) { goto failed; }
svn commit: samba r10214 - in trunk/source: include rpc_parse rpc_server
Author: jerry Date: 2005-09-13 22:15:19 + (Tue, 13 Sep 2005) New Revision: 10214 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10214 Log: Add another info level for QueryServiceConfi2(). Fix one more error dialog window returned from the MMC service control applet. Modified: trunk/source/include/rpc_svcctl.h trunk/source/rpc_parse/parse_svcctl.c trunk/source/rpc_server/srv_svcctl_nt.c Changeset: Modified: trunk/source/include/rpc_svcctl.h === --- trunk/source/include/rpc_svcctl.h 2005-09-13 22:05:45 UTC (rev 10213) +++ trunk/source/include/rpc_svcctl.h 2005-09-13 22:15:19 UTC (rev 10214) @@ -166,11 +166,10 @@ typedef struct { uint32 reset_period; -UNISTR2 *rebootmsg; +UNISTR2 *rebootmsg;/* i have no idea if these are UNISTR2's. I can't get a good trace */ UNISTR2 *command; -uint32 nActions; -SC_ACTION *saActions; -UNISTR2 *description; +uint32 num_actions; +SC_ACTION *actions; } SERVICE_FAILURE_ACTIONS; typedef struct Service_info_struct { Modified: trunk/source/rpc_parse/parse_svcctl.c === --- trunk/source/rpc_parse/parse_svcctl.c 2005-09-13 22:05:45 UTC (rev 10213) +++ trunk/source/rpc_parse/parse_svcctl.c 2005-09-13 22:15:19 UTC (rev 10214) @@ -793,6 +793,78 @@ /*** / +static BOOL svcctl_io_action( const char *desc, SC_ACTION *action, prs_struct *ps, int depth ) +{ + + prs_debug(ps, depth, desc, svcctl_io_action); + depth++; + + if ( !prs_uint32(type, ps, depth, action-type) ) + return False; + if ( !prs_uint32(delay, ps, depth, action-delay) ) + return False; + + return True; +} + +/*** +/ + +BOOL svcctl_io_service_fa( const char *desc, SERVICE_FAILURE_ACTIONS *fa, RPC_BUFFER *buffer, int depth ) +{ +prs_struct *ps = buffer-prs; + int i; + +prs_debug(ps, depth, desc, svcctl_io_service_description); +depth++; + + if ( !prs_uint32(reset_period, ps, depth, fa-reset_period) ) + return False; + + if ( !prs_pointer( desc, ps, depth, (void**)fa-rebootmsg, sizeof(UNISTR2), (PRS_POINTER_CAST)prs_io_unistr2 ) ) + return False; + if ( !prs_pointer( desc, ps, depth, (void**)fa-command, sizeof(UNISTR2), (PRS_POINTER_CAST)prs_io_unistr2 ) ) + return False; + + if ( !prs_uint32(num_actions, ps, depth, fa-num_actions) ) + return False; + + if ( UNMARSHALLING(ps) fa-num_actions ) { + if ( !(fa-actions = TALLOC_ARRAY( get_talloc_ctx(), SC_ACTION, fa-num_actions )) ) { + DEBUG(0,(svcctl_io_service_fa: talloc() failure!\n)); + return False; + } + } + + for ( i=0; ifa-num_actions; i++ ) { + if ( !svcctl_io_action( actions, fa-actions[i], ps, depth ) ) + return False; + } + + return True; +} + +/*** +/ + +uint32 svcctl_sizeof_service_fa( SERVICE_FAILURE_ACTIONS *fa) +{ + uint32 size = 0; + + if ( !fa ) + return 0; + + size = sizeof(uint32) * 2; + size += sizeof_unistr2( fa-rebootmsg ); + size += sizeof_unistr2( fa-command ); + size += sizeof(SC_ACTION) * fa-num_actions; + + return size; +} + +/*** +/ + BOOL svcctl_io_r_query_service_config2(const char *desc, SVCCTL_R_QUERY_SERVICE_CONFIG2 *r_u, prs_struct *ps, int depth) { if ( !r_u ) Modified: trunk/source/rpc_server/srv_svcctl_nt.c === --- trunk/source/rpc_server/srv_svcctl_nt.c 2005-09-13 22:05:45 UTC (rev 10213) +++ trunk/source/rpc_server/srv_svcctl_nt.c 2005-09-13 22:15:19 UTC (rev 10214) @@ -655,17 +655,33 @@ description = svcctl_lookup_description( info-name, p-pipe_user.nt_user_token ); ZERO_STRUCTP( desc_buf ); + init_service_description_buffer( desc_buf, description ); svcctl_io_service_description( , desc_buf, r_u-buffer, 0 ); buffer_size = svcctl_sizeof_service_description( desc_buf ); + break; } break; +
svn commit: samba r10215 - in branches/SAMBA_3_0/source/libsmb: .
Author: jra Date: 2005-09-13 22:23:59 + (Tue, 13 Sep 2005) New Revision: 10215 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10215 Log: Fix several memory corruption bugs now we're testing this. Jeremy. Modified: branches/SAMBA_3_0/source/libsmb/smb_share_modes.c Changeset: Modified: branches/SAMBA_3_0/source/libsmb/smb_share_modes.c === --- branches/SAMBA_3_0/source/libsmb/smb_share_modes.c 2005-09-13 22:15:19 UTC (rev 10214) +++ branches/SAMBA_3_0/source/libsmb/smb_share_modes.c 2005-09-13 22:23:59 UTC (rev 10215) @@ -62,21 +62,14 @@ return ret; } -/* Create locking key. */ - -struct samba_locking_key { - SMB_DEV_T dev; - SMB_INO_T ino; -}; - static TDB_DATA get_locking_key(uint64_t dev, uint64_t ino) { - static struct samba_locking_key lk; + static struct locking_key lk; TDB_DATA ld; - memset(lk, '\0', sizeof(struct samba_locking_key)); + memset(lk, '\0', sizeof(struct locking_key)); lk.dev = (SMB_DEV_T)dev; - lk.ino = (SMB_INO_T)ino; + lk.inode = (SMB_INO_T)ino; ld.dptr = (char *)lk; ld.dsize = sizeof(lk); return ld; @@ -168,6 +161,7 @@ struct locking_data *ld = NULL; /* internal samba db state. */ share_mode_entry *shares = NULL; size_t i; + int list_num; *pp_list = NULL; *p_delete_on_close = 0; @@ -193,11 +187,12 @@ memset(list, '\0', num_share_modes * sizeof(struct smb_share_mode_entry)); - shares = (share_mode_entry *)(db_data.dptr + sizeof(struct locking_data)); + shares = (share_mode_entry *)(db_data.dptr + sizeof(share_mode_entry)); + list_num = 0; for (i = 0; i num_share_modes; i++) { share_mode_entry *share = shares[i]; - struct smb_share_mode_entry *sme = list[i]; + struct smb_share_mode_entry *sme = list[list_num]; pid_t pid = share-pid; /* Check this process really exists. */ @@ -214,9 +209,10 @@ sme-open_time.tv_usec = share-time.tv_usec; sme-file_id = (uint32_t)share-share_file_id; sme-pid = share-pid; + list_num++; } - if (i == 0) { + if (list_num == 0) { free(db_data.dptr); free(list); return 0; @@ -224,7 +220,8 @@ *p_delete_on_close = ld-u.s.delete_on_close; *pp_list = list; - return i; + free(db_data.dptr); + return list_num; } /* @@ -248,20 +245,20 @@ db_data = tdb_fetch(db_ctx-smb_tdb, locking_key); if (!db_data.dptr) { /* We must create the entry. */ - db_data.dptr = malloc(sizeof(struct locking_data) + sizeof(share_mode_entry) + strlen(filename) + 1); + db_data.dptr = malloc((2*sizeof(share_mode_entry)) + strlen(filename) + 1); if (!db_data.dptr) { return -1; } ld = (struct locking_data *)db_data.dptr; ld-u.s.num_share_mode_entries = 1; ld-u.s.delete_on_close = 0; - shares = (share_mode_entry *)(db_data.dptr + sizeof(struct locking_data)); + shares = (share_mode_entry *)(db_data.dptr + sizeof(share_mode_entry)); create_share_mode_entry(shares, new_entry); - memcpy(db_data.dptr + sizeof(struct locking_data) + sizeof(share_mode_entry), + memcpy(db_data.dptr + 2*sizeof(share_mode_entry), filename, strlen(filename) + 1); - db_data.dsize = sizeof(struct locking_data) + sizeof(share_mode_entry) + strlen(filename) + 1; + db_data.dsize = 2*sizeof(share_mode_entry) + strlen(filename) + 1; if (tdb_store(db_ctx-smb_tdb, locking_key, db_data, TDB_INSERT) == -1) { free(db_data.dptr); return -1; @@ -281,19 +278,21 @@ orig_num_share_modes = ld-u.s.num_share_mode_entries; /* Copy the original data. */ - memcpy(new_data_p, db_data.dptr, sizeof(struct locking_data) + (orig_num_share_modes*sizeof(share_mode_entry))); + memcpy(new_data_p, db_data.dptr, (orig_num_share_modes+1)*sizeof(share_mode_entry)); /* Add in the new share mode */ - shares = (share_mode_entry *)(db_data.dptr + sizeof(struct locking_data) + (orig_num_share_modes*sizeof(share_mode_entry))); + shares = (share_mode_entry *)(new_data_p + + ((orig_num_share_modes+1)*sizeof(share_mode_entry))); + create_share_mode_entry(shares, new_entry); ld = (struct locking_data *)new_data_p; ld-u.s.num_share_mode_entries++; /* Append the original filename */ - memcpy(new_data_p + sizeof(struct locking_data) +
svn commit: samba r10216 - in branches/SAMBA_4_0: .
Author: tridge Date: 2005-09-13 22:58:38 + (Tue, 13 Sep 2005) New Revision: 10216 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10216 Log: Chris Samuel pointed out that we should note the need to run provision as a user with write permission on the install directory Modified: branches/SAMBA_4_0/howto.txt Changeset: Modified: branches/SAMBA_4_0/howto.txt === --- branches/SAMBA_4_0/howto.txt2005-09-13 22:23:59 UTC (rev 10215) +++ branches/SAMBA_4_0/howto.txt2005-09-13 22:58:38 UTC (rev 10216) @@ -59,9 +59,10 @@ The provision step sets up a basic user database. Make sure your smbscript binary is installed in a directory listed in your PATH environment variable. It is presumed it's available just like any other commands from your shell. +Must be run as a user with permission to write to the install directory. - $ cd source - $ ./setup/provision --realm=YOUR.REALM --domain=YOURDOM --adminpass=SOMEPASSWORD + # cd source + # ./setup/provision --realm=YOUR.REALM --domain=YOURDOM --adminpass=SOMEPASSWORD Step 5: Create a simple smb.conf
svn commit: samba r10217 - in branches/SAMBA_3_0/source/libsmb: .
Author: jra Date: 2005-09-13 23:11:23 + (Tue, 13 Sep 2005) New Revision: 10217 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10217 Log: Remember to exit correctly when we find a matching entry to change. Jeremy. Modified: branches/SAMBA_3_0/source/libsmb/smb_share_modes.c Changeset: Modified: branches/SAMBA_3_0/source/libsmb/smb_share_modes.c === --- branches/SAMBA_3_0/source/libsmb/smb_share_modes.c 2005-09-13 22:58:38 UTC (rev 10216) +++ branches/SAMBA_3_0/source/libsmb/smb_share_modes.c 2005-09-13 23:11:23 UTC (rev 10217) @@ -429,7 +429,7 @@ ld = (struct locking_data *)db_data.dptr; num_share_modes = ld-u.s.num_share_mode_entries; - shares = (share_mode_entry *)(db_data.dptr + sizeof(struct locking_data)); + shares = (share_mode_entry *)(db_data.dptr + sizeof(share_mode_entry)); for (i = 0; i num_share_modes; i++) { share_mode_entry *share = shares[i]; @@ -442,6 +442,7 @@ if (share_mode_entry_equal(set_entry, share)) { create_share_mode_entry(share, new_entry); + found_entry = 1; break; } }
Build status as of Wed Sep 14 00:00:02 2005
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2005-09-13 00:00:09.0 + +++ /home/build/master/cache/broken_results.txt 2005-09-14 00:00:09.0 + @@ -1,17 +1,17 @@ -Build status as of Tue Sep 13 00:00:02 2005 +Build status as of Wed Sep 14 00:00:02 2005 Build counts: Tree Total Broken Panic ccache 6 2 0 -distcc 8 1 0 -lorikeet-heimdal 33 15 0 -ppp 22 0 0 -rsync36 2 0 +distcc 8 2 0 +lorikeet-heimdal 33 14 0 +ppp 21 0 0 +rsync35 2 0 samba1 0 0 samba-docs 0 0 0 -samba4 41 13 0 -samba_3_038 14 0 -smb-build29 3 0 -talloc 7 3 0 +samba4 37 12 1 +samba_3_035 13 0 +smb-build27 2 0 +talloc 8 3 0 tdb 6 3 0
svn commit: samba r10218 - in trunk/source: . include libsmb
Author: jra Date: 2005-09-14 00:36:01 + (Wed, 14 Sep 2005) New Revision: 10218 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10218 Log: Adding lib share mode db code - Volker I hate you for making the names of some of these things different (share_mode_entry - struct share_mode_entry for example :-) Jeremy. Added: trunk/source/include/smb_share_modes.h trunk/source/libsmb/smb_share_modes.c Modified: trunk/source/Makefile.in trunk/source/configure.in Changeset: Sorry, the patch is too large (736 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10218
svn commit: samba r10219 - in trunk/source/libsmb: .
Author: jra Date: 2005-09-14 00:57:23 + (Wed, 14 Sep 2005) New Revision: 10219 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10219 Log: 64-bit fix - we can't return a pointer as an int. Derryl please check ! Jeremy Modified: trunk/source/libsmb/libsmb_compat.c Changeset: Modified: trunk/source/libsmb/libsmb_compat.c === --- trunk/source/libsmb/libsmb_compat.c 2005-09-14 00:36:01 UTC (rev 10218) +++ trunk/source/libsmb/libsmb_compat.c 2005-09-14 00:57:23 UTC (rev 10219) @@ -420,7 +420,7 @@ { SMBCFILE * file = statcont-open_print_job(statcont, fname); if (!file) return -1; - return (int) file; + return file-cli_fd; } int smbc_list_print_jobs(const char *purl, smbc_list_print_job_fn fn)
svn commit: samba r10220 - in trunk/source: lib libads param passdb
Author: jra Date: 2005-09-14 01:32:37 + (Wed, 14 Sep 2005) New Revision: 10220 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=10220 Log: Fix more 64-bit warnings with an ldap configured build. Inspired by Volker :-). Jeremy. Modified: trunk/source/lib/smbldap.c trunk/source/libads/ldap.c trunk/source/param/config_ldap.c trunk/source/passdb/pdb_ldap.c Changeset: Modified: trunk/source/lib/smbldap.c === --- trunk/source/lib/smbldap.c 2005-09-14 00:57:23 UTC (rev 10219) +++ trunk/source/lib/smbldap.c 2005-09-14 01:32:37 UTC (rev 10220) @@ -267,7 +267,11 @@ return; while ( list[i] ) { - SAFE_FREE( list[i] ); + /* SAFE_FREE generates a warning here that can't be gotten rid +* of with CONST_DISCARD */ + if (list[i] != NULL) { + free(CONST_DISCARD(char *, list[i])); + } i+=1; } Modified: trunk/source/libads/ldap.c === --- trunk/source/libads/ldap.c 2005-09-14 00:57:23 UTC (rev 10219) +++ trunk/source/libads/ldap.c 2005-09-14 01:32:37 UTC (rev 10220) @@ -2104,7 +2104,7 @@ if ((*num_strings) != range_start) { DEBUG(1, (ads_pull_strings_range: Range attribute (%s) doesn't start at %u, but at %lu - aborting range retreival\n, - range_attr, *num_strings + 1, range_start)); + range_attr, (unsigned int)(*num_strings) + 1, range_start)); ldap_memfree(range_attr); *more_strings = False; return NULL; @@ -2140,7 +2140,7 @@ *next_attribute = talloc_asprintf(mem_ctx, %s;range=%d-*, field, - *num_strings); + (int)*num_strings); if (!*next_attribute) { DEBUG(1, (talloc_asprintf for next attribute failed!\n)); Modified: trunk/source/param/config_ldap.c === --- trunk/source/param/config_ldap.c2005-09-14 00:57:23 UTC (rev 10219) +++ trunk/source/param/config_ldap.c2005-09-14 01:32:37 UTC (rev 10220) @@ -82,7 +82,7 @@ pstring filter; pstring option_name; pstring option_value; - char **attr_list = NULL; + const char **attr_list = NULL; int rc; int count; Modified: trunk/source/passdb/pdb_ldap.c === --- trunk/source/passdb/pdb_ldap.c 2005-09-14 00:57:23 UTC (rev 10219) +++ trunk/source/passdb/pdb_ldap.c 2005-09-14 01:32:37 UTC (rev 10220) @@ -834,7 +834,7 @@ if (ldap_state-is_nds_ldap) { char *user_dn; - int pwd_len; + size_t pwd_len; char clear_text_pw[512]; /* Make call to Novell eDirectory ldap extension to get clear text password.