Re: [Samba] Password Change WinXP
No. Something is wrong somewhere. Do you have a local account on WinXP? Hi ! No the account does not exist locally. But the machine has already recognized the password change ... without any intervention of me -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] workgroup drive mapping
Hi All, I have samba serving homes and group shares in my workgroup. 30% of client systems are portables and spend 50% of their time off site. Others are fixed single user workstations. I have no need to operate a domain, however what options do I have to simplify mapping drives once local network or VPN access is restored. Is there some logon script type stuff I can use just for the workgroup? or some windows client software? Thanks Rob -- Rob Shepherd | Computer and Network Engineer | Technium CAST | LL57 4HJ rob [receives mail at] techniumcast.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] administrative shares
Hi all, I cannot find a good description of how to use the windows administrative shares. Since I'd like to mount them from a Linux box, using samba, to perform backup of the user client, I'd like to know how can I access them. In particular, in a computer where I've got a single user, without password, what are the share credentials? And how can I set permissions for such share? Any good document? Thanks, Luca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] unsuccessful Samba install on AIX 4.3.3.
On Mon, Sep 18, 2006 at 09:53:40PM -0400, Joseph E Murphy wrote: anyone got any ideas how to fix this... When I run the testparm program to test the smb.conf file it processes all of the sections I have configured and then does a Segmentation fault(coredump). This is for AIX 4.3.3. You did not tell which Samba version you have. Did you compile it yourself (which compiler?), did you download it from somewhere? And, can you do a 'truss testparm'? Volker pgpnHGcrpy3il.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] Problem with large files
Hi we have samba 3.0.14a on FreeBSD 5.4. We tried with different kind of locking and oplocks (both enabled and disabled). If we try to copy from a Windows XP client a file larger than 3g, we get these error: Cannot copy XXX. The specified network name is no longer available. We traced this problem in the logs (log level 10) and we got this error [2006/09/19 10:29:41, 5] smbd/uid.c:change_to_user(281) change_to_user uid=(3280,3280) gid=(0,952) [2006/09/19 10:29:41, 4] smbd/vfs.c:vfs_ChDir(660) vfs_ChDir to /data/exports/Services/Services [2006/09/19 10:29:41, 10] smbd/nttrans.c:reply_ntcreate_and_X(607) reply_ntcreateX: flags = 0x16, desired_access = 0x20189 file_attributes = 0x80, share_access = 0x7, create_disposition = 0x1 create_options = 0x940 root_dir_fid = 0x0 [2006/09/19 10:29:41, 10] smbd/nttrans.c:map_create_disposition(341) map_create_disposition: Mapped create_disposition 0x1 to 0x1 [2006/09/19 10:29:41, 10] smbd/nttrans.c:map_share_mode(423) map_share_mode: FILE_SHARE_DELETE requested. open_mode = 0x8000 [2006/09/19 10:29:41, 10] smbd/nttrans.c:map_share_mode(480) map_share_mode: Mapped desired access 0x20189, share access 0x7, file attributes 0x80 to open_mode 0x8040 [2006/09/19 10:29:41, 5] smbd/filename.c:unix_convert(108) unix_convert called on file s-comp/IFOM/PROVA/Caschetto.tib [2006/09/19 10:29:41, 10] smbd/statcache.c:stat_cache_lookup(210) stat_cache_lookup: lookup failed for name [S-COMP/IFOM/PROVA/CASCHETTO.TIB] [2006/09/19 10:29:41, 10] smbd/statcache.c:stat_cache_lookup(210) stat_cache_lookup: lookup failed for name [S-COMP/IFOM/PROVA] [2006/09/19 10:29:41, 10] smbd/statcache.c:stat_cache_lookup(210) stat_cache_lookup: lookup failed for name [S-COMP/IFOM] [2006/09/19 10:29:41, 10] smbd/statcache.c:stat_cache_lookup(210) stat_cache_lookup: lookup failed for name [S-COMP] [2006/09/19 10:29:41, 5] smbd/statcache.c:stat_cache_add(135) stat_cache_add: Added entry (8289d20:size20) S-COMP/IFOM/PROVA/CASCHETTO.TIB - s-comp/IFOM/PROVA/Caschetto.tib [2006/09/19 10:29:41, 5] smbd/filename.c:unix_convert(170) conversion finished s-comp/IFOM/PROVA/Caschetto.tib - s-comp/IFOM/PROVA/Caschetto.tib [2006/09/19 10:29:41, 3] smbd/dosmode.c:unix_mode(111) unix_mode(s-comp/IFOM/PROVA/Caschetto.tib) returning 0664 [2006/09/19 10:29:41, 5] smbd/files.c:file_new(129) allocated file structure 3875, fnum = 7971 (1 used) [2006/09/19 10:29:41, 10] smbd/open.c:open_file_shared1(1047) open_file_shared: fname = s-comp/IFOM/PROVA/Caschetto.tib, dos_attrs = 80, share_mode = 8040, ofun = 1, mode = 664, oplock request = 3 [2006/09/19 10:29:41, 8] smbd/dosmode.c:dos_mode(283) dos_mode: s-comp/IFOM/PROVA/Caschetto.tib [2006/09/19 10:29:41, 8] smbd/dosmode.c:dos_mode_from_sbuf(151) dos_mode_from_sbuf returning [2006/09/19 10:29:41, 8] smbd/dosmode.c:dos_mode(315) dos_mode returning [2006/09/19 10:29:41, 10] locking/locking.c:get_share_modes(480) get_share_modes: share_mode_entry[0]: pid = 93583, share_mode = 0x11, desired_access = 0x30196, port = 0x0, type= 0x0, file_id = 395, dev = 0x412, inode = 6383100 [2006/09/19 10:29:41, 2] smbd/open.c:check_share_mode(530) Share violation on file (4,1,1,93583,s-comp/IFOM/PROVA/Caschetto.tib,fcbopen = 0, flags = 0) = 0 [2006/09/19 10:29:41, 10] smbd/open.c:fd_open(50) fd_open: name s-comp/IFOM/PROVA/Caschetto.tib, flags = 00 mode = 0664, fd = 26. [2006/09/19 10:29:41, 2] smbd/open.c:open_file(245) vdaelli opened file s-comp/IFOM/PROVA/Caschetto.tib read=Yes write=No (numopen=1) [2006/09/19 10:29:41, 4] smbd/open.c:open_file_shared1(1204) open_file_shared : share_mode deny - calling open_file with flags=0x0 flags2=0x0 mode=0664 returned 1 [2006/09/19 10:29:41, 10] smbd/open.c:defer_open_sharing_error(875) defer_open_sharing_error: time [1158654581.742007] adding deferred open entry for mid 52224, file s-comp/IFOM/PROVA/Caschetto.tib [2006/09/19 10:29:41, 10] smbd/process.c:push_sharing_violation_open_smb_message(268) push_sharing_violation_open_smb_message: pushing message len 154 mid 52224 timeout time [1158654582.692007] [2006/09/19 10:29:41, 10] smbd/process.c:push_queued_message(125) push_message: pushed message length 154 on queue smb_sharing_violation_queue [2006/09/19 10:29:41, 10] locking/locking.c:add_deferred_open(1183) add_deferred_open: creating entry for file s-comp/IFOM/PROVA/Caschetto.tib. num_deferred_open_entries = 1 --- while in this case the function get_share_modes is invoked, and we get error there, if we copy a file smaller the function is not invoked and we don't get any error. In both cases ftruncate is successfullt called and we don't get any error. Thanks for your help Valerio Daelli -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Setting Windows drivers gives access denied error
Good morning! For some time I have been experiencing a problem with adding Windows drivers for printers available and configured in CUPS already. Not being utterly familiar with how the process works I first tried it as root from different Windows machines, both W2K and XP Pro. I saw the driver files being uploaded, but then got an error message 'Printer settings could not be saved. Access is denied.'. So I decided to do it 'on foot' like the official Samba-3 book describes. Adding the drivers again was not a problem, but setting them gave a 'SetPrinter call failed! result was WERR_ACCESS_DENIED'. Version of Samba is 3.0.7 on Solaris 5.9, so not the latest one, but it used to work, and now it doesn't, without any of my colleagues or me having changed a setting (at least not consciously). testparm smb.conf showed no errors. The relevant bits in smb.conf looks like this: [global] workgroup = [snipped] netbios name = [snipped] server string = [snipped] interfaces = [snipped] nt acl support = yes wins server = [snipped] socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 security = domain encrypt passwords = Yes hosts allow = [snipped] update encrypted = Yes log file = /var/log/samba.d/smb.%m max log size = 1 log level = 2 name resolve order = lmhosts hosts wins bcast add user script = /usr/sbin/useradd -d /dev/null -g 212 -s /bin/false -M %u winbind trusted domains only = yes logon script = %U.pyw logon path = \\%L\%u\profile logon home = \\%L\%u logon drive = H: password server = [snipped] domain master = No preferred master = No domain logons = No os level = 69 dns proxy = No load printers = yes printing = cups printcap name = cups printer admin = root, pcadmin #disable spoolss = No use client driver = No message command = /bin/mailx -s 'message from %f' \ root %s; rm %s [print$] path = /usr/local/samba/printers browseable = yes read only = yes write list = root, pcadmin guest ok = Yes [printers] comment = Test all printers path = /tmp browseable = no writeable = no printable = yes printer admin = root, pcadmin create mask = 0600 guest ok = Yes use client driver =yes I came as far as successfully adding the drivers to the appropriate directory with % /usr/local/samba/bin/smbclient //localhost/print\$ -U root \ -c 'cd W32X86; put [list of drivers snipped]' Password: Domain=[snipped] OS=[Unix] Server=[Samba 3.0.7] [list of drivers snipped] % /usr/local/samba/bin/rpcclient -U root -c \ 'adddriver Windows NT x86 gavin:[list of drivers snipped]' \ localhost and got a success message. But trying to set the drivers resulted in an error: % /usr/local/samba/bin/rpcclient -U root -c \ 'setdriver gavin gavin' localhost added interface ip=[snipped] bcast=[snipped] nmask=[snipped] Password: SetPrinter call failed! result was WERR_ACCESS_DENIED First I tried setting 'use client driver =no' in the printers section, but that didn't make any difference. Then I got advised by a friend to change the following settings: [global] log level = 7 debug uid = yes [print$] printer admin = root, pcadmin #write list = root, pcadmin Having done that even copying the drivers failed, so I uncommented the write list entry again. Now I have some 1300 lines of output due to the high log level, but what should I actually be looking for? Regards, Gunde -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Setting Initial Passwords
HI, I'm trying to write a perl script to add new users and set initial passwords for them using smbpasswd. The relevant parts of the script are as follows @tmp = split(/:/,); $login = $tmp[0]; $password = $tmp[1]; print $login $password\n; exec(smbpasswd -a $login -s $password); The print statement works and I see the username and password. However the exec statement fails and just dispalys the smbpasswd help screen. Is it possible to add new accounts and set their initial passwords with smbpasswd. Tony -- Tony Molloy. Dept. of Comp. Sci. University of Limerick -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] samba and share quota
Hi to all, I'm looking for a tutorial/howto to manage disk quota share. I found some documents about filesystem quotas using quotatool but none about quota on samba shares. In smb.conf man I found get quota command and set quota command but I didn't understand if I can use them to set share quota and I didn't find documents about it. Anyone knows a tutorial/howto about it? Thanks, Fabio -- Dott. Fabio Marcone 2T srl Telefono+39 - 0871- 540154 Fax +39 - 0871- 571594 Email [EMAIL PROTECTED] Indirizzo Viale B. Croce 573 66013 Chieti Scalo (CH) GNU/Linux registered user #400424 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Avoiding local unix accounts with force user. Is that possible?
Yes, configure your nsswitch and your libnss to query your LDAP server and you will get your LDAP accounts as UN*X accounts. Thanks for your reply. Are you essentially suggesting me to replace my /etc/passwd authentication completely with with LDAP backend? I know about this possibility, but I have two issues with it: 1) I am not sure if this is going to work for the root and a couple of other (not related to Samba) UN*X accounts that do not exist on the LDAP server. Or will such accounts be untouched and continue to be working from /etc/passwd file? 2) Also, the LDAP idea is generally not that great because, as I said in my previous post, my intention is to replace ANY samba user who is mapping the share with the same UN*X account (that does not exist in LDAP database). Like this: user1, user2, etc. are auhenticated by Samba (via ADS/LDAP) and become the same samba_user:samba_group for the actual file operations through the force user and force group directives. The samba_user exists only in /etc/passwd and not in LDAP database and that is the way I want it. What I want to avoid is having user1, user2, etc. in my /etc/passwd file because they are NOT needed for any authentication or permissions settings. In another words, why is there a need to have user1, user2 locally *at all* if I use force user/force group directives for permissions settings and LDAP for password checking? -- Regards, A\N -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] RE: Setting Initial Passwords
it seems that it does work in this way: echo -e '$password\n$password' | smbpasswd -s -a $login instead of smbpasswd -a $login -s $password at least form commad line. I don't know from perl. Obviosuly you should first create the linux user. HIH, Gianluca -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[OT] Re: [Samba] Avoiding local unix accounts with force user. Is that possible?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/19/2006 10:01 AM, Andrei Nazarenko escreveu: Yes, configure your nsswitch and your libnss to query your LDAP server and you will get your LDAP accounts as UN*X accounts. Thanks for your reply. Are you essentially suggesting me to replace my /etc/passwd authentication completely with with LDAP backend? No, I was suggesting you to integrate you authentication system using passwd/shadow and LDAP. I know about this possibility, but I have two issues with it: 1) I am not sure if this is going to work for the root and a couple of other (not related to Samba) UN*X accounts that do not exist on the LDAP server. Or will such accounts be untouched and continue to be working from /etc/passwd file? Exactly, and it should not work for that type of accounts. There are several ways to integrate LDAP and one of them is keep the system accounts (including) root out of LDAP and individually in each server. 2) Also, the LDAP idea is generally not that great because, as I said in my previous post, my intention is to replace ANY samba user who is mapping the share with the same UN*X account (that does not exist in LDAP database). Like this: user1, user2, etc. are auhenticated by Samba (via ADS/LDAP) and become the same samba_user:samba_group for the actual file operations through the force user and force group directives. The samba_user exists only in /etc/passwd and not in LDAP database and that is the way I want it. Why? That sounds really *stange* and starts to be a little bit off-topic on this mail list. I don't know exactly why are you using 'force user' and 'force group', but it starts to look like that you could easily solve this using some type of system account or a generic nobody user, of course, it will depend on your setup and on your needs, but there are several ways to go. What I want to avoid is having user1, user2, etc. in my /etc/passwd file because they are NOT needed for any authentication or permissions settings. That's what LDAP is for, you can extend you sambaUser object to have UN*X information and you can do it per user. It could make your life easier, but just if you want to. :) In another words, why is there a need to have user1, user2 locally *at all* if I use force user/force group directives for permissions settings and LDAP for password checking? There is no need. Special configurations needs special workarounds, you could have your special account inside the LDAP, or you can keep creating it by hand, or by NIS or with some magic script. -- Regards, A\N Kind regards, - -- Felipe Augusto van de Wiel [EMAIL PROTECTED] Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFFD+0DCj65ZxU4gPQRAoMVAJ0QC8DuvvcYGrw0xj+L1fEazfv1IACfaGlq mHK/dFbGt8uXgYyruRx8rYA= =nh5x -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: Problem with large files
On 9/19/06, Valerio daelli [EMAIL PROTECTED] wrote: Hi we have samba 3.0.14a on FreeBSD 5.4. We tried with different kind of locking and oplocks (both enabled and disabled). If we try to copy from a Windows XP client a file larger than 3g, we get these error: Cannot copy XXX. The specified network name is no longer available. We traced this problem in the logs (log level 10) and we got this error ... Thanks for your help Valerio Daelli Hi we can replicate the error on samba 3.0.23b with the same configuration. This is our configuration: -- [global] interfaces = 85.239.182.14/32 pid directory = /ofb/samba/var guest account = nobody security = user encrypt passwords = yes passdb backend = ldapsam:ldap://127.0.0.1/; server string = FreeBSD Friend unix charset = UTF-8 display charset = UTF-8 dos charset = 437 use spnego = yes client ntlmv2 auth = no client use spnego = yes ldap admin dn = uid=samba,ou=Services,ou=NIS,ou=Accounts,dc=ifom-ieo-campus,dc=it #ldap admin dn = cn=ldapadm,dc=ifom-ieo-campus,dc=it ldap delete dn = no ldap passwd sync = no ldap suffix = dc=ifom-ieo-campus,dc=it ldap machine suffix = ou=Computers ldap user suffix = ou=Accounts ldap group suffix = ou=Groups workgroup = CAMPUS netbios name = milarepa domain logons = yes domain master = yes wins support = yes preferred master = yes strict allocate = yes ;hide files = /.snap/.AppleDB/.AppleDouble/.AppleDesktop/_VUC69~7/desktop.ini/:2eDS_Store/:2eVolumeIcon.icns/*.icns/ ;veto files = /.snap/_VUC69~7/.DS_Store/.AppleDB/.AppleDouble/.AppleDesktop/lost+found/quota.user/quota.group/ ;veto files = /.snap/lost+found/quota.user/quota.group/ ;delete veto files = yes ;hide unreadable = no ; case sensitive = yes ; default case = lower ; preserve case = yes socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=16384 SO_RCVBUF=16384 #log file = /data/samba/var/log/smbd.log.%m log file = /data/samba/var/log/smbd.log.%m log level = 10 max xmit = 65535 logon path = \\%N\profiles\%U logon drive = H: logon script = users.cmd dfree command = /usr/local/sbin/get_quota %U max open files = 8000 [netlogon] path = /usr/samba/netlogon browseable = no read only = yes write list = samba [profiles] path = /usr/exports/Users/Users/%U read only = no browseable = yes ;create mask = 0600 ;directory mask = 0700 csc policy = disable [%U] comment = %U Home Directory browseable = yes read only = no path = /usr/exports/Users/Users/%U create mask = 0600 directory mask = 0700 force create mode = 0600 force directory mode = 0700 ;hide unreadable = no ;locking = yes strict locking = no ;blocking locks = no oplocks = yes level2 oplocks = yes fake oplocks = yes [Temporary] comment = Temporary (for Imaging etc..) path= /usr/exports/Temporary/data browseable = yes read only = no create mask = 0666 directory mask = 0777 force create mode = 0666 force directory mode = 0777 ;hide unreadable = no ;locking = yes ;strict locking = no ;blocking locks = no oplocks = no fake oplocks = yes level2 oplocks = yes [Groups] comment = Group Shares browseable = yes read only = no path = /usr/exports/Groups/Groups create mask = 0660 directory mask = 0770 force create mode = 0660 force directory mode = 0770 ;hide unreadable = yes locking = yes strict locking = no blocking locks = no oplocks = no level2 oplocks = no [PublicUsers] comment = Campus Groups Public Stuff browseable = yes read only = no path = /usr/exports/Users/PublicUsers create mask = 0664 directory mask = 0775 force create mode = 0664 force directory mode = 0775 ; locking = yes ; strict locking = no ; blocking locks = no ; oplocks = no ; level2 oplocks = no [PublicGroups] comment = Campus Groups Public Stuff browseable = yes read only = no path = /usr/exports/Groups/PublicGroups create mask = 0664 directory mask = 0775 force create mode = 0664 force directory mode = 0775 ; locking = yes ; strict locking = no ; blocking locks = no ; oplocks = no ; level2 oplocks = no [DropboxUsers] comment = Users drop boxes path = /usr/exports/Users/DropboxUsers read only = no writeable = yes browseable = yes create mask = 0666 directory mask = 0777 force create mode = 0666 force directory mode = 0777 ;; locking = yes ;; strict locking = no ;; blocking locks = no ;; oplocks = no ;; level2 oplocks = no [DropboxGroups] comment = Groups drop boxes path = /usr/exports/Groups/DropboxGroups read only = no writeable = yes browseable = yes create mask = 0666 directory mask = 0777 force create mode = 0666 force directory mode = 0777 ;hide unreadable = no ;; locking = yes ;; strict locking = no ;; blocking locks = no ;; oplocks = no [Services] comment = Services path = /usr/exports/Services/Services read only = no writeable = yes browseable = yes create mask = 0664 directory mask = 0775 force create mode = 0664 force directory mode = 0775 locking = no strict locking = no blocking locks = no oplocks = yes level2 oplocks = yes This time we get - [2006/09/19 14:51:15, 4]
[Samba] WIN servers RO dirs show empty on RHEL client
I am trying to mount a WIN share on a RHEL 4 client mount -t smbfs //stvsxshs001.yyy.com/enterprise /local/apps/share/wmservice-enterprise -o username=yyy/auth I get prompted for a PW and it mounts fine. But when I try and access subdirs which are read-only on the share, they show up empty. I know I'm missing something obvious. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] problems xp joining samba pdc
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/18/2006 09:23 AM, Mike escreveu: Morning, I have three machines, two xp and one win2k, that join the samba pdc fine. I have tried to join others to this same samba pdc using the same accounts for authentication without success. The xp machine first says the user does not exist, I click ok and go back to the screen for the domain account authorized to join the domain and press ok (or next) again and this time the xp box says the user already exists. I think something is having an issue with the machine$ accounts in ldap. I added a '-t 5' in smb.conf to the smbadd-useradd command for adding a machine. I could tell a longer time before the first messages (missing user) is returned, but I still have the same final situation with the xp box not being a part of the samba pdc. Any chances that the Sign or Seal problem still exists? Any ideas? Mike [...] /etc/samba/smb.conf # Samba config file created using SWAT # from 10.1.2.43 (10.1.2.43) # Date: 2006/08/03 15:11:35 [global] security = USER client plaintext auth = Yes client lanman auth = Yes encrypt passwords = Yes lanman auth = No ntlm auth = Yes password level = 0 guest account = nobody #admin users = manager, root, mikee, jrc, bdhein admin users = hosts allow = 10.1.2., 10.1.3. cups options = raw wins support = yes usershare allow guests = yes workgroup = PWI netbios aliases = loghost, mailhost, backuphost, ldaphost server string = Samba Server (%h) logon drive = P: logon home = \\%N\%U logon path = \\%N\%U\profile logon script = /etc/samba/login.bat ldap suffix = dc=company,dc=com ldap admin dn = cn=manager,dc=company,dc=com ldap user suffix = ou=people ldap group suffix = ou=groups ldap machine suffix = ou=machines ldap ssl = off ldapsam:trusted = Yes ldap timeout = 15 utmp directory = /var/run wtmp directory = /var/log utmp = Yes password server = ldaphost.company.com passdb backend = ldapsam:ldap://ldaphost.company.com ldap passwd sync = Yes #unix password sync = Yes #passwd program = /usr/sbin/smbldap-passwd %u #passwd chat = Changing * password*for*\nNew password* %n\n *Retype new password* %n\n #passwd chat debug = Yes os level = 66 preferred master = Yes local master = Yes domain master = Yes domain logons = Yes allow trusted domains = Yes dns proxy = No # log level = 255 # log level = 4 # log level = 3 ldap:10 passdb:10 auth:10 winbind:10 log level = 3 log file = /var/log/samba/%m.log max log size = 500 socket options = IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536 #add user script = /usr/sbin/smbldap-useradd -m '%u' add user script = /usr/sbin/smbldap-useradd -a -A 1 -B 1 -s /bin/bash -c %u -d /home/%u -C %h\\%u -D 'H:' -M [EMAIL PROTECTED] %u delete user script = /usr/sbin/smbldap-userdel %u add group script = /usr/sbin/smbldap-groupadd -p '%g' delete group script = /usr/sbin/smbldap-groupdel '%g' add user to group script = /usr/sbin/smbldap-groupmod -m '%g' '%u' delete user from group script = /usr/sbin/smbldap-groupmod -x '%g' '%u' set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u' #add machine script = /usr/sbin/smbldap-useradd -w '%u' #add machine script = /usr/sbin/smbldap-useradd -w -A 0 -B 0 -s /bin/false -c %u machine account -d /dev/null %u add machine script = /usr/sbin/smbldap-useradd -w -i '%u' -t 5 [netlogon] path = /etc/samba/netlogon browseable = No writable = Yes [homes] comment = Home Directories read only = No guest ok = No browseable = No [printers] comment = All Printers path = /usr/spool/samba printable = Yes browseable = No [company] comment = Company Corporate Files path = /opt/company create mask = 0765 browseable = Yes printable = No [Backups] comment = Backup files are stored here path = /opt/backups browseable = Yes printable = No [Data] comment = Storage for support and other data. path = /opt/data browseable = Yes printable = No [Cygwin] comment = Company Cygwin Repositiory path = /opt/cygwin browseable = Yes printable = No guest ok = Yes guest only = No writeable = No read only = Yes /etc/samba/smb.conf - -- Felipe Augusto van de Wiel [EMAIL PROTECTED] Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE
Re: [Samba] Domain Logins
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/18/2006 07:58 AM, Bernhard Pöttinger escreveu: Hi, I have troubles when trying to login to my SAMBA Domain, joinung the workstations to the domain was no problem, browsing shares is no problem, but no damain login. I'm running centos 4.3; rpm -qa |grep samba system-config-samba-1.2.21-1 samba-client-3.0.10-1.4E.9 samba-3.0.10-1.4E.9 samba-common-3.0.10-1.4E.9 rpm -qa |grep openldap openldap-clients-2.2.13-6.4E openldap-devel-2.2.13-6.4E openldap-2.2.13-6.4E openldap-servers-2.2.13-6.4E [global] ; Basic server settings netbios name = PDC-SRV server string = GBW File Server workgroup = GBW # client use spnego = yes ; Logging ;log level = 0 log level = 3 passdb:99 auth:99 winbind:2 interfaces = 192.168.118.2/24 ;hosts allow = 192.168.0. 127. 192.168.10. ;Character Mapping for Mac Compatibility ;character set = iso8859-1 ;client code page = 437 ;valid chars = * ;mangle case = no ; should act as the domain and local master browser os level = 64 preferred master = yes domain master = yes local master = yes ; SAMBA LDAP stuff ;passwd program = /usr/local/sbin/smbldap-passwd.pl -o %u ;passwd chat= *new*password* %n\n *new*password* %n\n *sucessfully* ;unix password sync = Yes ldap passwd sync = yes passdb backend = ldapsam_compat:ldap://ldap.intern.gbw.at; passdb backend = ldapsam:ldap://ldap.intern.gbw.at; I'm not sure about the above one. You should be using either ldapsam _or_ ldapsam_compat. [...] best regards and thanks for help bernhard Could you please attach an increased loglevel/debuglevel so we can take a look on what's going on while you try to login? :) Kind regards, - -- Felipe Augusto van de Wiel [EMAIL PROTECTED] Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFFD+3HCj65ZxU4gPQRAk1HAKChbCd57YE2uuT+WlIJ6xDzWLZltgCgofDa J5GSxOn656dBwEkyA6WnTiw= =lIOP -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] problems xp joining samba pdc
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ok, now let's try to first answer the mail and then send it. :) On 09/18/2006 09:23 AM, Mike escreveu: Morning, I have three machines, two xp and one win2k, that join the samba pdc fine. I have tried to join others to this same samba pdc using the same accounts for authentication without success. The xp machine first says the user does not exist, I click ok and go back to the screen for the domain account authorized to join the domain and press ok (or next) again and this time the xp box says the user already exists. I think something is having an issue with the machine$ accounts in ldap. I added a '-t 5' in smb.conf to the smbadd-useradd command for adding a machine. I could tell a longer time before the first messages (missing user) is returned, but I still have the same final situation with the xp box not being a part of the samba pdc. Any chances that the Sign or Seal problem still exists? Any ideas? Mike [...] /etc/samba/smb.conf # Samba config file created using SWAT # from 10.1.2.43 (10.1.2.43) # Date: 2006/08/03 15:11:35 [global] security = USER client plaintext auth = Yes client lanman auth = Yes encrypt passwords = Yes lanman auth = No ntlm auth = Yes password level = 0 guest account = nobody #admin users = manager, root, mikee, jrc, bdhein admin users = hosts allow = 10.1.2., 10.1.3. cups options = raw wins support = yes usershare allow guests = yes [...] password server = ldaphost.company.com passdb backend = ldapsam:ldap://ldaphost.company.com Hmmm, you should not use password server option when you are in 'security = user' mode. Even if it is the same server, you should not set this option unless you want to use another password server in 'security = domain|ads|server'. ldap passwd sync = Yes #unix password sync = Yes #passwd program = /usr/sbin/smbldap-passwd %u #passwd chat = Changing * password*for*\nNew password* %n\n *Retype new password* %n\n #passwd chat debug = Yes os level = 66 preferred master = Yes local master = Yes domain master = Yes domain logons = Yes allow trusted domains = Yes dns proxy = No # log level = 255 # log level = 4 # log level = 3 ldap:10 passdb:10 auth:10 winbind:10 log level = 3 log file = /var/log/samba/%m.log max log size = 500 socket options = IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536 #add user script = /usr/sbin/smbldap-useradd -m '%u' add user script = /usr/sbin/smbldap-useradd -a -A 1 -B 1 -s /bin/bash -c %u -d /home/%u -C %h\\%u -D 'H:' -M [EMAIL PROTECTED] %u delete user script = /usr/sbin/smbldap-userdel %u add group script = /usr/sbin/smbldap-groupadd -p '%g' delete group script = /usr/sbin/smbldap-groupdel '%g' add user to group script = /usr/sbin/smbldap-groupmod -m '%g' '%u' delete user from group script = /usr/sbin/smbldap-groupmod -x '%g' '%u' set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u' #add machine script = /usr/sbin/smbldap-useradd -w '%u' #add machine script = /usr/sbin/smbldap-useradd -w -A 0 -B 0 -s /bin/false -c %u machine account -d /dev/null %u add machine script = /usr/sbin/smbldap-useradd -w -i '%u' -t 5 Do you really need -i? -i Creates an interdomain trust account (machine Workstation). A password will be asked for the trust account. - -- Felipe Augusto van de Wiel [EMAIL PROTECTED] Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFFD/DfCj65ZxU4gPQRAk5OAKDJ92myNvM77XuSBa4A0ppxUCSvXwCgnG3Y vz4jEctYTqNlMEWSMwCHN+8= =p+A+ -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] Choosing Domain vs. Workgroup
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/18/2006 12:08 PM, David Dyer-Bennet escreveu: I thought I wanted to set up my Solaris file-server as domain controller for my small home network, but the more I look at it the less I'm sure. Plus I'm having trouble doing it :-). I do plan to put my primary files (and other people's) on the server, for better safety (mirrored disks, and ZFS) and backup. I certainly want the logon transactions over the network to be encrypted, but I believe that can be done in a workgroup. You could think about kerberos and other resources, LM passwords are not //that safe//. :) I'm not at all sure I want to put my home directory on the server. I want to access my data files, but the home directory is pretty system specific for me and the systems have different software loaded and different OS versions -- this is not a corporate network! You can keep it separated. There's no ldap or anything, the workgroup or domain will be its own source of information on who can log in. Ok, no problem, you can use smbpasswd (tdbsam). And some of the machines are running XP home, since that's what came on at least one of the laptops. And one of them is a Mac. AFAIK, WinXP Home is not allowed to join domains. So, do I get any benefits by setting up a domain instead of just a workgroup? Can I even get all these machines to use a domain? I think you are going to lost instead of win, starting with the WinXP Home. (Also a couple of previous postings yesterday got no answers *and* don't seem to be in the list archives, so this is a test to make sure I can post, too.) Looks like it works now. :) Kind regards, - -- Felipe Augusto van de Wiel [EMAIL PROTECTED] Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFFD/HGCj65ZxU4gPQRAmDsAJwP9bCxOnKmLUJjkgNcw3wzOyMDJwCdF/gk KgISUKkxAWXKl1GOlTR0Aag= =24f8 -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] Problem logon to PDC
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/18/2006 07:44 AM, John Lauwers escreveu: Hello, I have setup a cluster system with drbd and heartbeat. I have samba running as a PDC. Everything works great when I am on server1 But when failover ocuurs I cannot seem to log on the domain anymore. I Have symlinks to my home share : /var/cache/samba , /etc/samba/ who are synced between 2 servers. Do I have to sync another files ?? Not sure, but perhaps this could helps you: http://wiki.samba.org/index.php/Clustered_Samba greets John Kind regards, - -- Felipe Augusto van de Wiel [EMAIL PROTECTED] Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFFD/NUCj65ZxU4gPQRAsDTAJwOdkLtTkugcQNxxNg7rywebZO99gCgt4CX 3c404cxrMzjnV51G07OqEig= =6x/K -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] issue with adding machines to new domain
What privileges does your Domain Admins group have? Run 'net rpc rights list Domain Admins' and reply with the results. David Bear [EMAIL PROTECTED] 9/18/2006 6:15:31 PM I have created a domain controller using samba 3.0.20. I following howto's from a couple of books and the samba.org site. I was able to use net rpc vampire to migrate the old nt4 domain user accounts, machine accounts, and trusts. However, now when I attempt to use add a new machine to the domain I receive and error. From windows I get: The user name could not be found When I look at the samba log file I see ... running the command useradd .. gave 5 (I've abbreviated the script since it follows the how tos) I didn't know what the 'gave 5' meant. I assume it means that useradd failed. Looking at /etc/passwd does indeed show that there was no machine account created. I looked in the man page but I don't see what any documentation on error codes returned by useradd. I have run net group map and verified that Domain Admins maps to the unix group ntadmins. The windows users is a member of both Domain Admins and ntadmins. Where else should I look? -- David Bear phone: 602-496-0424 fax:602-496-0955 College of Public Programs/ASU University Center Rm 622 411 N Central Phoenix, AZ 85007-0685 Beware the IP portfolio, everyone will be suspect of trespassing -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba - This email transmission and any documents, files or previous email messages attached to it may contain information that is confidential or legally privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, printing, distributing or use of this transmission is strictly prohibited. If you have received this transmission in error, please immediately notify the sender by telephone or return email and delete the original transmission and its attachments without reading or saving in any manner. The Evangelical Lutheran Good Samaritan Society. - -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Permission
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/18/2006 09:15 AM, dazamaz escreveu: Hi guys, Don't forget the girls... :) I have been setting up a samba server to share some directorys around my office network. Now I have been successful in making these shared directorys so that everyone can access them, but what I really need to do is to make the shares to have limited accessibility. What I need is to have 1 folder that is completely Private to everyone else but 1 user and everytime I have tried this using the samba share gui (by clicking on the option saying only allow this user) noone, not even that 'allowed' user, can access it. You can use 'valid users' for that. Also I need to make a folder that people can traverse to and read the contents of and can dump content into this folder but are not allowed to delete any content contained in the folder. You can use combinations of 'force user', 'inherit owner', 'force mode' and even FileSystem ACLs. I have been able to get the permissions going so that they are read only and read/write but I cannot make the permissions to the exact specifcations that I need. Complex permissions settings needs complex configurations. :) 1 more thing, I thought that maybe I needed to use chmod to change the permissions on the directorys to allow for this but, correct if I'm wrong please, the 3 numbers don't they represent owner, group and then world? So with this I decided to make the permissions according to groups but then I found out that I needed to allocate the permissions on the 'world' part in order for them to be effective over the network. Thus stopping me from using groups to allocate permissions. In fact, 4 numbers, special bits, owner, group and others. But you should use samba resources to take care of permission. Probably you will need FileSystem ACLs (POSIX ACLs) to handle that. Any help on my situation would be greatly appreciated. Sorry for the rather lengthy post but I thought if I add as much detail as I could it would make it easier for someone to help me out. No problem. :) Cheers guys, sincerely daza Kind regards, - -- Felipe Augusto van de Wiel [EMAIL PROTECTED] Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFFD/f9Cj65ZxU4gPQRAnReAJ9OYqjGCmqysy2TAPdkOkZLuzTdNQCfUckG 8C3NTDt15g0f7B0HGcJ+BCE= =aFRd -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] file locking question
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/19/2006 12:49 AM, Greg Lehmann escreveu: Hi all, If I have a linux server running samba for filesharing and I use NFS to make these shares available on another linux server that also runs samba to share the same shares will the locking still work properly? Hmmm, I don't think so. The locks are not in the share itself. Samba keeps it in another place (.tdb files). You can check the clustered samba on the wiki, it maybe has some nice tips on this topic: http://wiki.samba.org/index.php/Clustered_Samba I can use this to get around an issue with multiple authentication domains and I suspect NFS is less chatty than SMB anyway so will mean a peformance win as well across the WAN. Can you see any other problems with this setup? TIA, Greg I hope this helps. Kind regards, - -- Felipe Augusto van de Wiel [EMAIL PROTECTED] Coordenadoria de Tecnologia da Informação (CTI) - SEDU/PARANACIDADE http://www.paranacidade.org.br/ Phone: (+55 41 3350 3300) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Debian - http://enigmail.mozdev.org iD8DBQFFD/hxCj65ZxU4gPQRAgGgAKC3Ngmd7zjb2EzanuIW2dgaGgm61wCgnO1Y fstO0M+iAtPbhqYAWcQQWLQ= =+Tsn -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba Permission
Felipe Augusto van de Wiel wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/18/2006 09:15 AM, dazamaz escreveu: Hi guys, Don't forget the girls... :) I have been setting up a samba server to share some directorys around my office network. Now I have been successful in making these shared directorys so that everyone can access them, but what I really need to do is to make the shares to have limited accessibility. What I need is to have 1 folder that is completely Private to everyone else but 1 user and everytime I have tried this using the samba share gui (by clicking on the option saying only allow this user) noone, not even that 'allowed' user, can access it. You can use 'valid users' for that. Also I need to make a folder that people can traverse to and read the contents of and can dump content into this folder but are not allowed to delete any content contained in the folder. You can use combinations of 'force user', 'inherit owner', 'force mode' and even FileSystem ACLs. I have been able to get the permissions going so that they are read only and read/write but I cannot make the permissions to the exact specifcations that I need. Complex permissions settings needs complex configurations. :) 1 more thing, I thought that maybe I needed to use chmod to change the permissions on the directorys to allow for this but, correct if I'm wrong please, the 3 numbers don't they represent owner, group and then world? So with this I decided to make the permissions according to groups but then I found out that I needed to allocate the permissions on the 'world' part in order for them to be effective over the network. Thus stopping me from using groups to allocate permissions. In fact, 4 numbers, special bits, owner, group and others. But you should use samba resources to take care of permission. Probably you will need FileSystem ACLs (POSIX ACLs) to handle that. Any help on my situation would be greatly appreciated. Sorry for the rather lengthy post but I thought if I add as much detail as I could it would make it easier for someone to help me out. I used user = sandy, mark force user = nobody im also basically doing the same thing you doing, but im just having problems setting the file system and setting the shared folder so users nobody can access it Regards Gewrald -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Problem logon to PDC
Hi John, I am currently working on a document with samba, openldap, drbd + heartbeat; I strongly suggest you make one of your nodes a backup domain controller using openldap to replicate the database; this will avoid many issues that you are experiencing. I point users home directories, profiles shares to the virtual cluster IP; this allows domain logons to load roaming profiles whether you login to the pdc or bdc. I do this through the smbldap.conf file. Document should be ready in a few months. Thanks, Adrian Sender. From: John Lauwers [EMAIL PROTECTED] To: samba@lists.samba.org Subject: [Samba] Problem logon to PDC Sent: Monday, 18 September 2006 8:44:47 PM Hello, I have setup a cluster system with drbd and heartbeat. I have samba running as a PDC. Everything works great when I am on server1 But when failover ocuurs I cannot seem to log on the domain anymore. I Have symlinks to my home share : /var/cache/samba , /etc/samba/ who are synced between 2 servers. Do I have to sync another files ?? greets John From: [EMAIL PROTECTED] Reply-To: samba@lists.samba.org To: samba@lists.samba.org Subject: samba Digest, Vol 45, Issue 24 Date: Tue, 19 Sep 2006 12:03:05 + (GMT) Send samba mailing list submissions to samba@lists.samba.org To subscribe or unsubscribe via the World Wide Web, visit https://lists.samba.org/mailman/listinfo/samba or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than Re: Contents of samba digest... Today's Topics: 1. Problem logon to PDC (John Lauwers) 2. Samba Permission (dazamaz) 3. cifs connect to Samba...permissions error (Max Kipness) 4. unsuccessful Samba install on AIX 4.3.3. (Joseph E Murphy) 5. Question about SWAT (Ivan Arteaga) 6. Re: Password Change WinXP (Martin Hochreiter) 7. workgroup drive mapping (Rob Shepherd) 8. administrative shares (Luca Ferrari) 9. Re: unsuccessful Samba install on AIX 4.3.3. (Volker Lendecke) 10. Problem with large files (Valerio daelli) 11. Setting Windows drivers gives access denied error (Gundemarie Scholz) 12. Setting Initial Passwords (Tony Molloy) 13. samba and share quota (Fabio Marcone) From: John Lauwers [EMAIL PROTECTED] To: samba@lists.samba.org Subject: [Samba] Problem logon to PDC Date: Mon, 18 Sep 2006 12:44:47 +0200 Hello, I have setup a cluster system with drbd and heartbeat. I have samba running as a PDC. Everything works great when I am on server1 But when failover ocuurs I cannot seem to log on the domain anymore. I Have symlinks to my home share : /var/cache/samba , /etc/samba/ who are synced between 2 servers. Do I have to sync another files ?? greets John From: dazamaz [EMAIL PROTECTED] To: samba@lists.samba.org Subject: [Samba] Samba Permission Date: Mon, 18 Sep 2006 05:15:04 -0700 (PDT) Hi guys, I have been setting up a samba server to share some directorys around my office network. Now I have been successful in making these shared directorys so that everyone can access them, but what I really need to do is to make the shares to have limited accessibility. What I need is to have 1 folder that is completely Private to everyone else but 1 user and everytime I have tried this using the samba share gui (by clicking on the option saying only allow this user) noone, not even that 'allowed' user, can access it. Also I need to make a folder that people can traverse to and read the contents of and can dump content into this folder but are not allowed to delete any content contained in the folder. I have been able to get the permissions going so that they are read only and read/write but I cannot make the permissions to the exact specifcations that I need. 1 more thing, I thought that maybe I needed to use chmod to change the permissions on the directorys to allow for this but, correct if I'm wrong please, the 3 numbers don't they represent owner, group and then world? So with this I decided to make the permissions according to groups but then I found out that I needed to allocate the permissions on the 'world' part in order for them to be effective over the network. Thus stopping me from using groups to allocate permissions. Any help on my situation would be greatly appreciated. Sorry for the rather lengthy post but I thought if I add as much detail as I could it would make it easier for someone to help me out. Cheers guys, sincerely daza From: Max Kipness [EMAIL PROTECTED] To: samba@lists.samba.org Subject: [Samba] cifs connect to Samba...permissions error Date: Mon, 18 Sep 2006 09:44:18 -0500 I have a Samba 3.0.23a-1.fc5.1 configured on a Fedora 5 server. It's joined to an Active Directory 2003 domain controller using Winbind, etc. I'm able to connect from various workstations using active directory user
Re: [Samba] Problem logon to PDC
On Tue, Sep 19, 2006 at 10:40:36AM -0300, Felipe Augusto van de Wiel wrote: I have setup a cluster system with drbd and heartbeat. I have samba running as a PDC. Everything works great when I am on server1 But when failover ocuurs I cannot seem to log on the domain anymore. I Have symlinks to my home share : /var/cache/samba , /etc/samba/ who are synced between 2 servers. Do I have to sync another files ?? Not sure, but perhaps this could helps you: http://wiki.samba.org/index.php/Clustered_Samba Naa, this is not finished or released yet. We need more information. smb.conf files, log files. Volker pgpmiisZU2REN.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] username map change = samba failure
Jeremy Allison wrote: On Mon, Sep 18, 2006 at 03:59:28PM -0500, Dale Schroeder wrote: Since I haven't gotten any responses from the segfault log I posted earlier, I will try another approach. Below is what happens when a client tries to connect. Again, this all started after I changed a username mapping entry from root = DOMAIN\Administrator to root = @DOMAIN\Domain Admins. This is in a security = ADS setup. wbinfo -u and -g return the correct information. Dale [2006/09/18 15:42:38, 10] passdb/secrets.c:secrets_named_mutex(778) secrets_named_mutex: got mutex for replay cache mutex [2006/09/18 15:42:38, 10] libads/kerberos_verify.c:ads_secrets_verify_ticket(261) ads_secrets_verify_ticket: enc type [1] failed to decrypt with error Bad encryption type [2006/09/18 15:42:38, 10] libads/kerberos_verify.c:ads_secrets_verify_ticket(261) ads_secrets_verify_ticket: enc type [3] failed to decrypt with error Bad encryption type Did you restrict any enc types in your krb5.conf ? Jeremy. I knew that I did not make any restrictions, so I checked the conf file and all references to enctype are commented out and left as default. I must point out that I made the same mapping change on a test machine, and all went well. Unfortunately, this is the real thing, and users are clamoring for files and printers. From the client's perspective, sometimes a login box appears, other times it says the network no longer exists. Also rejoining the domain with net ads join acts as if the system is totally new to the domain. I no longer get wording that indicates the system was already a domain member. Perhaps this is an intentional change? Thanks for replying. Dale -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] CryptoCard - PAM or RADIUS?
Greetings all, I'm working on attempting to get SAMBA to work with a product line called CryptoCard. I *should* be able to get it to work one of two ways, either through the use of CryptoCard's provided PAM module, or through RADIUS authentication. Currently, I cannot seem to get PAM authentication to work at all. This is what is in the 'samba' file for PAM: auth required /lib/security/pam_cap_auth.so server=insertSERVERipHERE:624 noeus debug echo auth requires /lib/security/pam_nologin.so accountrequired /lib/security/pam_stack.so service=system-auth accountrequired /lib/security/pam_permit.so sessionrequired /lib/security/pam_stack.so service=system-auth sessionoptional /lib/security/pam_console.so password required /lib/security/pam_stack.so service=system-auth And for the smb.conf file I have the all important setting of 'encrypt passwords = No' to enable PAM authentication When attempting to authenticate locally, from the server to the server, I get: smbclient -U rhandorf -L localhost Password: session setup failed: NT_STATUS_UNSUCCESSFUL and in the error logs I get: [2006/09/18 13:42:36, 0] auth/pampass.c:smb_pam_auth(535) smb_pam_auth: PAM: UNKNOWN ERROR while authenticating user rhandorf [2006/09/18 13:42:36, 0] auth/pampass.c:smb_pam_passcheck(810) smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User rhandorf ! I've looked around to see whether or not SAMBA supports RADIUS Authentication, and I havent seen any documentation that totally says 'yes.' Asking the vendor yielded the response of SAMBA then isnt PAM aware; We'd like to support it, but until it is PAM aware we wont. Any help would be great. r -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Interdomain Trust and Logging In
I'm having problems getting Interdomain trusts set up. Both servers are running samba-3.0.10-1.4E.9 (one RHEL 4, the other CentOS 4). The two domains are SOCIALWORK and MATH, servers swserver and bing respectively. On bing, I created a socialwork$ account with the -i option to smbpasswd. On swserver, I created a math$ account with the -i option to smbpasswd. The trust relationships seem to be there: [EMAIL PROTECTED] samba]# net rpc trustdom list Password: Trusted domains list: MATHS-1-5-21-902756538-3544332907-460370930 Trusting domains list: MATHS-1-5-21-902756538-3544332907-460370930 [EMAIL PROTECTED] bing]# net rpc trustdom list Password: Trusted domains list: SOCIALWORK S-1-5-21-1822452546-1660970903-4126480946 Trusting domains list: SOCIALWORK S-1-5-21-1822452546-1660970903-4126480946 I have winbindd started on both servers. If I try to log in to a machine that is associated with the MATH domain using a SOCIALWORK account, I get the The system could not log you on. Make sure your username and domain are correct... error. Likewise, if I am logged into a SOCIALWORK machine with a SOCIALWORK account and attempt to access a resource on bing, I am continually prompted for username and password. All of the above holds for the opposite direction as well. I can't find anything in the logs indicating what might be happing. Could someone point out anything I've missed, suggest debug levels and which logs to look at (and what to look for)? I've been fighting with this for a week now and I think I just need a fresh set of eyeballs. Thanks, Matt -- Matt Hyclak Department of Mathematics Department of Social Work Ohio University (740) 593-1263 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] File Locked
Hi, I've got a Word document on a Samba share that I can't rename, overwrite or open. Attempting to rename it gives: Cannot rename Filename: There has been a sharing violation. Attempting to open it gives: Filename.doc is locked for editing by 'another user'. This is on a NAS box so I can't say which Samba version it is. There are no temporary files in the share to show who might have this file open. If I create a file in this share as the same owner, it gets the same ACL but I can edit it. Does anyone have any advice for how I might troubleshoot this? If it *is* opened by another user how can you determine who it is? If not, how can the problem be fixed. (I appreciate that this is probably a Windows SMB rather than Samba problem but with Windows I can see who has what open in Server Manager). Thanks in advance for any help Leon... - Email sent from www.ntlworld.com Virus-checked using McAfee(R) Software Visit www.ntlworld.com/security for more information -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] File Locked
When this happens with our NAS I log into it and grep the output of the smbstatus command looking for the filename. That gives the PID of the process with the file lock. Then I grep the output of smbstatus looking for the PID and that tells you which user has the file open. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leon Stringer Sent: Tuesday, September 19, 2006 8:27 AM To: samba@lists.samba.org Subject: [Samba] File Locked Hi, I've got a Word document on a Samba share that I can't rename, overwrite or open. Attempting to rename it gives: Cannot rename Filename: There has been a sharing violation. Attempting to open it gives: Filename.doc is locked for editing by 'another user'. This is on a NAS box so I can't say which Samba version it is. There are no temporary files in the share to show who might have this file open. If I create a file in this share as the same owner, it gets the same ACL but I can edit it. Does anyone have any advice for how I might troubleshoot this? If it *is* opened by another user how can you determine who it is? If not, how can the problem be fixed. (I appreciate that this is probably a Windows SMB rather than Samba problem but with Windows I can see who has what open in Server Manager). Thanks in advance for any help Leon... - Email sent from www.ntlworld.com Virus-checked using McAfee(R) Software Visit www.ntlworld.com/security for more information -- 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] Question about SWAT
Ivan Arteaga wrote: Hi, Thanks for the info, tried and got the following output: [EMAIL PROTECTED] ~]# yum install swat Setting up Install Process Setting up repositories update100% |=| 951 B00:00 base 100% |=| 1.1 kB00:00 addons100% |=| 951 B00:00 extras100% |=| 1.1 kB00:00 Reading repository metadata in from local files Parsing package install arguments No Match for argument: swat Nothing to do you will find that it is called samba-swat you can search for packages like so. # yum search swat Les -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] username map change = samba failure
Again, this all started after I changed a username mapping entry from root = DOMAIN\Administrator to root = @DOMAIN\Domain Admins. This is in a security = ADS setup. wbinfo -u and -g return the correct information. 1. Try # getent group See what that returns 2. Are you using winbind to map users and groups? If so, have you changed the idmap in your smb.conf? You might need to clear your /var/cache/samba/winbindd_cache.tdb /var/cache/samba/winbindd_idmap.tdb restart winbind and smb 3. What version of Samba are you using, have you updated it? 4. Try specifying the Domain Admins group in a different way e.g +DOMAIN\Domain Admins I maybe barking up the wrong tree, i'm quite new to this Cheers Matt I knew that I did not make any restrictions, so I checked the conf file and all references to enctype are commented out and left as default. I must point out that I made the same mapping change on a test machine, and all went well. Unfortunately, this is the real thing, and users are clamoring for files and printers. From the client's perspective, sometimes a login box appears, other times it says the network no longer exists. Also rejoining the domain with net ads join acts as if the system is totally new to the domain. I no longer get wording that indicates the system was already a domain member. Perhaps this is an intentional change? Thanks for replying. Dale -- 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: RE: [Samba] File Locked
From: Michael St. Laurent [EMAIL PROTECTED] Date: 2006/09/19 Tue PM 03:36:18 GMT To: 'Leon Stringer' [EMAIL PROTECTED], samba@lists.samba.org Subject: RE: [Samba] File Locked When this happens with our NAS I log into it and grep the output of the smbstatus command looking for the filename. That gives the PID of the process with the file lock. Then I grep the output of smbstatus looking for the PID and that tells you which user has the file open. That's done the trick, I've found the culprit! Thanks, Leon... - Email sent from www.ntlworld.com Virus-checked using McAfee(R) Software Visit www.ntlworld.com/security for more information -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Adding Printer via Run vs Printers and Faxes
Hi I am having a problem where if I try to add a printer by simply typing \\server\printer in the Run dialog, I get a rather verbose error message ending in Incorrect Function. If I add the printer with Add Printer in Printers and Faxes everything works fine. (It looks like the same problem mentioned here: http://lists.samba.org/archive/samba/2006-September/125147.html) I am running samba 3.0.23c. I can provide full log level = 10 logs of both methods of adding the printer, my smb.conf and any other information that you might need. PS: Please keep me on the CC as I am not subscribed to this list. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Choosing Domain vs. Workgroup
On 9/19/06, Felipe Augusto van de Wiel [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/18/2006 12:08 PM, David Dyer-Bennet escreveu: I thought I wanted to set up my Solaris file-server as domain controller for my small home network, but the more I look at it the less I'm sure. Plus I'm having trouble doing it :-). I do plan to put my primary files (and other people's) on the server, for better safety (mirrored disks, and ZFS) and backup. I certainly want the logon transactions over the network to be encrypted, but I believe that can be done in a workgroup. You could think about kerberos and other resources, LM passwords are not //that safe//. :) Well, mostly it's a wired network, not wireless, and I'm reasonably trusting of the people on the wired network (or, to put it differently, since they live here, they have physical access any time I'm out of the house, so they don't *need* to crack it from the stuff on the network to compromise my system). And a switched network, so snooping my traffic isn't all *that* easy. And the wireless part is WPA encrypted (or is it WAP? Not WEP, anyway). So I think I'm not going to try to introduce myself to Kerberos, thanks all the same! [snip] And some of the machines are running XP home, since that's what came on at least one of the laptops. And one of them is a Mac. AFAIK, WinXP Home is not allowed to join domains. That's what I've read, as well. I was trolling for confirmation, kinda. So, do I get any benefits by setting up a domain instead of just a workgroup? Can I even get all these machines to use a domain? I think you are going to lost instead of win, starting with the WinXP Home. It's looking that way to me as well. Well, I've got much more experience using samba on workgroup setups, so maybe I'll get this worked out soon once I give up on the domain stuff. (Also a couple of previous postings yesterday got no answers *and* don't seem to be in the list archives, so this is a test to make sure I can post, too.) Looks like it works now. :) Yes, thanks! -- David Dyer-Bennet, mailto:[EMAIL PROTECTED], http://www.dd-b.net/dd-b/ RKBA: http://www.dd-b.net/carry/ Pics: http://www.dd-b.net/dd-b/SnapshotAlbum/ Dragaera/Steven Brust: http://dragaera.info/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] smb.conf
Hi guys My client is really bugging me to get this working. I create a folder called private and added this into my smb.conf file, but when i browse to the folder private using wendy or pierre i get access denied. soneone told me i must make sure the filesystem of the folder private is set to nobody. Is that correct and how will i go on by doing this. [private] writeable = yes public = no guest ok = no path = /home/samba/private valid users = pierre, wendy write list = pierre, wendy force user = nobody Regards Gerald -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] smb.conf
What version of samba are you running and on what OS? What type of setup do you have on you samba server? Standalone? Domain member? PDC? Try changing valid users = pierre, wendy write list = pierre, wendy To valid users = +pierre, +wendy write list = +pierre, +wendy And see if it works. The + lets samba know that it is a local unix user. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gerald Sent: Tuesday, September 19, 2006 9:06 AM To: samba@lists.samba.org Subject: [Samba] smb.conf Hi guys My client is really bugging me to get this working. I create a folder called private and added this into my smb.conf file, but when i browse to the folder private using wendy or pierre i get access denied. soneone told me i must make sure the filesystem of the folder private is set to nobody. Is that correct and how will i go on by doing this. [private] writeable = yes public = no guest ok = no path = /home/samba/private valid users = pierre, wendy write list = pierre, wendy force user = nobody Regards Gerald -- 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] smb.conf
Gerald a écrit : Hi guys My client is really bugging me to get this working. I create a folder called private and added this into my smb.conf file, but when i browse to the folder private using wendy or pierre i get access denied. soneone told me i must make sure the filesystem of the folder private is set to nobody. Is that correct and how will i go on by doing this. [private] writeable = yes public = no guest ok = no path = /home/samba/private valid users = pierre, wendy write list = pierre, wendy force user = nobody Regards Gerald Hi, Yes, under linux, pierre and wendy must have read/write right on the folder. pierre wendy should be in the same group and give to this group the write access to the folder. Guillaume -- Guillaume E-mail: silencer_at_free-4ever_dot_net Blog: http://guillaume.free-4ever.net Site: http://www.free-4ever.net -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Mounting home directories on NAS
I'm using Samba 2.2.12 (Sun Solaris 9 version) and it's all working fine as a PDC for a small domain. I would like to use the /home construct so that the home directories are now mounted from a NAS rather than the local box. In smb.conf I have ; User Profiles logon path = \\%N\profiles\%U ; Where is a user's home directory and should it be mounted logon drive = Z: logon home = \\%N\%U ; Generic logon script for a user logon script = scripts\logon.bat %U Which all seems to work. However if I try logon home = \\eddie\nashomes\%U It doesn't seem to. Any ideas? Steve -- NetTek Ltd UK mob +44-(0)7775 755503 UK +44-(0)20 79932612 / US +1-(310)8577715 / Fax +44-(0)20 7483 2455 Skype/GoogleTalk/AIM/Gizmo stevekennedyuk / MSN [EMAIL PROTECTED] Euro Tech News Blog http://eurotechnews.blogspot.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Mounting home directories on NAS
Sorry replying to my own message I'm using Samba 2.2.12 (Sun Solaris 9 version) and it's all working fine as a PDC for a small domain. I would like to use the /home construct so that the home directories are now mounted from a NAS rather than the local box. In smb.conf I have ; User Profiles logon path = \\%N\profiles\%U ; Where is a user's home directory and should it be mounted logon drive = Z: logon home = \\%N\%U ; Generic logon script for a user logon script = scripts\logon.bat %U Which all seems to work. However if I try logon home = \\eddie\nashomes\%U It doesn't seem to. Any ideas? Would that be better with logon home = \\eddie\\nashomes\\%U Steve -- NetTek Ltd UK mob +44-(0)7775 755503 UK +44-(0)20 79932612 / US +1-(310)8577715 / Fax +44-(0)20 7483 2455 Skype/GoogleTalk/AIM/Gizmo stevekennedyuk / MSN [EMAIL PROTECTED] Euro Tech News Blog http://eurotechnews.blogspot.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] File Locked
On Tue, Sep 19, 2006 at 03:26:54PM +, Leon Stringer wrote: Hi, I've got a Word document on a Samba share that I can't rename, overwrite or open. Attempting to rename it gives: Cannot rename Filename: There has been a sharing violation. Attempting to open it gives: Filename.doc is locked for editing by 'another user'. This is on a NAS box so I can't say which Samba version it is. Your vendor must have given you source code, so it should be easy to see what version of Samba it is. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] about the new built-in groups
I recently upgraded my Samba install and happily noticed that it automagically created groups for BUILT-IN/Administrators and BUILT-IN/Users in my LDAP user store. Can I use these groups like I would normally use them on other systems? Can I use them as primary groups for my various users and whatnot? Can I map the Administrators group to my root Posix group? etc? Thanks! -- 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
Re: [Samba] username map change = samba failure
Matthew Preskett wrote: Again, this all started after I changed a username mapping entry from root = DOMAIN\Administrator to root = @DOMAIN\Domain Admins. This is in a security = ADS setup. wbinfo -u and -g return the correct information. 1. Try # getent group See what that returns It returns the correct information 2. Are you using winbind to map users and groups? If so, have you changed the idmap in your smb.conf? Yes. No - idmap backend = idmap_ad You might need to clear your /var/cache/samba/winbindd_cache.tdb No effect /var/cache/samba/winbindd_idmap.tdb restart winbind and smb Broke getent - retrieved local info only. wbinfo still worked properly. 3. What version of Samba are you using, have you updated it? 3.0.23c debs from samba.org. Upgraded from 3.0.22 a few hours before the username mapping change broke it all. 4. Try specifying the Domain Admins group in a different way e.g +DOMAIN\Domain Admins No effect I maybe barking up the wrong tree, i'm quite new to this Hey, at least you tried. I'm getting precious few responses to this self-induced disaster. Cheers Matt Thanks for replying. Dale I knew that I did not make any restrictions, so I checked the conf file and all references to enctype are commented out and left as default. I must point out that I made the same mapping change on a test machine, and all went well. Unfortunately, this is the real thing, and users are clamoring for files and printers. From the client's perspective, sometimes a login box appears, other times it says the network no longer exists. Also rejoining the domain with net ads join acts as if the system is totally new to the domain. I no longer get wording that indicates the system was already a domain member. Perhaps this is an intentional change? Thanks for replying. Dale -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] FC5 smbpasswd not working
Hi, I haven't seen any responses yet. Was wondering if someone has experienced a similar problem, maybe not necessarily with the same version of Samba ... Or is there a better list for this question? Regards, Michael Martinez Engineering Manager Michael Martinez wrote: Hello, we run samba 3.0.14a on FreeBSD. We recently upgraded our linux clients from FC2 to FC5. Now smbpasswd (on the client) does not work. We get the following error: cli_pipe_validate_current_pdu: RPC fault code NT code 0x1c010002 received from remote machine sambaserver pipe \samr fnum 0x70f3! machine sambaserver rejected the password change: Error was : NT code 0x1c010002. Failed to change password for user It was working under FC2 and still works under Redhat 9, so it's definitely an FC5 issue. Anyone know what's going on? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] restrict ssh login by Win2K AD group SOLVED!
On Fri, Sep 15, 2006 at 05:35:06PM -0400, Matt Herzog wrote: Hello again. I'm hoping there is some way I can restrict ssh login through the AD to my Linux servers. I only have one group of users on the domain that needs ssh access. So far I see lots of ways to add or map or join Linux to Windows groups but I would rather be able to say: Permission denied to all users but those in the AD group named Developers. My boss found this page and solution almost immediately, demonstrating why he's making the big bucks. Or something. http://blogs.sun.com/tkblog/entry/integrating_linux_with_active_directory All I needed to do is add the line: accountsufficient pam_succeed_if.so gid = 10003 to /etc/pam.d/sshd It is that simple. Of course I'd like to have more than one group be able to login so I'll dig into that presently. -- Announcing your plans is a good way to hear the gods' laughter. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] INTERNAL ERROR: Signal 11 in pid 8928 (3.0.23c)
Removing mdns did indeed fix the problem. Thanks a lot Jerry Em Segunda 18 Setembro 2006 15:09, Gerald (Jerry) Carter escreveu: Diego Alencar Alves de Lima wrote: smbd version 3.0.22 started. Copyright Andrew Tridgell and the Samba Team 1992-2006 === INTERNAL ERROR: Signal 11 in pid 15675 (3.0.22) Please read the Trouble-Shooting section of the Samba3-HOWTO From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf === PANIC: internal error BACKTRACE: 36 stack frames: #0 smbd(smb_panic2+0x78) [0x81ffea8] #1 smbd(smb_panic+0x19) [0x82000a5] #2 smbd [0x81ee1b5] #3 [0xe420] #4 /usr/lib/libnss_mdns.so.2 [0xb78e3728] #5 /usr/lib/libnss_mdns.so.2 [0xb78e39cd] #6 /usr/lib/libnss_mdns.so.2(mdns_query_ipv4+0x99) [0xb78e3ab0] #7 /usr/lib/libnss_mdns.so.2(_nss_mdns_gethostbyaddr_r+0x18a) [0xb78e5d72] This is a bug in the MDNS library from what I remember. Remove mdns from hosts in /etc/nsswitch.conf cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -- Diego Lima http://sg.homelinux.com:81 pgpEBwFKVxbfg.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] restrict ssh login by Win2K AD group SOLVED!
At 02:19 PM 9/19/2006, Matt Herzog wrote: It is that simple. Of course I'd like to have more than one group be able to login so I'll dig into that presently. Create an AD group specifically for restricting ssh access -- ssh access or some such name. Then add the multiple AD groups to this group. Winbind should do the magic beyond this point. Adjust your pam_succeed_if.so line for this new gid once it propagates through winbind, and you should be all set... Cheers, -D Don Meyer [EMAIL PROTECTED] Network Manager, ACES Academic Computing Facility Technical System Manager, ACES TeleNet System UIUC College of ACES, Information Technology and Communication Services They that can give up essential liberty to obtain a little temporary safety, deserve neither liberty or safety. -- Benjamin Franklin, 1759 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] restrict ssh login by Win2K AD group SOLVED!
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Don Meyer wrote: At 02:19 PM 9/19/2006, Matt Herzog wrote: It is that simple. Of course I'd like to have more than one group be able to login so I'll dig into that presently. Create an AD group specifically for restricting ssh access -- ssh access or some such name. Then add the multiple AD groups to this group. Winbind should do the magic beyond this point. Or use winbind's nested local group support. Don's correct. Both will work fine. cheers, jerry = Samba--- http://www.samba.org Centeris --- http://www.centeris.com What man is a man who does not make the world better? --Balian -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD4DBQFFEEtoIR7qMdg1EfYRAiMjAJiIuhfIRa29SXGesjCY2+z5787gAKCrJsg5 ln2pDjzp7y860gY2KQsuRA== =Wqm5 -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] how to convert root to a samba user
From: Ivan Arteaga [EMAIL PROTECTED] To: samba@lists.samba.org Date: Mon, 18 Sep 2006 08:51:05 -0500 Subject: [Samba] how to convert root to a samba user Hi List... First time posting here, I would like to know the way to convert root to a samba user, I tried from webmin and didn't work but I am not quite sure the command console procedure. Any help will be appreciated. --Ivan. If your password back end is smbpasswd, ( you can check this with locate/find smb.conf and read that file). then smbpasswd -a root followed by a password for root This password should never be the same as the actual root password!! regards Dilip -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] re: smb.conf
Hi guys My client is really bugging me to get this working. I create a folder called private and added this into my smb.conf file, but when i browse to the folder private using wendy or pierre i get access denied. soneone told me i must make sure the filesystem of the folder private is set to nobody. Is that correct and how will i go on by doing this. [private] writeable = yes public = no guest ok = no path = /home/samba/private valid users = pierre, wendy write list = pierre, wendy force user = nobody Regards Gerald -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Hung XFS filesystems on Samba server
This is probably a hardware problem but I am posting here in case anyone else has seen it or it is actually software. If you have seen anything like it please let me know. Chuck For the last 1.5 years I have had occasional problems on a large (6.8 TB) Samba server. Two of the mounted filesystems will partially dismount at intervals between 3 days and 3 months. Files will still be open but any local access to the filesystem such as ls will hang. The particualr share is no longer accessable through Samba. I end up having to do a hard shutdown as rebooting will also hang trying to close the filesystem. I have found no logged errors. I have 3 HP DL585 with multiple 6404 raid controllers. Two run samba and the other is NFS only. This only occurs on one server but it is unfortunately the busiest one. I have replaced cables and 6404 cards. The filesystems have been checked using xfs_repair. HP diagnostics has been run for hours. One of our other DL585 servers is physically very close to the problem server but runs NFS instead of Samba on XFS filesystems. It has not had this problem. The only significant hardware difference between the NFS server and Samba server is that the NFS server has all U320 hard drives. Physical config: HP DL 585 with dual processor and 3 6404 4 channel SCSI raid controllers. 6 U320 converted 4200 drive chassis with 72 GB U3/U320 and 146 GB U320. 8 GB ram. Firmware for all parts including disks has been flashed repeatedly over the last two years to current levels. Firmware changes have not made any noticeable difference in this problem. I do wonder about the mix of U3 and U320 drives but each disk carrier is either U3 or U320. Each diskcarrier is set as one ADG array and logical drive. It is then partitioned and formatted such as /dev/ddiss/c2d0p1 with XFS and mounted. Software: I started with Fedora Core2 X86_64 and have worked my way to Fedora Core 5 and samba 3.0.22-1.fc5, acl 2.2.34 and xfsprogs 2.7.3-1.2.1. No software changes have made any difference that I can see in this problem. Samba shares support ACLs. Hardware possiblities: This has occurred in the same 2 disk carriers. I could change the disk carriers or U320 modules. I worry also about the mix of U320 and U3 disks. I setup a test server dl385 with a 6404 from the problem server and a disk carrier with mix of drives. I could not recreate the problem. Software possiblities: Kernel, Samba, ACLs and XFS. But I have tried many versions and not seen any logged errors or change in behavior. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Re: smbmount hangs Linux if Windows server goes down
I know this is an old thread but I have been struggling with this same issue for a while now and was wondering if there was any resolution. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] username map change = samba failure [Working Again]
I essentially gave up and tried the old mapping. I had to rejoin the domain and reboot the system and clients, but it works. However, I have one more question concerning this AD setup. During the course of this exercise, I noticed that getent passwd does not show a new user, and getent group shows old group membership. wbinfo -u correctly shows all domain members, including the new user. I cannot chown the new users home directory to user:Domain Users. It returns as invalid user. Some things are obviously not being updated or pulled from the AD server, but others are. Where do I look for the error? Thanks, Dale Jeremy Allison wrote: On Mon, Sep 18, 2006 at 03:59:28PM -0500, Dale Schroeder wrote: Since I haven't gotten any responses from the segfault log I posted earlier, I will try another approach. Below is what happens when a client tries to connect. Again, this all started after I changed a username mapping entry from root = DOMAIN\Administrator to root = @DOMAIN\Domain Admins. This is in a security = ADS setup. wbinfo -u and -g return the correct information. Dale [2006/09/18 15:42:38, 10] passdb/secrets.c:secrets_named_mutex(778) secrets_named_mutex: got mutex for replay cache mutex [2006/09/18 15:42:38, 10] libads/kerberos_verify.c:ads_secrets_verify_ticket(261) ads_secrets_verify_ticket: enc type [1] failed to decrypt with error Bad encryption type [2006/09/18 15:42:38, 10] libads/kerberos_verify.c:ads_secrets_verify_ticket(261) ads_secrets_verify_ticket: enc type [3] failed to decrypt with error Bad encryption type Did you restrict any enc types in your krb5.conf ? Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] username map change = samba failure [Working Again]
Where do I look for the error? Add log level = 1-10 under [global] in your smb.conf to give a more detailed log (I found 5 to give me most of what i needed, i also found tail quite useful) Messages are logged in /var/log/samba in my distro (fedora) Sorry i couldn't be more help, had a similar, but not the same issue with our print server (upgraded from 3.0.22 to 3.023a). Seemed i was specifying the groups incorrectly. Cheers Matt Thanks, Dale Jeremy Allison wrote:On Mon, Sep 18, 2006 at 03:59:28PM -0500, Dale Schroeder wrote: Since I haven't gotten any responses from the segfault log I posted earlier, I will try another approach. Below is what happens when a client tries to connect. Again, this all started after I changed a username mapping entry from root = DOMAIN\Administrator to root = @DOMAIN\Domain Admins. This is in a security = ADS setup. wbinfo -u and -g return the correct information. Dale [2006/09/18 15:42:38, 10] passdb/secrets.c:secrets_named_mutex(778) secrets_named_mutex: got mutex for replay cache mutex [2006/09/18 15:42:38, 10] libads/kerberos_verify.c:ads_secrets_verify_ticket(261) ads_secrets_verify_ticket: enc type [1] failed to decrypt with error Bad encryption type [2006/09/18 15:42:38, 10] libads/kerberos_verify.c:ads_secrets_verify_ticket(261) ads_secrets_verify_ticket: enc type [3] failed to decrypt with error Bad encryption type Did you restrict any enc types in your krb5.conf ? Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] problems xp joining samba pdc
Don't use the 'Sign or Seal' registry modification. Samba 3.x work perfectly without this modification (This modification can be useful for Samba 2.x). The problem is surely than your machine account don't exist or you don't enter the good admin password. Try to add this account manually without the scripts with smbpasswd and with ldapadd. Try to use phpDLAPAdmin to create user and machine account for samba3+ldap. I suggest you, on the global section, to revove all these lines client plaintext auth = Yes client lanman auth = Yes lanman auth = No ntlm auth = Yes password level = 0 #admin users = manager, root, mikee, jrc, bdhein admin users = usershare allow guests = yes ldap ssl = off ldapsam:trusted = Yes ldap timeout = 15 utmp directory = /var/run wtmp directory = /var/log utmp = Yes allow trusted domains = Yes And on the netlogon section change writable = Yes for writable = No or read only = yes Trust me you don't want people write in this share. :-) Robert -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/18/2006 09:23 AM, Mike escreveu: Morning, I have three machines, two xp and one win2k, that join the samba pdc fine. I have tried to join others to this same samba pdc using the same accounts for authentication without success. The xp machine first says the user does not exist, I click ok and go back to the screen for the domain account authorized to join the domain and press ok (or next) again and this time the xp box says the user already exists. I think something is having an issue with the machine$ accounts in ldap. I added a '-t 5' in smb.conf to the smbadd-useradd command for adding a machine. I could tell a longer time before the first messages (missing user) is returned, but I still have the same final situation with the xp box not being a part of the samba pdc. Any chances that the Sign or Seal problem still exists? Any ideas? Mike [...] /etc/samba/smb.conf # Samba config file created using SWAT # from 10.1.2.43 (10.1.2.43) # Date: 2006/08/03 15:11:35 [global] security = USER client plaintext auth = Yes client lanman auth = Yes encrypt passwords = Yes lanman auth = No ntlm auth = Yes password level = 0 guest account = nobody #admin users = manager, root, mikee, jrc, bdhein admin users = hosts allow = 10.1.2., 10.1.3. cups options = raw wins support = yes usershare allow guests = yes workgroup = PWI netbios aliases = loghost, mailhost, backuphost, ldaphost server string = Samba Server (%h) logon drive = P: logon home = \\%N\%U logon path = \\%N\%U\profile logon script = /etc/samba/login.bat ldap suffix = dc=company,dc=com ldap admin dn = cn=manager,dc=company,dc=com ldap user suffix = ou=people ldap group suffix = ou=groups ldap machine suffix = ou=machines ldap ssl = off ldapsam:trusted = Yes ldap timeout = 15 utmp directory = /var/run wtmp directory = /var/log utmp = Yes password server = ldaphost.company.com passdb backend = ldapsam:ldap://ldaphost.company.com ldap passwd sync = Yes #unix password sync = Yes #passwd program = /usr/sbin/smbldap-passwd %u #passwd chat = Changing * password*for*\nNew password* %n\n *Retype new password* %n\n #passwd chat debug = Yes os level = 66 preferred master = Yes local master = Yes domain master = Yes domain logons = Yes allow trusted domains = Yes dns proxy = No # log level = 255 # log level = 4 # log level = 3 ldap:10 passdb:10 auth:10 winbind:10 log level = 3 log file = /var/log/samba/%m.log max log size = 500 socket options = IPTOS_LOWDELAY TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536 #add user script = /usr/sbin/smbldap-useradd -m '%u' add user script = /usr/sbin/smbldap-useradd -a -A 1 -B 1 -s /bin/bash -c %u -d /home/%u -C %h\\%u -D 'H:' -M [EMAIL PROTECTED] %u delete user script = /usr/sbin/smbldap-userdel %u add group script = /usr/sbin/smbldap-groupadd -p '%g' delete group script = /usr/sbin/smbldap-groupdel '%g' add user to group script = /usr/sbin/smbldap-groupmod -m '%g' '%u' delete user from group script = /usr/sbin/smbldap-groupmod -x '%g' '%u' set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u' #add machine script = /usr/sbin/smbldap-useradd -w '%u' #add machine script = /usr/sbin/smbldap-useradd -w -A 0 -B 0 -s /bin/false -c %u machine account -d /dev/null %u
[Samba] Transfer rates faster than 23MBps?
We use SMB to transfer large files (between 1GB and 5GB) from RedHat AS4 Content Storage servers to Windows clients with 6 DVD burners and robotic arms and other cool gadgets. The servers used to be Windows based, but we're migrating to RedHat for a host of reasons. Unfortunately, the RedHat Samba servers are about 2.5 times slower than the Windows servers. Windows will copy a 1GB file in about 30 seconds, where as it takes about 70 to 75 seconds to copy the same file from a RedHat Samba server. I've asked Dr. Google and gotten all kinds of suggestions, most of which have already been applied by RedHat to the stock Samba config. I've opened a ticket with RedHat. They pointed out a couple errors in my config, but fixing those didn't have any effect. Some tweaking, however, has gotten the transfer speed to about 50 seconds for that 1GB file. But I seem to have hit a brick wall; my fastest time ever was 44 seconds, but typically it's around 50. I know it's not a problem with network or disk; if I use Apache and HTTP to transfer the same file from the same server, it transfers in about 15 to 20 seconds. Unfortunately, HTTP doesn't meet our other requirements for random access to the file. Do you folks use Samba for large file transfers at all? Have you had any luck speeding it up past about 23MBps (the 44 second transfer speed)? Any help you may have would be fantastic. Thanks. -Mark -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Transfer rates faster than 23MBps?
On Tue, Sep 19, 2006 at 06:19:43PM -0700, Mark Smith wrote: We use SMB to transfer large files (between 1GB and 5GB) from RedHat AS4 Content Storage servers to Windows clients with 6 DVD burners and robotic arms and other cool gadgets. The servers used to be Windows based, but we're migrating to RedHat for a host of reasons. Unfortunately, the RedHat Samba servers are about 2.5 times slower than the Windows servers. Windows will copy a 1GB file in about 30 seconds, where as it takes about 70 to 75 seconds to copy the same file from a RedHat Samba server. I've asked Dr. Google and gotten all kinds of suggestions, most of which have already been applied by RedHat to the stock Samba config. I've opened a ticket with RedHat. They pointed out a couple errors in my config, but fixing those didn't have any effect. Some tweaking, however, has gotten the transfer speed to about 50 seconds for that 1GB file. But I seem to have hit a brick wall; my fastest time ever was 44 seconds, but typically it's around 50. I know it's not a problem with network or disk; if I use Apache and HTTP to transfer the same file from the same server, it transfers in about 15 to 20 seconds. Unfortunately, HTTP doesn't meet our other requirements for random access to the file. Do you folks use Samba for large file transfers at all? Have you had any luck speeding it up past about 23MBps (the 44 second transfer speed)? Any help you may have would be fantastic. Thanks. An interesting thing you could do is to use a port of smbclient on Windows (no I don't know where to get one :-) to copy the client to the Windows client in userspace. smbclient will use read pipelining (ie. issue more than one read at a time) whereas Windows clients issue one read, wait for response, issue the next read, wait for response etc. That would tell you if it's a client redirector issue. You could probably use cygwin to compile smbclient. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] permissions problem with adding a machine
I have configured a domain controller in samba 3.0.xxx. I followed the how-to at samba.org and I think I may have missed a step because now when I attempt to add a machine to the domain, I get an error. I am using tdbsam as the user/group store. I ran the net group map to make windows groups to unix groups. I have verified that my administrator users are in group wheel. I do not use the map users file. I found that when I put my administrative user names there they were not permitted to log into the domain. Is there a checklist that I can follow to make sure I didn't forget a step? -- David Bear phone: 602-496-0424 fax:602-496-0955 College of Public Programs/ASU University Center Rm 622 411 N Central Phoenix, AZ 85007-0685 Beware the IP portfolio, everyone will be suspect of trespassing -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Transfer rates faster than 23MBps?
Jeremy Allison wrote: An interesting thing you could do is to use a port of smbclient on Windows (no I don't know where to get one :-) to copy the client to the Windows client in userspace. smbclient will use read pipelining (ie. issue more than one read at a time) whereas Windows clients issue one read, wait for response, issue the next read, wait for response etc. I will try using smbclient from a Linux client and see how that compares to using the Linux kernel's SMB implementation. That's easy to do. :) I'll see what I can do to get smbclient compiled in Windows. Oy. This should be interesting.. -Mark -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Re: smbmount hangs Linux if Windows server goes down
On 9/19/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I know this is an old thread but I have been struggling with this same issue for a while now and was wondering if there was any resolution. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba the cifs module handles such situations gracefully in recent kernels. smbfs has been deprecated for some time now, but I still find it amazing how many people have not heard of it. They need to run a marketing campaign, or something. -- Noah Dain I don't want to make toys, I want to be a dentist! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Memory leak
I'm using Samba 3.0204 on SUSE 10 as a backup for our file server. The file server contains over a million files in around 9 directories. I use xxcopy from the file server to update the SUSE machine. In KDE System Guard the process table shows smbd creeping up towards 200MB at around halfway through the backup. The machine only has 256MB and becomes unusable around this point. What can I do about this? -- Ray Greene -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
svn commit: samba r18676 - in branches/SAMBA_4_0/source/librpc/idl: .
Author: idra Date: 2006-09-19 15:39:21 + (Tue, 19 Sep 2006) New Revision: 18676 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18676 Log: Don't mix ShareInfo and ShareCtr definitions, this makes a much more readable include file Modified: branches/SAMBA_4_0/source/librpc/idl/srvsvc.idl Changeset: Modified: branches/SAMBA_4_0/source/librpc/idl/srvsvc.idl === --- branches/SAMBA_4_0/source/librpc/idl/srvsvc.idl 2006-09-19 03:51:45 UTC (rev 18675) +++ branches/SAMBA_4_0/source/librpc/idl/srvsvc.idl 2006-09-19 15:39:21 UTC (rev 18676) @@ -402,22 +402,12 @@ } srvsvc_NetShareInfo0; typedef struct { - uint32 count; - [size_is(count)] srvsvc_NetShareInfo0 *array; - } srvsvc_NetShareCtr0; - - typedef struct { [string,charset(UTF16)] uint16 *name; srvsvc_ShareType type; [string,charset(UTF16)] uint16 *comment; } srvsvc_NetShareInfo1; typedef struct { - uint32 count; - [size_is(count)] srvsvc_NetShareInfo1 *array; - } srvsvc_NetShareCtr1; - - typedef struct { [string,charset(UTF16)] uint16 *name; srvsvc_ShareType type; [string,charset(UTF16)] uint16 *comment; @@ -429,11 +419,6 @@ } srvsvc_NetShareInfo2; typedef struct { - uint32 count; - [size_is(count)] srvsvc_NetShareInfo2 *array; - } srvsvc_NetShareCtr2; - - typedef struct { [string,charset(UTF16)] uint16 *name; srvsvc_ShareType type; [string,charset(UTF16)] uint16 *comment; @@ -441,11 +426,6 @@ } srvsvc_NetShareInfo501; typedef struct { - uint32 count; - [size_is(count)] srvsvc_NetShareInfo501 *array; - } srvsvc_NetShareCtr501; - - typedef struct { [string,charset(UTF16)] uint16 *name; srvsvc_ShareType type; [string,charset(UTF16)] uint16 *comment; @@ -460,18 +440,12 @@ } srvsvc_NetShareInfo502; typedef struct { - uint32 count; - [size_is(count)] srvsvc_NetShareInfo502 *array; - } srvsvc_NetShareCtr502; - - typedef struct { [string,charset(UTF16)] uint16 *comment; } srvsvc_NetShareInfo1004; typedef struct { - uint32 count; - [size_is(count)] srvsvc_NetShareInfo1004 *array; - } srvsvc_NetShareCtr1004; + int32 max_users; + } srvsvc_NetShareInfo1006; typedef bitmap { SHARE_1005_IN_DFS = 0x0001, @@ -486,26 +460,66 @@ } srvsvc_NetShareInfo1005; typedef struct { + uint32 flags; + [string,charset(UTF16)] uint16 *alternate_directory_name; + } srvsvc_NetShareInfo1007; + + typedef union { + [case(0)] srvsvc_NetShareInfo0 *info0; + [case(1)] srvsvc_NetShareInfo1 *info1; + [case(2)] srvsvc_NetShareInfo2 *info2; + [case(501)] srvsvc_NetShareInfo501 *info501; + [case(502)] srvsvc_NetShareInfo502 *info502; + [case(1004)] srvsvc_NetShareInfo1004 *info1004; + [case(1005)] srvsvc_NetShareInfo1005 *info1005; + [case(1006)] srvsvc_NetShareInfo1006 *info1006; + [case(1007)] srvsvc_NetShareInfo1007 *info1007; + [case(1501)] sec_desc_buf *info1501; + [default] ; + } srvsvc_NetShareInfo; + + typedef struct { uint32 count; - [size_is(count)] srvsvc_NetShareInfo1005 *array; - } srvsvc_NetShareCtr1005; + [size_is(count)] srvsvc_NetShareInfo0 *array; + } srvsvc_NetShareCtr0; typedef struct { - int32 max_users; - } srvsvc_NetShareInfo1006; + uint32 count; + [size_is(count)] srvsvc_NetShareInfo1 *array; + } srvsvc_NetShareCtr1; typedef struct { uint32 count; - [size_is(count)] srvsvc_NetShareInfo1006 *array; - } srvsvc_NetShareCtr1006; + [size_is(count)] srvsvc_NetShareInfo2 *array; + } srvsvc_NetShareCtr2; typedef struct { - uint32 flags; - [string,charset(UTF16)] uint16 *alternate_directory_name; - } srvsvc_NetShareInfo1007; + uint32 count; + [size_is(count)] srvsvc_NetShareInfo501 *array; + } srvsvc_NetShareCtr501; typedef struct { uint32 count; + [size_is(count)] srvsvc_NetShareInfo502 *array; + } srvsvc_NetShareCtr502; + + typedef struct { + uint32 count; + [size_is(count)] srvsvc_NetShareInfo1004 *array; + }
svn commit: samba r18677 - in branches/SAMBA_3_0/source: include rpc_client rpc_parse rpcclient
Author: gd Date: 2006-09-19 15:53:44 + (Tue, 19 Sep 2006) New Revision: 18677 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18677 Log: quickly add samr_GetDisplayEnumerationIndex for debugging to rpcclient. Guenther Modified: branches/SAMBA_3_0/source/include/rpc_samr.h branches/SAMBA_3_0/source/rpc_client/cli_samr.c branches/SAMBA_3_0/source/rpc_parse/parse_samr.c branches/SAMBA_3_0/source/rpcclient/cmd_samr.c Changeset: Modified: branches/SAMBA_3_0/source/include/rpc_samr.h === --- branches/SAMBA_3_0/source/include/rpc_samr.h2006-09-19 15:39:21 UTC (rev 18676) +++ branches/SAMBA_3_0/source/include/rpc_samr.h2006-09-19 15:53:44 UTC (rev 18677) @@ -121,7 +121,7 @@ #define SAMR_QUERY_USERGROUPS 0x27 #define SAMR_QUERY_DISPINFO0x28 -#define SAMR_UNKNOWN_290x29 +#define SAMR_GET_DISPENUM_INDEX 0x29 #define SAMR_UNKNOWN_2a0x2a #define SAMR_UNKNOWN_2b0x2b #define SAMR_GET_USRDOM_PWINFO 0x2c @@ -1047,7 +1047,23 @@ } SAMR_R_QUERY_DISPINFO; +/* SAMR_Q_GET_DISPENUM_INDEX */ +typedef struct q_samr_get_dispenum_index +{ + POLICY_HND domain_pol; + uint16 switch_level; + LSA_STRING name; +} SAMR_Q_GET_DISPENUM_INDEX; + +/* SAMR_R_GET_DISPENUM_INDEX */ +typedef struct r_samr_get_dispenum_index +{ + uint32 idx; + NTSTATUS status; + +} SAMR_R_GET_DISPENUM_INDEX; + /* SAMR_Q_DELETE_DOM_GROUP - delete domain group */ typedef struct q_samr_delete_dom_group_info { Modified: branches/SAMBA_3_0/source/rpc_client/cli_samr.c === --- branches/SAMBA_3_0/source/rpc_client/cli_samr.c 2006-09-19 15:39:21 UTC (rev 18676) +++ branches/SAMBA_3_0/source/rpc_client/cli_samr.c 2006-09-19 15:53:44 UTC (rev 18677) @@ -1576,7 +1576,50 @@ return result; } +/* Query display info index */ +NTSTATUS rpccli_samr_get_dispenum_index(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + POLICY_HND *domain_pol, + uint16 switch_value, + const char *name, + uint32 *idx) +{ + prs_struct qbuf, rbuf; + SAMR_Q_GET_DISPENUM_INDEX q; + SAMR_R_GET_DISPENUM_INDEX r; + NTSTATUS result = NT_STATUS_UNSUCCESSFUL; + + DEBUG(10,(cli_samr_get_dispenum_index for name = %s\n, name)); + + ZERO_STRUCT(q); + ZERO_STRUCT(r); + + /* Marshall data and send request */ + + init_samr_q_get_dispenum_index(q, domain_pol, switch_value, name); + + CLI_DO_RPC(cli, mem_ctx, PI_SAMR, SAMR_GET_DISPENUM_INDEX, + q, r, + qbuf, rbuf, + samr_io_q_get_dispenum_index, + samr_io_r_get_dispenum_index, + NT_STATUS_UNSUCCESSFUL); + + /* Return output parameters */ + + *idx = 0; + +result = r.status; + + if (NT_STATUS_IS_OK(result)) { + *idx = r.idx; + } + + return result; +} + + /* Lookup rids. Note that NT4 seems to crash if more than ~1000 rids are looked up in one packet. */ Modified: branches/SAMBA_3_0/source/rpc_parse/parse_samr.c === --- branches/SAMBA_3_0/source/rpc_parse/parse_samr.c2006-09-19 15:39:21 UTC (rev 18676) +++ branches/SAMBA_3_0/source/rpc_parse/parse_samr.c2006-09-19 15:53:44 UTC (rev 18677) @@ -2173,6 +2173,76 @@ } /*** +inits a SAMR_Q_GET_DISPENUM_INDEX structure. +/ + +void init_samr_q_get_dispenum_index(SAMR_Q_GET_DISPENUM_INDEX * q_e, POLICY_HND *pol, + uint16 switch_level, const char *name) +{ + DEBUG(5, (init_samr_q_get_dispenum_index\n)); + + q_e-domain_pol = *pol; + + q_e-switch_level = switch_level; + + init_lsa_string(q_e-name, name); +} + +/*** +reads or writes a structure. +/ + +BOOL samr_io_q_get_dispenum_index(const char *desc, SAMR_Q_GET_DISPENUM_INDEX * q_e, + prs_struct *ps, int depth) +{ + if (q_e == NULL) + return False; + + prs_debug(ps, depth, desc, samr_io_q_get_dispenum_index); + depth++; + + if(!prs_align(ps)) + return False; + + if(!smb_io_pol_hnd(domain_pol, q_e-domain_pol, ps, depth)) + return False; + + if(!prs_uint16(switch_level, ps, depth, q_e-switch_level)) + return False; + + if (!smb_io_lsa_string(name, q_e-name, ps, depth)) +
svn commit: samba r18678 - in branches/SAMBA_3_0/source/rpc_parse: .
Author: gd Date: 2006-09-19 16:15:54 + (Tue, 19 Sep 2006) New Revision: 18678 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18678 Log: Fix the build. (never commit before breakfeast). Guenther Modified: branches/SAMBA_3_0/source/rpc_parse/parse_lsa.c Changeset: Modified: branches/SAMBA_3_0/source/rpc_parse/parse_lsa.c === --- branches/SAMBA_3_0/source/rpc_parse/parse_lsa.c 2006-09-19 15:53:44 UTC (rev 18677) +++ branches/SAMBA_3_0/source/rpc_parse/parse_lsa.c 2006-09-19 16:15:54 UTC (rev 18678) @@ -2922,7 +2922,7 @@ } -static void init_lsa_string( LSA_STRING *uni, const char *string ) +void init_lsa_string( LSA_STRING *uni, const char *string ) { init_unistr2(uni-unistring, string, UNI_FLAGS_NONE); init_uni_hdr(uni-hdr, uni-unistring);
svn commit: samba r18679 - in branches/SAMBA_3_0/source/include: .
Author: gd Date: 2006-09-19 17:27:17 + (Tue, 19 Sep 2006) New Revision: 18679 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18679 Log: Fix the build. Guenther Modified: branches/SAMBA_3_0/source/include/libmsrpc.h Changeset: Modified: branches/SAMBA_3_0/source/include/libmsrpc.h === --- branches/SAMBA_3_0/source/include/libmsrpc.h2006-09-19 16:15:54 UTC (rev 18678) +++ branches/SAMBA_3_0/source/include/libmsrpc.h2006-09-19 17:27:17 UTC (rev 18679) @@ -704,7 +704,7 @@ char *forest_name; /**remote server's domain guid*/ - struct uuid *domain_guid; + struct GUID *domain_guid; /**remote server's domain SID*/ DOM_SID *domain_sid;
svn commit: samba r18680 - in branches/SAMBA_3_0/source/rpc_server: .
Author: gd Date: 2006-09-19 17:29:31 + (Tue, 19 Sep 2006) New Revision: 18680 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18680 Log: Fix last struct uuids (in uncommented code). Guenther Modified: branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c Changeset: Modified: branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c === --- branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c 2006-09-19 17:27:17 UTC (rev 18679) +++ branches/SAMBA_3_0/source/rpc_server/srv_lsa_nt.c 2006-09-19 17:29:31 UTC (rev 18680) @@ -487,7 +487,7 @@ static void init_dns_dom_info(LSA_DNS_DOM_INFO *r_l, const char *nb_name, const char *dns_name, const char *forest_name, - struct uuid *dom_guid, DOM_SID *dom_sid) + struct GUID *dom_guid, DOM_SID *dom_sid) { if (nb_name *nb_name) { init_unistr2(r_l-uni_nb_dom_name, nb_name, UNI_FLAGS_NONE); @@ -512,7 +512,7 @@ /* how do we init the guid ? probably should write an init fn */ if (dom_guid) { - memcpy(r_l-dom_guid, dom_guid, sizeof(struct uuid)); + memcpy(r_l-dom_guid, dom_guid, sizeof(struct GUID)); } if (dom_sid) { @@ -1879,7 +1879,7 @@ char *dns_name = NULL; char *forest_name = NULL; DOM_SID *sid = NULL; - struct uuid guid; + struct GUID guid; fstring dnsdomname; ZERO_STRUCT(guid);
svn commit: samba r18681 - in branches/SAMBA_3_0/source/rpcclient: .
Author: gd Date: 2006-09-19 18:32:13 + (Tue, 19 Sep 2006) New Revision: 18681 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18681 Log: Although we have commandline completion in rpcclient, just also allow debug to be set instead of debuglevel - just for convenience. Guenther Modified: branches/SAMBA_3_0/source/rpcclient/rpcclient.c Changeset: Modified: branches/SAMBA_3_0/source/rpcclient/rpcclient.c === --- branches/SAMBA_3_0/source/rpcclient/rpcclient.c 2006-09-19 17:29:31 UTC (rev 18680) +++ branches/SAMBA_3_0/source/rpcclient/rpcclient.c 2006-09-19 18:32:13 UTC (rev 18681) @@ -437,6 +437,7 @@ { help, RPC_RTYPE_NTSTATUS, cmd_help, NULL, -1, NULL, Get help on commands, [command] }, { ?, RPC_RTYPE_NTSTATUS, cmd_help, NULL, -1, NULL, Get help on commands, [command] }, { debuglevel, RPC_RTYPE_NTSTATUS, cmd_debuglevel, NULL, -1, NULL, Set debug level, level }, + { debug, RPC_RTYPE_NTSTATUS, cmd_debuglevel, NULL, -1, NULL, Set debug level, level }, { list, RPC_RTYPE_NTSTATUS, cmd_listcommands, NULL, -1, NULL, List available commands on pipe, pipe }, { exit, RPC_RTYPE_NTSTATUS, cmd_quit, NULL, -1, NULL, Exit program, }, { quit, RPC_RTYPE_NTSTATUS, cmd_quit, NULL, -1, NULL, Exit program, },
svn commit: samba r18682 - in branches/SAMBA_4_0/source/libnet: .
Author: mimir Date: 2006-09-19 19:10:14 + (Tue, 19 Sep 2006) New Revision: 18682 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18682 Log: a bit of a change in setfield function. one more change to do... rafal Modified: branches/SAMBA_4_0/source/libnet/userman.c Changeset: Modified: branches/SAMBA_4_0/source/libnet/userman.c === --- branches/SAMBA_4_0/source/libnet/userman.c 2006-09-19 18:32:13 UTC (rev 18681) +++ branches/SAMBA_4_0/source/libnet/userman.c 2006-09-19 19:10:14 UTC (rev 18682) @@ -555,142 +555,142 @@ static uint32_t usermod_setfields(struct usermod_state *s, uint16_t *level, union samr_UserInfo *i) { - if (s-change.fields) { - if (s-change.fields USERMOD_FIELD_ACCOUNT_NAME) { - *level = 7; - i-info7.account_name.string = s-change.account_name; + if (s-change.fields == 0) return s-change.fields; - s-change.fields ^= USERMOD_FIELD_ACCOUNT_NAME; - - } else if (s-change.fields USERMOD_FIELD_FULL_NAME) { - *level = 8; - i-info8.full_name.string = s-change.full_name; + if (s-change.fields USERMOD_FIELD_ACCOUNT_NAME) { + *level = 7; + i-info7.account_name.string = s-change.account_name; + + s-change.fields ^= USERMOD_FIELD_ACCOUNT_NAME; + + } else if (s-change.fields USERMOD_FIELD_FULL_NAME) { + *level = 8; + i-info8.full_name.string = s-change.full_name; + + s-change.fields ^= USERMOD_FIELD_FULL_NAME; + + } else if (s-change.fields USERMOD_FIELD_DESCRIPTION) { + *level = 13; + i-info13.description.string = s-change.description; + + s-change.fields ^= USERMOD_FIELD_DESCRIPTION; + + } else if (s-change.fields USERMOD_FIELD_COMMENT) { + *level = 2; + + if (s-stage == USERMOD_QUERY) { + /* the user info is obtained, so now set the required field */ + i-info2.comment.string = s-change.comment; + s-change.fields ^= USERMOD_FIELD_COMMENT; - s-change.fields ^= USERMOD_FIELD_FULL_NAME; - - } else if (s-change.fields USERMOD_FIELD_DESCRIPTION) { - *level = 13; - i-info13.description.string = s-change.description; + } else { + /* we need to query the user info before setting one field in it */ + s-stage = USERMOD_QUERY; + return s-change.fields; + } + + } else if (s-change.fields USERMOD_FIELD_ALLOW_PASS_CHG) { + *level = 3; + + if (s-stage == USERMOD_QUERY) { + i-info3.allow_password_change = timeval_to_nttime(s-change.allow_password_change); + s-change.fields ^= USERMOD_FIELD_ALLOW_PASS_CHG; - s-change.fields ^= USERMOD_FIELD_DESCRIPTION; + } else { + s-stage = USERMOD_QUERY; + return s-change.fields; + } - } else if (s-change.fields USERMOD_FIELD_COMMENT) { - *level = 2; + } else if (s-change.fields USERMOD_FIELD_FORCE_PASS_CHG) { + *level = 3; - if (s-stage == USERMOD_QUERY) { - /* the user info is obtained, so now set the required field */ - i-info2.comment.string = s-change.comment; - s-change.fields ^= USERMOD_FIELD_COMMENT; - - } else { - /* we need to query the user info before setting one field in it */ - s-stage = USERMOD_QUERY; - return s-change.fields; - } - - } else if (s-change.fields USERMOD_FIELD_ALLOW_PASS_CHG) { - *level = 3; + if (s-stage == USERMOD_QUERY) { + i-info3.force_password_change = timeval_to_nttime(s-change.force_password_change); + s-change.fields ^= USERMOD_FIELD_FORCE_PASS_CHG; - if (s-stage == USERMOD_QUERY) { - i-info3.allow_password_change = timeval_to_nttime(s-change.allow_password_change); - s-change.fields ^= USERMOD_FIELD_ALLOW_PASS_CHG; + } else { + s-stage =
svn commit: samba r18683 - in branches/SAMBA_4_0/source/torture/libnet: .
Author: mimir Date: 2006-09-19 19:15:36 + (Tue, 19 Sep 2006) New Revision: 18683 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18683 Log: NET-USERMOD test changed to be able to perform multiple simultaneous changes. Also, some common definitions for user mod tests have been put into a separate file. rafal Added: branches/SAMBA_4_0/source/torture/libnet/usertest.h Modified: branches/SAMBA_4_0/source/torture/libnet/libnet_user.c branches/SAMBA_4_0/source/torture/libnet/userman.c Changeset: Modified: branches/SAMBA_4_0/source/torture/libnet/libnet_user.c === --- branches/SAMBA_4_0/source/torture/libnet/libnet_user.c 2006-09-19 19:10:14 UTC (rev 18682) +++ branches/SAMBA_4_0/source/torture/libnet/libnet_user.c 2006-09-19 19:15:36 UTC (rev 18683) @@ -26,10 +26,9 @@ #include librpc/gen_ndr/ndr_samr_c.h #include torture/torture.h #include torture/rpc/rpc.h +#include torture/libnet/usertest.h -#define TEST_USERNAMElibnetusertest - static BOOL test_cleanup(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct policy_handle *domain_handle, const char *username) { @@ -318,25 +317,8 @@ Generate testing set of random changes */ -#define TEST_CHG_ACCOUNTNAME newlibnetusertest%02d -#define TEST_CHG_DESCRIPTION Sample description %ld -#define TEST_CHG_FULLNAME First%04x Last%04x -#define TEST_CHG_COMMENT Comment[%04lu%04lu] -#define TEST_CHG_PROFILEPATH srv%04ld\\profile%02u\\prof - -#define continue_if_field_set(field) \ - if (field != 0) { \ - i--; \ - continue; \ - } - -const int fields_num = 15; -enum test_fields { none = 0, account_name, full_name, description, home_directory, home_drive, - comment, logon_script, profile_path, acct_expiry, allow_password_change, - force_password_change, last_logon, last_logoff, last_password_change }; - -static void set_test_changes(TALLOC_CTX *mem_ctx, struct libnet_ModifyUser *r, int num_changes, -char **user_name, enum test_fields req_change) +void set_test_changes(TALLOC_CTX *mem_ctx, struct libnet_ModifyUser *r, int num_changes, + char **user_name, enum test_fields req_change) { const char* logon_scripts[] = { start_login.cmd, login.bat, start.cmd }; const char* home_dirs[] = { srv\\home, homesrv\\home\\user, pdcsrv\\domain }; @@ -349,10 +331,10 @@ printf(Fields to change: [); - for (i = 0; i num_changes i fields_num; i++) { + for (i = 0; i num_changes i FIELDS_NUM; i++) { const char *fldname; - testfld = (req_change == none) ? (random() % fields_num) : req_change; + testfld = (req_change == none) ? (random() % FIELDS_NUM) : req_change; /* get one in case we hit time field this time */ gettimeofday(now, NULL); @@ -525,7 +507,7 @@ printf(Testing change of all fields - each single one in turn\n); - for (fld = 1; fld fields_num; fld++) { + for (fld = 1; fld FIELDS_NUM; fld++) { ZERO_STRUCT(req); req.in.domain_name = lp_workgroup(); req.in.user_name = name; Modified: branches/SAMBA_4_0/source/torture/libnet/userman.c === --- branches/SAMBA_4_0/source/torture/libnet/userman.c 2006-09-19 19:10:14 UTC (rev 18682) +++ branches/SAMBA_4_0/source/torture/libnet/userman.c 2006-09-19 19:15:36 UTC (rev 18683) @@ -21,12 +21,11 @@ #include includes.h #include torture/rpc/rpc.h +#include torture/libnet/usertest.h #include libnet/libnet.h #include librpc/gen_ndr/ndr_samr_c.h -#define TEST_USERNAME libnetusermantest - static BOOL test_opendomain(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct policy_handle *handle, struct lsa_String *domname) { @@ -255,18 +254,164 @@ } -static BOOL test_userdel(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, -struct policy_handle *handle, const char *username) +static BOOL test_usermod(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, +struct policy_handle *handle, int num_changes, +char **username) { + const char* logon_scripts[] = { start_login.cmd, login.bat, start.cmd }; + const char* home_dirs[] = { srv\\home, homesrv\\home\\user, pdcsrv\\domain }; + const char* home_drives[] = { H:, z:, I:, J:, n: }; + const char *homedir, *homedrive, *logonscript; + NTSTATUS status; - struct libnet_rpc_userdel user; - - user.in.domain_handle = *handle; - user.in.username = username; - - status = libnet_rpc_userdel(p, mem_ctx, user); + struct libnet_rpc_usermod mod; +
svn commit: samba r18684 - in branches: SAMBA_3_0/source/passdb SAMBA_3_0_23/source/passdb
Author: jerry Date: 2006-09-19 19:47:54 + (Tue, 19 Sep 2006) New Revision: 18684 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18684 Log: pdb_get_group_sid() has to use the Get_Pwnam_alloc() call to ensure it finds the Unix user. Modified: branches/SAMBA_3_0/source/passdb/pdb_get_set.c branches/SAMBA_3_0_23/source/passdb/pdb_get_set.c Changeset: Modified: branches/SAMBA_3_0/source/passdb/pdb_get_set.c === --- branches/SAMBA_3_0/source/passdb/pdb_get_set.c 2006-09-19 19:15:36 UTC (rev 18683) +++ branches/SAMBA_3_0/source/passdb/pdb_get_set.c 2006-09-19 19:47:54 UTC (rev 18684) @@ -157,7 +157,7 @@ if ( sampass-unix_pw ) { pwd = sampass-unix_pw; } else { - pwd = getpwnam_alloc( sampass, pdb_get_username(sampass) ); + pwd = Get_Pwnam_alloc( sampass, pdb_get_username(sampass) ); } if ( !pwd ) { Modified: branches/SAMBA_3_0_23/source/passdb/pdb_get_set.c === --- branches/SAMBA_3_0_23/source/passdb/pdb_get_set.c 2006-09-19 19:15:36 UTC (rev 18683) +++ branches/SAMBA_3_0_23/source/passdb/pdb_get_set.c 2006-09-19 19:47:54 UTC (rev 18684) @@ -157,7 +157,7 @@ if ( sampass-unix_pw ) { pwd = sampass-unix_pw; } else { - pwd = getpwnam_alloc( sampass, pdb_get_username(sampass) ); + pwd = Get_Pwnam_alloc( sampass, pdb_get_username(sampass) ); } if ( !pwd ) {
svn commit: samba r18685 - in branches/SAMBA_4_0/source/lib/socket: .
Author: metze Date: 2006-09-19 21:33:40 + (Tue, 19 Sep 2006) New Revision: 18685 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18685 Log: we don't need this here metze Modified: branches/SAMBA_4_0/source/lib/socket/netif.c Changeset: Modified: branches/SAMBA_4_0/source/lib/socket/netif.c === --- branches/SAMBA_4_0/source/lib/socket/netif.c2006-09-19 19:47:54 UTC (rev 18684) +++ branches/SAMBA_4_0/source/lib/socket/netif.c2006-09-19 21:33:40 UTC (rev 18685) @@ -80,7 +80,6 @@ #include net/if.h #endif -#define BOOL int #include netif.h #if HAVE_IFACE_IFCONF
svn commit: samba r18686 - in branches/SAMBA_4_0/source/smb_server/smb2: .
Author: vlendec Date: 2006-09-19 21:41:02 + (Tue, 19 Sep 2006) New Revision: 18686 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18686 Log: Fix typo protocl-protocol Modified: branches/SAMBA_4_0/source/smb_server/smb2/receive.c Changeset: Modified: branches/SAMBA_4_0/source/smb_server/smb2/receive.c === --- branches/SAMBA_4_0/source/smb_server/smb2/receive.c 2006-09-19 21:33:40 UTC (rev 18685) +++ branches/SAMBA_4_0/source/smb_server/smb2/receive.c 2006-09-19 21:41:02 UTC (rev 18686) @@ -313,7 +313,8 @@ protocol_version = IVAL(blob.data, NBT_HDR_SIZE); if (protocol_version != SMB2_MAGIC) { - DEBUG(2,(Invalid SMB packet: protocl prefix: 0x%08X\n, protocol_version)); + DEBUG(2,(Invalid SMB packet: protocol prefix: 0x%08X\n, +protocol_version)); smbsrv_terminate_connection(smb_conn, NON-SMB2 packet); return NT_STATUS_OK; }
svn commit: samba r18687 - in branches/SAMBA_3_0/source: . lib
Author: metze Date: 2006-09-19 21:57:59 + (Tue, 19 Sep 2006) New Revision: 18687 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18687 Log: sync the lib/interfaces.c with lib/socket/netif.c from samba4 to hopefully fix the build on HPUX and Tru64 metze Modified: branches/SAMBA_3_0/source/configure.in branches/SAMBA_3_0/source/lib/interfaces.c Changeset: Modified: branches/SAMBA_3_0/source/configure.in === --- branches/SAMBA_3_0/source/configure.in 2006-09-19 21:41:02 UTC (rev 18686) +++ branches/SAMBA_3_0/source/configure.in 2006-09-19 21:57:59 UTC (rev 18687) @@ -2757,24 +2757,29 @@ # look for a method of finding the list of network interfaces iface=no; AC_CACHE_CHECK([for iface AIX],samba_cv_HAVE_IFACE_AIX,[ +SAVE_CPPFLAGS=$CPPFLAGS +CPPFLAGS=$CPPFLAGS ${SAMBA_CONFIGURE_CPPFLAGS} AC_TRY_RUN([ #define HAVE_IFACE_AIX 1 #define AUTOCONF_TEST 1 -#include confdefs.h +#undef _XOPEN_SOURCE_EXTENDED #include ${srcdir-.}/lib/interfaces.c], samba_cv_HAVE_IFACE_AIX=yes,samba_cv_HAVE_IFACE_AIX=no,samba_cv_HAVE_IFACE_AIX=cross)]) +CPPFLAGS=$SAVE_CPPFLAGS if test x$samba_cv_HAVE_IFACE_AIX = xyes; then iface=yes;AC_DEFINE(HAVE_IFACE_AIX,1,[Whether iface AIX is available]) fi if test $iface = no; then AC_CACHE_CHECK([for iface ifconf],samba_cv_HAVE_IFACE_IFCONF,[ +SAVE_CPPFLAGS=$CPPFLAGS +CPPFLAGS=$CPPFLAGS ${SAMBA_CONFIGURE_CPPFLAGS} AC_TRY_RUN([ #define HAVE_IFACE_IFCONF 1 #define AUTOCONF_TEST 1 -#include confdefs.h #include ${srcdir-.}/lib/interfaces.c], samba_cv_HAVE_IFACE_IFCONF=yes,samba_cv_HAVE_IFACE_IFCONF=no,samba_cv_HAVE_IFACE_IFCONF=cross)]) +CPPFLAGS=$SAVE_CPPFLAGS if test x$samba_cv_HAVE_IFACE_IFCONF = xyes; then iface=yes;AC_DEFINE(HAVE_IFACE_IFCONF,1,[Whether iface ifconf is available]) fi @@ -2782,12 +2787,14 @@ if test $iface = no; then AC_CACHE_CHECK([for iface ifreq],samba_cv_HAVE_IFACE_IFREQ,[ +SAVE_CPPFLAGS=$CPPFLAGS +CPPFLAGS=$CPPFLAGS ${SAMBA_CONFIGURE_CPPFLAGS} AC_TRY_RUN([ #define HAVE_IFACE_IFREQ 1 #define AUTOCONF_TEST 1 -#include confdefs.h #include ${srcdir-.}/lib/interfaces.c], samba_cv_HAVE_IFACE_IFREQ=yes,samba_cv_HAVE_IFACE_IFREQ=no,samba_cv_HAVE_IFACE_IFREQ=cross)]) +CPPFLAGS=$SAVE_CPPFLAGS if test x$samba_cv_HAVE_IFACE_IFREQ = xyes; then iface=yes;AC_DEFINE(HAVE_IFACE_IFREQ,1,[Whether iface ifreq is available]) fi Modified: branches/SAMBA_3_0/source/lib/interfaces.c === --- branches/SAMBA_3_0/source/lib/interfaces.c 2006-09-19 21:41:02 UTC (rev 18686) +++ branches/SAMBA_3_0/source/lib/interfaces.c 2006-09-19 21:57:59 UTC (rev 18687) @@ -30,28 +30,22 @@ */ +#ifndef AUTOCONF_TEST +#include config.h +#endif + #include unistd.h #include stdio.h #include sys/types.h +#include netdb.h +#include sys/ioctl.h +#include netdb.h +#include sys/ioctl.h +#include sys/time.h #include sys/socket.h #include netinet/in.h #include arpa/inet.h -#include netdb.h -#include sys/ioctl.h -#include sys/time.h -#include net/if.h -#ifdef AUTOCONF_TEST -struct iface_struct { - char name[16]; - struct in_addr ip; - struct in_addr netmask; -}; -#else -#include config.h -#include interfaces.h -#endif - #ifdef HAVE_SYS_TIME_H #include sys/time.h #endif @@ -82,6 +76,12 @@ #define QSORT_CAST (int (*)(const void *, const void *)) #endif +#ifdef HAVE_NET_IF_H +#include net/if.h +#endif + +#include interfaces.h + #if HAVE_IFACE_IFCONF /* this works for Linux 2.2, Solaris 2.5, SunOS4, HPUX 10.20, OSF1 @@ -154,7 +154,9 @@ return total; } -#elif HAVE_IFACE_IFREQ +#define _FOUND_IFACE_ANY +#endif /* HAVE_IFACE_IFCONF */ +#ifdef HAVE_IFACE_IFREQ #ifndef I_STR #include sys/stropts.h @@ -249,7 +251,9 @@ return total; } -#elif HAVE_IFACE_AIX +#define _FOUND_IFACE_ANY +#endif /* HAVE_IFACE_IFREQ */ +#ifdef HAVE_IFACE_AIX / this one is for AIX (tested on 4.2) @@ -284,7 +288,7 @@ i = ifc.ifc_len; while (i 0 total max_interfaces) { - unsigned inc; + uint_t inc; inc = ifr-ifr_addr.sa_len; @@ -337,7 +341,9 @@ return total; } -#else /* a dummy version */ +#define _FOUND_IFACE_ANY +#endif /* HAVE_IFACE_AIX */ +#ifndef _FOUND_IFACE_ANY static int _get_interfaces(struct iface_struct *ifaces, int max_interfaces) { return -1; @@ -358,8 +364,6 @@ /* this wrapper is used to remove duplicates from the interface list generated above */ -int get_interfaces(struct iface_struct *ifaces, int max_interfaces); - int get_interfaces(struct iface_struct *ifaces, int max_interfaces) { int total, i, j; @@ -388,8 +392,6 @@ #ifdef AUTOCONF_TEST /* this is the autoconf driver to test get_interfaces() */ -#define MAX_INTERFACES 128 -
svn commit: samba r18688 - in branches/SAMBA_3_0/source/librpc/idl: .
Author: jelmer Date: 2006-09-19 22:14:34 + (Tue, 19 Sep 2006) New Revision: 18688 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18688 Log: get rid of the now obsolete keepref attribute Modified: branches/SAMBA_3_0/source/librpc/idl/dfs.idl branches/SAMBA_3_0/source/librpc/idl/echo.idl branches/SAMBA_3_0/source/librpc/idl/eventlog.idl branches/SAMBA_3_0/source/librpc/idl/initshutdown.idl branches/SAMBA_3_0/source/librpc/idl/lsa.idl branches/SAMBA_3_0/source/librpc/idl/netlogon.idl branches/SAMBA_3_0/source/librpc/idl/samr.idl branches/SAMBA_3_0/source/librpc/idl/spoolss.idl branches/SAMBA_3_0/source/librpc/idl/srvsvc.idl branches/SAMBA_3_0/source/librpc/idl/svcctl.idl branches/SAMBA_3_0/source/librpc/idl/unixinfo.idl branches/SAMBA_3_0/source/librpc/idl/winreg.idl branches/SAMBA_3_0/source/librpc/idl/wkssvc.idl Changeset: Modified: branches/SAMBA_3_0/source/librpc/idl/dfs.idl === --- branches/SAMBA_3_0/source/librpc/idl/dfs.idl2006-09-19 21:57:59 UTC (rev 18687) +++ branches/SAMBA_3_0/source/librpc/idl/dfs.idl2006-09-19 22:14:34 UTC (rev 18688) @@ -5,8 +5,7 @@ [ uuid(4fc742e0-4a10-11cf-8273-00aa004ae673), version(3.0), pointer_default(unique), - helpstring(Settings for Microsoft Distributed File System), - keepref + helpstring(Settings for Microsoft Distributed File System) ] interface netdfs { /**/ Modified: branches/SAMBA_3_0/source/librpc/idl/echo.idl === --- branches/SAMBA_3_0/source/librpc/idl/echo.idl 2006-09-19 21:57:59 UTC (rev 18687) +++ branches/SAMBA_3_0/source/librpc/idl/echo.idl 2006-09-19 22:14:34 UTC (rev 18688) @@ -4,8 +4,7 @@ endpoint(ncacn_np:[\\pipe\\rpcecho], ncacn_ip_tcp:, ncalrpc:), pointer_default(unique), version(1.0), - helpstring(Simple echo pipe), - keepref + helpstring(Simple echo pipe) ] interface rpcecho { Modified: branches/SAMBA_3_0/source/librpc/idl/eventlog.idl === --- branches/SAMBA_3_0/source/librpc/idl/eventlog.idl 2006-09-19 21:57:59 UTC (rev 18687) +++ branches/SAMBA_3_0/source/librpc/idl/eventlog.idl 2006-09-19 22:14:34 UTC (rev 18688) @@ -7,8 +7,7 @@ version(0.0), depends(lsa,security), pointer_default(unique), - helpstring(Event Logger), - keepref + helpstring(Event Logger) ] interface eventlog { typedef bitmap { Modified: branches/SAMBA_3_0/source/librpc/idl/initshutdown.idl === --- branches/SAMBA_3_0/source/librpc/idl/initshutdown.idl 2006-09-19 21:57:59 UTC (rev 18687) +++ branches/SAMBA_3_0/source/librpc/idl/initshutdown.idl 2006-09-19 22:14:34 UTC (rev 18688) @@ -9,8 +9,7 @@ version(1.0), endpoint(ncacn_np:[\\pipe\\InitShutdown]), pointer_default(unique), - helpstring(Init shutdown service), - keepref + helpstring(Init shutdown service) ] interface initshutdown { typedef struct { Modified: branches/SAMBA_3_0/source/librpc/idl/lsa.idl === --- branches/SAMBA_3_0/source/librpc/idl/lsa.idl2006-09-19 21:57:59 UTC (rev 18687) +++ branches/SAMBA_3_0/source/librpc/idl/lsa.idl2006-09-19 22:14:34 UTC (rev 18688) @@ -9,8 +9,7 @@ endpoint(ncacn_np:[\\pipe\\lsarpc],ncacn_np:[\\pipe\\netlogon],ncacn_np:[\\pipe\\lsass], ncacn_ip_tcp:, ncalrpc:), pointer_default(unique), helpstring(Local Security Authority), - depends(security), - keepref + depends(security) ] interface lsarpc { declare bitmap security_secinfo; Modified: branches/SAMBA_3_0/source/librpc/idl/netlogon.idl === --- branches/SAMBA_3_0/source/librpc/idl/netlogon.idl 2006-09-19 21:57:59 UTC (rev 18687) +++ branches/SAMBA_3_0/source/librpc/idl/netlogon.idl 2006-09-19 22:14:34 UTC (rev 18688) @@ -12,8 +12,7 @@ endpoint(ncacn_np:[\\pipe\\netlogon],ncacn_ip_tcp:,ncalrpc:), pointer_default(unique), pointer_default_top(unique), - depends(lsa,samr,security), - keepref + depends(lsa,samr,security) ] interface netlogon Modified: branches/SAMBA_3_0/source/librpc/idl/samr.idl === --- branches/SAMBA_3_0/source/librpc/idl/samr.idl 2006-09-19 21:57:59 UTC (rev 18687) +++ branches/SAMBA_3_0/source/librpc/idl/samr.idl 2006-09-19 22:14:34 UTC (rev 18688) @@ -13,8 +13,7 @@ endpoint(ncacn_np:[\\pipe\\samr],ncacn_ip_tcp:, ncalrpc:), pointer_default(unique), pointer_default_top(unique), - depends(misc,lsa,security), - keepref + depends(misc,lsa,security) ] interface samr { declare bitmap security_secinfo; Modified: branches/SAMBA_3_0/source/librpc/idl/spoolss.idl
svn commit: samba r18689 - in branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3: .
Author: jelmer Date: 2006-09-19 22:18:16 + (Tue, 19 Sep 2006) New Revision: 18689 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18689 Log: Initialize r.out in the server side code, in case the handler function doesn't touch them. Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm Changeset: Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm === --- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm 2006-09-19 22:14:34 UTC (rev 18688) +++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm 2006-09-19 22:18:16 UTC (rev 18689) @@ -82,11 +82,15 @@ pidl ; my %env = (); + my $hasout = 0; foreach (@{$fn-{ELEMENTS}}) { + if (grep(/out/, @{$_-{DIRECTION}})) { $hasout = 1; } next unless (grep (/in/, @{$_-{DIRECTION}})); $env{$_-{NAME}} = r.in.$_-{NAME}; } + pidl ZERO_STRUCT(r.out); if ($hasout); + my $proto = _$fn-{NAME}(pipes_struct *p; my $ret = _$fn-{NAME}(p; foreach (@{$fn-{ELEMENTS}}) {
svn commit: samba r18690 - in branches/SAMBA_3_0/source/librpc/gen_ndr: .
Author: jelmer Date: 2006-09-19 22:22:57 + (Tue, 19 Sep 2006) New Revision: 18690 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18690 Log: Regenerate RPC files after pidl changes. Modified: branches/SAMBA_3_0/source/librpc/gen_ndr/dfs.h branches/SAMBA_3_0/source/librpc/gen_ndr/echo.h branches/SAMBA_3_0/source/librpc/gen_ndr/eventlog.h branches/SAMBA_3_0/source/librpc/gen_ndr/initshutdown.h branches/SAMBA_3_0/source/librpc/gen_ndr/lsa.h branches/SAMBA_3_0/source/librpc/gen_ndr/netlogon.h branches/SAMBA_3_0/source/librpc/gen_ndr/srv_dfs.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_echo.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_eventlog.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_lsa.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_netlogon.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_unixinfo.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_winreg.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_wkssvc.c branches/SAMBA_3_0/source/librpc/gen_ndr/unixinfo.h branches/SAMBA_3_0/source/librpc/gen_ndr/winreg.h branches/SAMBA_3_0/source/librpc/gen_ndr/wkssvc.h Changeset: Sorry, the patch is too large (5894 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18690
svn commit: samba r18691 - in branches/SAMBA_4_0/source/torture/libnet: .
Author: mimir Date: 2006-09-19 22:35:37 + (Tue, 19 Sep 2006) New Revision: 18691 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18691 Log: Forgot to add copyright info. rafal Modified: branches/SAMBA_4_0/source/torture/libnet/usertest.h Changeset: Modified: branches/SAMBA_4_0/source/torture/libnet/usertest.h === --- branches/SAMBA_4_0/source/torture/libnet/usertest.h 2006-09-19 22:22:57 UTC (rev 18690) +++ branches/SAMBA_4_0/source/torture/libnet/usertest.h 2006-09-19 22:35:37 UTC (rev 18691) @@ -1,3 +1,23 @@ +/* + Unix SMB/CIFS implementation. + + Copyright (C) Rafal Szczesniak 2006 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + 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. +*/ + #define TEST_USERNAME libnetusertest #define continue_if_field_set(field) \
svn commit: samba r18692 - in branches/SAMBA_3_0/source/librpc/gen_ndr: .
Author: jelmer Date: 2006-09-19 22:39:15 + (Tue, 19 Sep 2006) New Revision: 18692 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18692 Log: Dump debug data when DEBUGLEVEL = 10 Modified: branches/SAMBA_3_0/source/librpc/gen_ndr/cli_dfs.c branches/SAMBA_3_0/source/librpc/gen_ndr/cli_echo.c branches/SAMBA_3_0/source/librpc/gen_ndr/cli_eventlog.c branches/SAMBA_3_0/source/librpc/gen_ndr/cli_initshutdown.c branches/SAMBA_3_0/source/librpc/gen_ndr/cli_lsa.c branches/SAMBA_3_0/source/librpc/gen_ndr/cli_netlogon.c branches/SAMBA_3_0/source/librpc/gen_ndr/cli_unixinfo.c branches/SAMBA_3_0/source/librpc/gen_ndr/cli_winreg.c branches/SAMBA_3_0/source/librpc/gen_ndr/cli_wkssvc.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_dfs.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_echo.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_eventlog.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_initshutdown.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_lsa.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_netlogon.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_unixinfo.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_winreg.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_wkssvc.c Changeset: Sorry, the patch is too large (8655 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18692
svn commit: samba r18693 - in branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3: .
Author: jelmer Date: 2006-09-19 22:39:49 + (Tue, 19 Sep 2006) New Revision: 18693 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18693 Log: Print debug info when DEBUGLEVEL = 10 in the Samba3 code. Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm Changeset: Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm === --- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm 2006-09-19 22:39:15 UTC (rev 18692) +++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ClientNDR.pm 2006-09-19 22:39:49 UTC (rev 18693) @@ -52,7 +52,15 @@ } } + pidl ; + pidl if (DEBUGLEVEL = 10); + pidl \tNDR_PRINT_IN_DEBUG($fn-{NAME}, r);; + pidl ; pidl status = cli_do_rpc_ndr(cli, mem_ctx, PI_$uif, $ufn, r, (ndr_pull_flags_fn_t)ndr_pull_$fn-{NAME}, (ndr_push_flags_fn_t)ndr_push_$fn-{NAME});; + pidl ; + pidl if (DEBUGLEVEL = 10); + pidl \tNDR_PRINT_OUT_DEBUG($fn-{NAME}, r);; + pidl ; pidl if (NT_STATUS_IS_ERR(status)) {; pidl \treturn status;; pidl }; Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm === --- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm 2006-09-19 22:39:15 UTC (rev 18692) +++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm 2006-09-19 22:39:49 UTC (rev 18693) @@ -80,6 +80,9 @@ pidl \treturn False;; pidl }; pidl ; + pidl if (DEBUGLEVEL = 10); + pidl \tNDR_PRINT_IN_DEBUG($fn-{NAME}, r);; + pidl ; my %env = (); my $hasout = 0; @@ -119,6 +122,9 @@ pidl $ret;; pidl ; + pidl if (DEBUGLEVEL = 10); + pidl \tNDR_PRINT_OUT_DEBUG($fn-{NAME}, r);; + pidl ; pidl push = ndr_push_init_ctx(mem_ctx);; pidl if (push == NULL) {; pidl \ttalloc_free(mem_ctx);;
svn commit: samba r18694 - in branches/SAMBA_3_0/source: .
Author: jerry Date: 2006-09-19 22:47:01 + (Tue, 19 Sep 2006) New Revision: 18694 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18694 Log: prevent -O and -g from being set at the same time (by default) Modified: branches/SAMBA_3_0/source/configure.in Changeset: Modified: branches/SAMBA_3_0/source/configure.in === --- branches/SAMBA_3_0/source/configure.in 2006-09-19 22:39:49 UTC (rev 18693) +++ branches/SAMBA_3_0/source/configure.in 2006-09-19 22:47:01 UTC (rev 18694) @@ -306,6 +306,14 @@ AC_SUBST(CONFIG_LIBS) AC_SUBST(NSCD_LIBS) +## check for --enable-debug first before checking CFLAGS before +## so that we don't mix -O and -g +AC_ARG_ENABLE(debug, +[ --enable-debug Turn on compiler debugging information (default=no)], +[if eval test x$enable_debug = xyes; then + CFLAGS=${CFLAGS} -g +fi]) + # compile with optimization and without debugging by default, but # allow people to set their own preference. # do this here since AC_CACHE_CHECK apparently sets the CFLAGS to -g -O2 @@ -344,12 +352,6 @@ libc_cv_fpie=no fi -AC_ARG_ENABLE(debug, -[ --enable-debug Turn on compiler debugging information (default=no)], -[if eval test x$enable_debug = xyes; then - CFLAGS=${CFLAGS} -g -fi]) - m4_include(lib/socket_wrapper/config.m4) #
svn commit: samba r18695 - in branches/SAMBA_3_0/source/librpc/gen_ndr: .
Author: jelmer Date: 2006-09-19 22:47:30 + (Tue, 19 Sep 2006) New Revision: 18695 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18695 Log: Zero initialize ref ptrs as well. Modified: branches/SAMBA_3_0/source/librpc/gen_ndr/srv_dfs.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_echo.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_eventlog.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_lsa.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_netlogon.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_unixinfo.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_winreg.c branches/SAMBA_3_0/source/librpc/gen_ndr/srv_wkssvc.c Changeset: Sorry, the patch is too large (987 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18695
svn commit: samba r18696 - in branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3: .
Author: jelmer Date: 2006-09-19 22:48:08 + (Tue, 19 Sep 2006) New Revision: 18696 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18696 Log: Zero initialize ref ptrs. Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm Changeset: Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm === --- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm 2006-09-19 22:47:30 UTC (rev 18695) +++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba3/ServerNDR.pm 2006-09-19 22:48:08 UTC (rev 18696) @@ -38,9 +38,9 @@ if ($l-{TYPE} eq ARRAY) { my $size = ParseExpr($l-{SIZE_IS}, $env); - pidl $name = talloc_array_size($mem_ctx, sizeof(*$name), $size);; + pidl $name = talloc_zero_size($mem_ctx, sizeof(*$name) * $size);; } else { - pidl $name = talloc_size($mem_ctx, sizeof(*$name));; + pidl $name = talloc_zero_size($mem_ctx, sizeof(*$name));; } pidl if ($name == NULL) {;
svn commit: samba r18697 - in branches: SAMBA_3_0/examples/misc SAMBA_3_0_23/examples/misc
Author: gd Date: 2006-09-19 22:57:13 + (Tue, 19 Sep 2006) New Revision: 18697 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18697 Log: Make sure that adssearch.pl does not * chase referrals * use paged search control when using the LDAP change notify control for monitoring changes. Guenther Modified: branches/SAMBA_3_0/examples/misc/adssearch.pl branches/SAMBA_3_0_23/examples/misc/adssearch.pl Changeset: Modified: branches/SAMBA_3_0/examples/misc/adssearch.pl === --- branches/SAMBA_3_0/examples/misc/adssearch.pl 2006-09-19 22:48:08 UTC (rev 18696) +++ branches/SAMBA_3_0/examples/misc/adssearch.pl 2006-09-19 22:57:13 UTC (rev 18697) @@ -130,7 +130,7 @@ } if ($opt_notify) { - $opt_paging = 0; + $opt_paging = undef; } # get the query @@ -1562,7 +1562,7 @@ my ($res,$obj) = @_; - if ($res-code == LDAP_REFERRAL) { + if (!$opt_notify $res-code == LDAP_REFERRAL) { return; } @@ -1753,7 +1753,7 @@ scope = $scope, ) || die cannot search; - if ($async_search-code == LDAP_REFERRAL) { + if (!$opt_notify ($async_search-code == LDAP_REFERRAL)) { foreach my $ref ($async_search-referrals) { print \ngot Referral: [$ref]\n; $async_ldap_hd-unbind(); Modified: branches/SAMBA_3_0_23/examples/misc/adssearch.pl === --- branches/SAMBA_3_0_23/examples/misc/adssearch.pl2006-09-19 22:48:08 UTC (rev 18696) +++ branches/SAMBA_3_0_23/examples/misc/adssearch.pl2006-09-19 22:57:13 UTC (rev 18697) @@ -14,6 +14,7 @@ use Net::LDAP; use Net::LDAP::Control; +use Net::LDAP::Constant qw(LDAP_REFERRAL); use Convert::ASN1; use Time::Local; use POSIX qw(strftime); @@ -38,7 +39,9 @@ my $binddn = ; my $password = ; my $server = ; +my $rebind_url; + my $tdbdump= /usr/bin/tdbdump; my $testparm = /usr/bin/testparm; my $net= /usr/bin/net; @@ -48,7 +51,6 @@ my $klist = /usr/bin/klist; my $kinit = /usr/bin/kinit; my $ads_h = /home/gd/ads.h; -my $page_size = 1000; my $workgroup = ; my $machine= ; my $realm = ; @@ -62,14 +64,17 @@ $opt_display_extendeddn, $opt_display_metadata, $opt_display_raw, + $opt_domain_scope, $opt_dump_rootdse, $opt_dump_schema, $opt_dump_wknguid, + $opt_fastbind, $opt_help, $opt_host, $opt_machine, $opt_notify, - $opt_notify_nodiffs, + $opt_notify_nodiffs, + $opt_paging, $opt_password, $opt_port, $opt_realm, @@ -87,13 +92,16 @@ 'base|b=s' = \$opt_base, 'D|DN=s'= \$opt_binddn, 'debug=i' = \$opt_debug, - 'extendeddn|e=i'= \$opt_display_extendeddn, + 'domain_scope' = \$opt_domain_scope, + 'extendeddn|e:i'= \$opt_display_extendeddn, + 'fastbind' = \$opt_fastbind, 'help' = \$opt_help, 'host|h=s' = \$opt_host, 'machine|P' = \$opt_machine, 'metadata|m'= \$opt_display_metadata, 'nodiffs' = \$opt_notify_nodiffs, 'notify|n' = \$opt_notify, + 'paging:i' = \$opt_paging, 'password|w=s' = \$opt_password, 'port=i'= \$opt_port, 'rawdisplay'= \$opt_display_raw, @@ -111,20 +119,27 @@ ); -# activate controls -my $paging = 1 if !$opt_notify; - if ([EMAIL PROTECTED] !$opt_dump_schema !$opt_dump_rootdse !$opt_notify || $opt_help) { usage(); exit 1; } +if ($opt_fastbind !$opt_simpleauth) { + printf(LDAP fast bind can only be performed with simple binds\n); + exit 1; +} + +if ($opt_notify) { + $opt_paging = undef; +} + # get the query my $query = shift; my @attrs = @ARGV; # some global vars -my ($filter, $dse, $uri); +my $filter = ; +my ($dse, $uri); my ($attr, $value); my (@ctrls, @ctrls_s); my ($ctl_paged, $cookie); @@ -483,14 +498,17 @@ print \t--asq [attribute]\n\t\tAttribute to use for a attribute scoped query (LDAP_SERVER_ASQ_OID)\n; print \t--base|-b [base]\n\t\tUse base [base]\n; print \t--debug [level]\n\t\tUse debuglevel (for Net::LDAP)\n; + print \t--domain_scope\n\t\tLimit LDAP search to local domain (LDAP_SERVER_DOMAIN_SCOPE_OID)\n; print \t--DN|-D [binddn]\n\t\tUse binddn or principal\n; - print \t--extendeddn|-e\n\t\tDisplay extended dn (LDAP_SERVER_EXTENDED_DN_OID)\n; + print \t--extendeddn|-e [value]\n\t\tDisplay extended dn (LDAP_SERVER_EXTENDED_DN_OID)\n; + print \t--fastbind\n\t\tDo LDAP fast bind using LDAP_SERVER_FAST_BIND_OID
svn commit: samba r18698 - in branches/SAMBA_3_0/source: . lib
Author: metze Date: 2006-09-19 23:23:21 + (Tue, 19 Sep 2006) New Revision: 18698 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18698 Log: this stuff isn't needed anymore metze Removed: branches/SAMBA_3_0/source/lib/getsmbpass.c Modified: branches/SAMBA_3_0/source/Makefile.in branches/SAMBA_3_0/source/configure.in Changeset: Modified: branches/SAMBA_3_0/source/Makefile.in === --- branches/SAMBA_3_0/source/Makefile.in 2006-09-19 22:57:13 UTC (rev 18697) +++ branches/SAMBA_3_0/source/Makefile.in 2006-09-19 23:23:21 UTC (rev 18698) @@ -220,7 +220,7 @@ LIB_WITHOUT_PROTO_OBJ = @LIBREPLACE_OBJS@ @SOCKET_WRAPPER_OBJS@ LIB_WITH_PROTO_OBJ = $(VERSION_OBJ) lib/charcnv.o lib/debug.o lib/fault.o \ - lib/getsmbpass.o lib/interface.o lib/md4.o \ + lib/interface.o lib/md4.o \ lib/interfaces.o lib/pidfile.o \ lib/signal.o lib/system.o lib/sendfile.o lib/time.o \ lib/ufc.o lib/genrand.o lib/username.o \ Modified: branches/SAMBA_3_0/source/configure.in === --- branches/SAMBA_3_0/source/configure.in 2006-09-19 22:57:13 UTC (rev 18697) +++ branches/SAMBA_3_0/source/configure.in 2006-09-19 23:23:21 UTC (rev 18698) @@ -2666,40 +2666,6 @@ AC_DEFINE(HAVE_BROKEN_GETGROUPS,1,[Whether getgroups is broken]) fi -AC_CACHE_CHECK([whether getpass should be replaced],samba_cv_REPLACE_GETPASS,[ -SAVE_CPPFLAGS=$CPPFLAGS -CPPFLAGS=$CPPFLAGS ${SAMBA_CONFIGURE_CPPFLAGS} -AC_TRY_COMPILE([ -#define REPLACE_GETPASS 1 -#define NO_PROTO_H 1 -#define NO_CONFIG_H 1 -#define main dont_declare_main -#include ${srcdir-.}/lib/getsmbpass.c -#undef main -],[],samba_cv_REPLACE_GETPASS=yes,samba_cv_REPLACE_GETPASS=no) -CPPFLAGS=$SAVE_CPPFLAGS -]) -if test x$samba_cv_REPLACE_GETPASS = xyes; then - AC_DEFINE(REPLACE_GETPASS,1,[Whether getpass should be replaced]) -fi - -AC_CACHE_CHECK([for broken inet_ntoa],samba_cv_REPLACE_INET_NTOA,[ -AC_TRY_RUN([ -#include stdio.h -#include sys/types.h -#include netinet/in.h -#ifdef HAVE_ARPA_INET_H -#include arpa/inet.h -#endif -main() { struct in_addr ip; ip.s_addr = 0x12345678; -if (strcmp(inet_ntoa(ip),18.52.86.120) -strcmp(inet_ntoa(ip),120.86.52.18)) { exit(0); } -exit(1);}], - samba_cv_REPLACE_INET_NTOA=yes,samba_cv_REPLACE_INET_NTOA=no,samba_cv_REPLACE_INET_NTOA=cross)]) -if test x$samba_cv_REPLACE_INET_NTOA = xyes; then -AC_DEFINE(REPLACE_INET_NTOA,1,[Whether inet_ntoa should be replaced]) -fi - AC_CACHE_CHECK([for secure mkstemp],samba_cv_HAVE_SECURE_MKSTEMP,[ AC_TRY_RUN([#include stdlib.h #include sys/types.h Deleted: branches/SAMBA_3_0/source/lib/getsmbpass.c === --- branches/SAMBA_3_0/source/lib/getsmbpass.c 2006-09-19 22:57:13 UTC (rev 18697) +++ branches/SAMBA_3_0/source/lib/getsmbpass.c 2006-09-19 23:23:21 UTC (rev 18698) @@ -1,183 +0,0 @@ -/* Copyright (C) 1992-1998 Free Software Foundation, Inc. -This file is part of the GNU C Library. - -The GNU C Library is free software; you can redistribute it and/or -modify it under the terms of the GNU Library General Public License as -published by the Free Software Foundation; either version 2 of the -License, or (at your option) any later version. - -The GNU C Library 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 -Library General Public License for more details. - -You should have received a copy of the GNU Library General Public -License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ - -/* Modified to use with samba by Jeremy Allison, 8th July 1995. */ - -#include includes.h - -#ifdef REPLACE_GETPASS - -#ifdef SYSV_TERMIO - -/* SYSTEM V TERMIO HANDLING */ - -static struct termio t; - -#define ECHO_IS_ON(t) ((t).c_lflag ECHO) -#define TURN_ECHO_OFF(t) ((t).c_lflag = ~ECHO) -#define TURN_ECHO_ON(t) ((t).c_lflag |= ECHO) - -#ifndef TCSAFLUSH -#define TCSAFLUSH 1 -#endif - -#ifndef TCSANOW -#define TCSANOW 0 -#endif - -static int tcgetattr(int fd, struct termio *t) -{ - return ioctl(fd, TCGETA, t); -} - -static int tcsetattr(int fd, int flags, struct termio *t) -{ - if(flags TCSAFLUSH) - ioctl(fd, TCFLSH, TCIOFLUSH); - return ioctl(fd, TCSETS, t); -} - -#elif !defined(TCSAFLUSH) - -/* BSD TERMIO HANDLING */ - -static struct sgttyb t; - -#define ECHO_IS_ON(t) ((t).sg_flags ECHO) -#define TURN_ECHO_OFF(t) ((t).sg_flags = ~ECHO) -#define TURN_ECHO_ON(t) ((t).sg_flags |= ECHO) - -#define TCSAFLUSH 1 -#define TCSANOW 0 - -static int tcgetattr(int fd, struct sgttyb *t) -{ - return ioctl(fd, TIOCGETP, (char *)t); -} - -static int
svn commit: samba r18699 - in branches/SAMBA_3_0/source: .
Author: metze Date: 2006-09-19 23:27:04 + (Tue, 19 Sep 2006) New Revision: 18699 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18699 Log: bail out if the compiler doesn't know about C99 struct initializers as we currently have them in the samba3 tree. Lets see what the build-farm says to this. metze Modified: branches/SAMBA_3_0/source/configure.in Changeset: Modified: branches/SAMBA_3_0/source/configure.in === --- branches/SAMBA_3_0/source/configure.in 2006-09-19 23:23:21 UTC (rev 18698) +++ branches/SAMBA_3_0/source/configure.in 2006-09-19 23:27:04 UTC (rev 18699) @@ -536,7 +536,7 @@ dnl Figure out the flags to support named structure initializers -LIBREPLACE_C99_STRUCT_INIT([],[AC_MSG_WARN([c99 structure initializer are not supported])]) +LIBREPLACE_C99_STRUCT_INIT([],[AC_MSG_ERROR([c99 structure initializer are not supported])]) UNAME_S=`(uname -s) 2/dev/null` || UNAME_S=unknown AC_MSG_CHECKING(uname -s)
svn commit: samba r18700 - in branches/SAMBA_3_0/source: .
Author: metze Date: 2006-09-19 23:32:25 + (Tue, 19 Sep 2006) New Revision: 18700 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18700 Log: nicer order of the tests metze Modified: branches/SAMBA_3_0/source/configure.in Changeset: Modified: branches/SAMBA_3_0/source/configure.in === --- branches/SAMBA_3_0/source/configure.in 2006-09-19 23:27:04 UTC (rev 18699) +++ branches/SAMBA_3_0/source/configure.in 2006-09-19 23:32:25 UTC (rev 18700) @@ -5,11 +5,6 @@ AC_INIT(include/includes.h) AC_CONFIG_HEADER(include/config.h) -AC_LIBREPLACE_LOCATION_CHECKS - -AC_DISABLE_STATIC -AC_ENABLE_SHARED - SMB_VERSION_STRING=`cat $srcdir/include/version.h | grep 'SAMBA_VERSION_OFFICIAL_STRING' | cut -d '' -f2` echo SAMBA VERSION: ${SMB_VERSION_STRING} @@ -18,6 +13,11 @@ echo BUILD REVISION: ${SAMBA_VERSION_SVN_REVISION} fi +AC_LIBREPLACE_LOCATION_CHECKS + +AC_DISABLE_STATIC +AC_ENABLE_SHARED + # # Directory handling stuff to support both the # legacy SAMBA directories and FHS compliant
svn commit: samba r18701 - in branches/SAMBA_3_0/source: .
Author: metze Date: 2006-09-19 23:45:43 + (Tue, 19 Sep 2006) New Revision: 18701 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18701 Log: this tests are in libreplace metze Modified: branches/SAMBA_3_0/source/configure.in Changeset: Modified: branches/SAMBA_3_0/source/configure.in === --- branches/SAMBA_3_0/source/configure.in 2006-09-19 23:32:25 UTC (rev 18700) +++ branches/SAMBA_3_0/source/configure.in 2006-09-19 23:45:43 UTC (rev 18701) @@ -910,7 +910,7 @@ fi ;; esac -AC_CHECK_HEADERS(shadow.h netinet/tcp.h netinet/in_systm.h netinet/in_ip.h) +AC_CHECK_HEADERS(shadow.h) AC_CHECK_HEADERS(nss.h nss_common.h nsswitch.h ns_api.h sys/security.h security/pam_appl.h) AC_CHECK_HEADERS(stropts.h poll.h) AC_CHECK_HEADERS(syscall.h sys/syscall.h) @@ -920,24 +920,6 @@ AC_CHECK_HEADERS(sys/cdefs.h glob.h) -AC_CHECK_HEADERS(netinet/ip.h,,,[[ -#include sys/types.h -#if HAVE_SYS_SOCKET_H -#include sys/socket.h -#endif -#include netinet/in.h -#if HAVE_NETINET_IN_SYSTM_H -#include netinet/in_systm.h -#endif -]]) - -AC_CHECK_HEADERS(net/if.h,,,[[ -#include sys/types.h -#if HAVE_SYS_SOCKET_H -#include sys/socket.h -#endif -]]) - AC_CHECK_HEADERS(security/pam_modules.h,,,[[ #if HAVE_SECURITY_PAM_APPL_H #include security/pam_appl.h
Build status as of Wed Sep 20 00:00:02 2006
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2006-09-19 00:00:16.0 + +++ /home/build/master/cache/broken_results.txt 2006-09-20 00:00:18.0 + @@ -1,21 +1,21 @@ -Build status as of Tue Sep 19 00:00:02 2006 +Build status as of Wed Sep 20 00:00:02 2006 Build counts: Tree Total Broken Panic SOC 0 0 0 build_farm 0 0 0 -ccache 42 6 0 +ccache 42 7 0 distcc 42 7 0 -ldb 40 7 0 -libreplace 39 3 0 +ldb 40 8 0 +libreplace 39 2 0 lorikeet-heimdal 0 0 0 -ppp 17 0 0 -rsync40 5 0 +ppp 18 1 0 +rsync40 4 0 samba0 0 0 samba-docs 0 0 0 -samba4 41 12 1 -samba_3_040 19 1 +samba4 41 31 1 +samba_3_041 18 0 smb-build29 4 0 -talloc 43 3 0 -tdb 41 6 0 +talloc 44 3 0 +tdb 41 5 0
svn commit: samba r18702 - in branches/SAMBA_3_0/source/rpcclient: .
Author: jmcd Date: 2006-09-20 00:02:51 + (Wed, 20 Sep 2006) New Revision: 18702 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18702 Log: re-enable non-decimal specification of rid Modified: branches/SAMBA_3_0/source/rpcclient/cmd_samr.c Changeset: Modified: branches/SAMBA_3_0/source/rpcclient/cmd_samr.c === --- branches/SAMBA_3_0/source/rpcclient/cmd_samr.c 2006-09-19 23:45:43 UTC (rev 18701) +++ branches/SAMBA_3_0/source/rpcclient/cmd_samr.c 2006-09-20 00:02:51 UTC (rev 18702) @@ -342,14 +342,14 @@ uint32 access_mask = MAXIMUM_ALLOWED_ACCESS; SAM_USERINFO_CTR *user_ctr; fstring server; - uint32 user_rid; + uint32 user_rid = 0; if ((argc 2) || (argc 4)) { printf(Usage: %s rid [info level] [access mask] \n, argv[0]); return NT_STATUS_OK; } - user_rid = strtoul(argv[1], NULL, 10); + sscanf(argv[1], %i, user_rid); if (argc 2) sscanf(argv[2], %i, info_level);
svn commit: samba r18703 - in branches: SAMBA_3_0/source SAMBA_3_0/source/groupdb SAMBA_3_0/source/include SAMBA_3_0/source/lib SAMBA_3_0/source/nsswitch SAMBA_3_0/source/passdb SAMBA_3_0/source/utils
Author: gd Date: 2006-09-20 00:15:50 + (Wed, 20 Sep 2006) New Revision: 18703 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18703 Log: Fix the annoying effect that happens when nscd is running: We usually do not get the results from user/group script modifications immediately. A lot of users do add nscd restart/refresh commands into their scripts to workaround that while we could flush the nscd caches directly using libnscd. Guenther Modified: branches/SAMBA_3_0/source/Makefile.in branches/SAMBA_3_0/source/groupdb/mapping.c branches/SAMBA_3_0/source/include/includes.h branches/SAMBA_3_0/source/lib/util.c branches/SAMBA_3_0/source/nsswitch/winbindd.c branches/SAMBA_3_0/source/nsswitch/winbindd_dual.c branches/SAMBA_3_0/source/nsswitch/winbindd_util.c branches/SAMBA_3_0/source/passdb/pdb_interface.c branches/SAMBA_3_0/source/passdb/pdb_ldap.c branches/SAMBA_3_0/source/passdb/pdb_smbpasswd.c branches/SAMBA_3_0/source/passdb/pdb_tdb.c branches/SAMBA_3_0/source/utils/net_rpc_samsync.c branches/SAMBA_3_0_23/source/Makefile.in branches/SAMBA_3_0_23/source/groupdb/mapping.c branches/SAMBA_3_0_23/source/include/includes.h branches/SAMBA_3_0_23/source/lib/util.c branches/SAMBA_3_0_23/source/nsswitch/winbindd.c branches/SAMBA_3_0_23/source/nsswitch/winbindd_dual.c branches/SAMBA_3_0_23/source/nsswitch/winbindd_util.c branches/SAMBA_3_0_23/source/passdb/pdb_interface.c branches/SAMBA_3_0_23/source/passdb/pdb_ldap.c branches/SAMBA_3_0_23/source/passdb/pdb_smbpasswd.c branches/SAMBA_3_0_23/source/passdb/pdb_tdb.c branches/SAMBA_3_0_23/source/utils/net_rpc_samsync.c Changeset: Sorry, the patch is too large (553 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18703
svn commit: samba r18704 - in branches/SAMBA_4_0/source/lib/socket: .
Author: metze Date: 2006-09-20 00:23:26 + (Wed, 20 Sep 2006) New Revision: 18704 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18704 Log: readd BOOL define to fix the build but I think this is the wrong fix... metze Modified: branches/SAMBA_4_0/source/lib/socket/netif.c Changeset: Modified: branches/SAMBA_4_0/source/lib/socket/netif.c === --- branches/SAMBA_4_0/source/lib/socket/netif.c2006-09-20 00:15:50 UTC (rev 18703) +++ branches/SAMBA_4_0/source/lib/socket/netif.c2006-09-20 00:23:26 UTC (rev 18704) @@ -80,6 +80,7 @@ #include net/if.h #endif +#define BOOL int #include netif.h #if HAVE_IFACE_IFCONF
svn commit: samba r18705 - in branches/SAMBA_3_0/source/lib: .
Author: metze Date: 2006-09-20 00:56:51 + (Wed, 20 Sep 2006) New Revision: 18705 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18705 Log: not all compilers like this metze Modified: branches/SAMBA_3_0/source/lib/util.c Changeset: Modified: branches/SAMBA_3_0/source/lib/util.c === --- branches/SAMBA_3_0/source/lib/util.c2006-09-20 00:23:26 UTC (rev 18704) +++ branches/SAMBA_3_0/source/lib/util.c2006-09-20 00:56:51 UTC (rev 18705) @@ -3031,10 +3031,10 @@ void smb_nscd_flush_user_cache(void) { - return smb_nscd_flush_cache(passwd); + smb_nscd_flush_cache(passwd); } void smb_nscd_flush_group_cache(void) { - return smb_nscd_flush_cache(group); + smb_nscd_flush_cache(group); }
svn commit: samba r18706 - in branches/SAMBA_4_0/source/gtk/tools: .
Author: metze Date: 2006-09-20 01:56:57 + (Wed, 20 Sep 2006) New Revision: 18706 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18706 Log: fix whitespaces metze Modified: branches/SAMBA_4_0/source/gtk/tools/gwcrontab.c Changeset: Modified: branches/SAMBA_4_0/source/gtk/tools/gwcrontab.c === --- branches/SAMBA_4_0/source/gtk/tools/gwcrontab.c 2006-09-20 00:56:51 UTC (rev 18705) +++ branches/SAMBA_4_0/source/gtk/tools/gwcrontab.c 2006-09-20 01:56:57 UTC (rev 18706) @@ -44,15 +44,15 @@ int i; uint32_t resume_handle = 0; -gtk_list_store_clear(store_jobs); + gtk_list_store_clear(store_jobs); ctr.entries_read = 0; ctr.first_entry = NULL; r.in.servername = dcerpc_server_name(at_pipe); r.in.ctr = r.out.ctr = ctr; -r.in.preferred_max_len = 0x; -r.in.resume_handle = r.out.resume_handle = resume_handle; - + r.in.preferred_max_len = 0x; + r.in.resume_handle = r.out.resume_handle = resume_handle; + status = dcerpc_atsvc_JobEnum(at_pipe, mem_ctx, r); if(!NT_STATUS_IS_OK(status)) { gtk_show_ntstatus(mainwin, Error while enumerating first job, status);
svn commit: samba r18708 - in branches/SAMBA_4_0/source/lib/socket: .
Author: metze Date: 2006-09-20 02:09:14 + (Wed, 20 Sep 2006) New Revision: 18708 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18708 Log: much nicer fix metze Modified: branches/SAMBA_4_0/source/lib/socket/netif.c Changeset: Modified: branches/SAMBA_4_0/source/lib/socket/netif.c === --- branches/SAMBA_4_0/source/lib/socket/netif.c2006-09-20 02:09:13 UTC (rev 18707) +++ branches/SAMBA_4_0/source/lib/socket/netif.c2006-09-20 02:09:14 UTC (rev 18708) @@ -31,7 +31,7 @@ */ #ifndef AUTOCONF_TEST -#include config.h +#include includes.h #endif #include unistd.h @@ -80,7 +80,6 @@ #include net/if.h #endif -#define BOOL int #include netif.h #if HAVE_IFACE_IFCONF
svn commit: samba r18707 - in branches: SAMBA_3_0/source SAMBA_3_0/source/lib SAMBA_3_0_23/source SAMBA_3_0_23/source/lib
Author: gd Date: 2006-09-20 02:09:13 + (Wed, 20 Sep 2006) New Revision: 18707 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=18707 Log: Fix the build when you have libnscd installed (which apparently no host on the buildfarm has). Guenther Added: branches/SAMBA_3_0/source/lib/util_nscd.c branches/SAMBA_3_0_23/source/lib/util_nscd.c Modified: branches/SAMBA_3_0/source/Makefile.in branches/SAMBA_3_0/source/configure.in branches/SAMBA_3_0/source/lib/util.c branches/SAMBA_3_0_23/source/Makefile.in branches/SAMBA_3_0_23/source/configure.in branches/SAMBA_3_0_23/source/lib/util.c Changeset: Modified: branches/SAMBA_3_0/source/Makefile.in === --- branches/SAMBA_3_0/source/Makefile.in 2006-09-20 01:56:57 UTC (rev 18706) +++ branches/SAMBA_3_0/source/Makefile.in 2006-09-20 02:09:13 UTC (rev 18707) @@ -373,7 +373,7 @@ passdb/util_wellknown.o passdb/util_builtin.o passdb/pdb_compat.o \ passdb/util_unixsids.o passdb/lookup_sid.o \ passdb/login_cache.o @PDB_STATIC@ \ - lib/account_pol.o lib/privileges.o + lib/account_pol.o lib/privileges.o lib/util_nscd.o DEVEL_HELP_WEIRD_OBJ = modules/weird.o CP850_OBJ = modules/CP850.o @@ -965,7 +965,7 @@ @echo Linking $@ @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(SMBD_OBJ) $(LDFLAGS) $(LDAP_LIBS) \ $(KRB5LIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) \ - $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) @POPTLIBS@ @SMBD_LIBS@ $(NSCD_LIBS) + $(ACL_LIBS) $(PASSDB_LIBS) $(LIBS) @POPTLIBS@ @SMBD_LIBS@ bin/[EMAIL PROTECTED]@: $(NMBD_OBJ) @BUILD_POPT@ bin/.dummy @echo Linking $@ @@ -1052,7 +1052,7 @@ bin/[EMAIL PROTECTED]@: $(SMBGET_OBJ) @BUILD_POPT@ bin/.dummy @echo Linking $@ - @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) + @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(SMBGET_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) bin/[EMAIL PROTECTED]@: $(SAMTEST_OBJ) @BUILD_POPT@ bin/.dummy @echo Linking $@ @@ -1081,11 +1081,13 @@ bin/[EMAIL PROTECTED]@: $(SMBCACLS_OBJ) @BUILD_POPT@ bin/.dummy @echo Linking $@ - @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) + @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(SMBCACLS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ \ + $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) bin/[EMAIL PROTECTED]@: $(SMBCQUOTAS_OBJ) @BUILD_POPT@ bin/.dummy @echo Linking $@ - @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) + @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(SMBCQUOTAS_OBJ) $(DYNEXP) $(LDFLAGS) $(LIBS) @POPTLIBS@ \ + $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) bin/[EMAIL PROTECTED]@: $(EVTLOGADM_OBJ) @BUILD_POPT@ bin/.dummy @echo Linking $@ @@ -1109,7 +,7 @@ bin/[EMAIL PROTECTED]@: $(VFSTEST_OBJ) @BUILD_POPT@ bin/.dummy @echo Linking $@ - @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(ACL_LIBS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) @SMBD_LIBS@ + @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(VFSTEST_OBJ) $(LDFLAGS) $(TERMLDFLAGS) $(TERMLIBS) $(DYNEXP) $(PRINT_LIBS) $(AUTH_LIBS) $(ACL_LIBS) $(LIBS) @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) @SMBD_LIBS@ $(NSCD_LIBS) bin/[EMAIL PROTECTED]@: $(SMBICONV_OBJ) @BUILD_POPT@ bin/.dummy @echo Linking $@ @@ -1266,7 +1268,7 @@ bin/[EMAIL PROTECTED]@: $(WINBINDD_OBJ) @BUILD_POPT@ bin/.dummy @echo Linking $@ @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(WINBINDD_OBJ) $(LDFLAGS) $(DYNEXP) $(LIBS) \ - @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) $(NSCD_LIBS) + @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(PASSDB_LIBS) # Please don't add .o files to libnss_winbind, libnss_wins, or the pam_winbind # libraries. Add to the appropriate PICOBJ variable instead. @@ -1487,7 +1489,7 @@ @echo Linking $@ @$(CC) $(FLAGS) @PIE_LDFLAGS@ -o $@ $(LDFLAGS) $(DYNEXP) $(NTLM_AUTH_OBJ) \ $(PARAM_OBJ) $(LIB_NONSMBD_OBJ) $(LIBS) \ - @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) + @POPTLIBS@ $(KRB5LIBS) $(LDAP_LIBS) $(NSCD_LIBS) bin/[EMAIL PROTECTED]@: $(PAM_SMBPASS_PICOOBJ) @echo Linking shared library $@ Modified: branches/SAMBA_3_0/source/configure.in === --- branches/SAMBA_3_0/source/configure.in 2006-09-20 01:56:57 UTC (rev 18706) +++ branches/SAMBA_3_0/source/configure.in 2006-09-20 02:09:13 UTC (rev 18707) @@ -3738,6 +3738,7 @@ fi AC_CHECK_LIB_EXT(nscd, NSCD_LIBS,
Re: svn commit: samba r18614 - in branches/SAMBA_4_0/source/lib/util: .
Mimir, a new function converting NTTIME to struct timeval +tv-tv_usec = t - tv-tv_sec*100; +} Are you sure thats correct? Maybe it's equivalent somehow, but I suspect to get the tv_usec value will involve a modulo operation, something like: tv-tv_usec = ((t+5) % 1000) / 10; Maybe we need a LOCAL-TIME unit test for these time functions? Converting from timeval to NTTIME then back again for some random times might be a useful test (with appropriate 0.5usec tolerence levels). Cheers, Tridge