[Samba] Vista home becomes workgroup master
Hi, what's going wring ist an vista-home PC becomes workgroup-master while on samba os level is set on 255 and preferred-, local- and domain-master are all set to yes Elmar -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] FDS + samba + add machine account script
On Feb 4, 2008 1:11 PM, Sadique Puthen [EMAIL PROTECTED] wrote: satish patel wrote: Dear all I have setup FDS for samba backend but i dont know how to add machine account in FDS it is possible through script or manaualy... Better you add it through scripts. The GUI interface for FDS is not so sophisticated to add samba machines through simple clicks, you should have to have a lot of clicks. I use a simple script as below. This is used against an openldap server, but there is no reason for this not to work with FDS. Define a base id at /etc/samba/machineid before you start the script. [EMAIL PROTECTED] ~]# cat addmachine.sh #!/bin/bash uid=`cat /etc/samba/machineid` nextuid=$(($uid + 1)) echo $nextuid /etc/samba/machineid read -p Please enter the machine name (If your windows system name is dhcp6-120.pnq.redhat.com, please only enter dhcp6-120: choice /usr/bin/ldapmodify -a -x -H ldap://10.65.7.98 -D cn=admin,dc=samba,dc=redhat,dc=com -w redsmb EOF dn: uid=$choice\$,ou=Computers,dc=samba,dc=redhat,dc=com uid: $choice\$ cn: $choice Account objectClass: account objectClass: posixAccount objectClass: top userPassword: {crypt}x loginShell: /sbin/nologin uidNumber: $uid gidNumber: 2515 homeDirectory: /dev/null EOF Other choice is to use smbldap-tools scripts as you may wish. Hi Is The above script is used to first add the computer the FDS and then go the system and add to the samba domain. Not sure if the above script can be mentioned in smb.conf add machine script = /tmp/myscripts/addmachine.sh But if smbldap-tools are used then machine can be added in fly. But there is alternative to smbldap-tools also , The recent http://fdstools.wiki.sourceforge.net/ which can be used to do the following http://fdstools.wiki.sourceforge.net/doc_fds_commands --Sadique $ cat ~/satish/url.txt http://www.linuxbug.org _ - Forgot the famous last words? Access your message archive online. Click here. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- Regards Tom :) /*It's too complicated, Lets make it simple*/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] FDS + samba + add machine account script
tom farrel wrote: On Feb 4, 2008 1:11 PM, Sadique Puthen [EMAIL PROTECTED] wrote: satish patel wrote: Dear all I have setup FDS for samba backend but i dont know how to add machine account in FDS it is possible through script or manaualy... Better you add it through scripts. The GUI interface for FDS is not so sophisticated to add samba machines through simple clicks, you should have to have a lot of clicks. I use a simple script as below. This is used against an openldap server, but there is no reason for this not to work with FDS. Define a base id at /etc/samba/machineid before you start the script. [EMAIL PROTECTED] ~]# cat addmachine.sh #!/bin/bash uid=`cat /etc/samba/machineid` nextuid=$(($uid + 1)) echo $nextuid /etc/samba/machineid read -p Please enter the machine name (If your windows system name is dhcp6-120.pnq.redhat.com, please only enter dhcp6-120: choice /usr/bin/ldapmodify -a -x -H ldap://10.65.7.98 -D cn=admin,dc=samba,dc=redhat,dc=com -w redsmb EOF dn: uid=$choice\$,ou=Computers,dc=samba,dc=redhat,dc=com uid: $choice\$ cn: $choice Account objectClass: account objectClass: posixAccount objectClass: top userPassword: {crypt}x loginShell: /sbin/nologin uidNumber: $uid gidNumber: 2515 homeDirectory: /dev/null EOF Other choice is to use smbldap-tools scripts as you may wish. Hi Is The above script is used to first add the computer the FDS and then go the system and add to the samba domain. Not sure if the above script can be mentioned in smb.conf No, You have to slightly modify the script if you want it to be added to smb.conf. You need to remove the promtping and pass the $1 as the machine name. --Sadique add machine script = /tmp/myscripts/addmachine.sh But if smbldap-tools are used then machine can be added in fly. But there is alternative to smbldap-tools also , The recent http://fdstools.wiki.sourceforge.net/ which can be used to do the following http://fdstools.wiki.sourceforge.net/doc_fds_commands --Sadique $ cat ~/satish/url.txt http://www.linuxbug.org _ - Forgot the famous last words? Access your message archive online. Click here. -- 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] SAMBA authentication ?
smb.conf attached. security is set to SHARE. Otherwise I will not be able to have /pub which is accessable for everyone. Thanks, Czezz Wiadomość Oryginalna Od: Sadique Puthen [EMAIL PROTECTED] Do: czezz [EMAIL PROTECTED] Kopia do: John Drescher [EMAIL PROTECTED], samba@lists.samba.org Data: 4 lutego 2008 8:37 Temat: Re: [Samba] SAMBA authentication ? czezz wrote: Wiadomość Oryginalna Od: John Drescher [EMAIL PROTECTED] Do: czezz [EMAIL PROTECTED] Kopia do: samba@lists.samba.org Data: 3 lutego 2008 19:59 Temat: Re: [Samba] SAMBA authentication ? On Feb 3, 2008 11:38 AM, czezz [EMAIL PROTECTED] wrote: I have set up samba and configured resources /pub for pcguest account and it works perfect (read/write access for for everyone. No authentication is needed) Now, I want to set new resource called /pub2 where access is limited only for user userx. What I did: I created userx in /etc/passwd and his home dir in /pub2 I created userx using smbpasswd Both users has this same passwd. In /etc/samba/smb.conf added: [pub2] path = /pub2 volume = userx comment = Programy userx public = yes writable = yes share modes = yes read only = no create mode = 0775 directory mode = 0775 oplocks = True level2 oplocks = True After SAMBA restart: sitting on WindowsXP box I am able to see /pub and /pub2 resources. I can even browse /pub2 but I am unable to create any file or dir. This is expected behavior... but why the heck I cant have way to log on to user userx account ? Did you check the unix permissions of the folder you are sharing? Does userx have rw permissions? John Ammm... John, whats the point of unix permissions? I can browse content of /pub2 from any workstation on LAN. The problem is that when I click on PUB2 resources I should get window to put login and password - why I dont have it ? Are you using security=share or user? Please post your smb.conf without comments. --Sadique here is ls [EMAIL PROTECTED]:~# ls -l /home/ drwxr-xr-x 3 pcguest pcguest 4096 2008-01-30 21:30 pub/ drwxr-xr-x 4 userx users4096 2008-02-02 18:33 pub2/ What is important !!! Windows Workstations from witch I try to login hasnt account userx. The Windows enviroment is only workgroup. And each station has its own login. Each time someone want to access /pub2 then window asking for login and passwd should apear. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] MS Terminal Services Manager does not display any Terminalservers
Hello List, we have migrated some Windows Terminalservers to our Samba (3.0.26a) Domain. The Terminalserver Admin uses the Terminal Services Manager to administrate his servers. But after the migration TS Manager does not show any servers in its view of our domain. We can rightclick on the domain Symbol and say Connect to Computer and this server is shown under the domain. I did this for every Server I know and all were show, but after restarting TSManager the list is empty again(save server connections is activated under options). How can i get TerminalServices Manager to show all Terminal Servers from the start? Thaks Benny -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba AD support on Solaris and AIX
Wei Hu wrote: I just found out that the binary Samba Solaris packages on samba.org were not built with AD support. Do you know any reason why? Do you know where I can find binary Samba packages supporting AD on Solaris? As of Solaris 10 Update 4 (also known as 8/07), the version of Samba that Sun ships with Solaris in /usr/sfw has ADS support. The version that blastwave.org has is also compiled with ADS support; however, that version has the older IDMap subsystem that makes some types of configurations more complicated. Also although not mentioned, I suspect the Samba package for AIX on samba.org was not built with AD support either. Anybody can confirm this? The same question as where I can find AD supported Samba binary for AIX. http://us1.samba.org/samba/ftp/Binary_Packages/AIX/README explicitly mentions that it is compiled with ADS support. I am looking for binary Sambas which are available to public to download. I am interesting in setting up Samba on Solaris and AIX to work with Microsoft Active Directory. Building from source is not an option for me. Compiling Samba is not difficult, and then you can get the latest version of Samba and all the library dependencies; plus you get it compiled with the options you want. Neal -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] root preexec problem
Hi, I'm doing an upgrade to the latest samba 3.0.28, and something's bugging me: on the old server I had this working OK: root preexec = /usr/local/bin/ntlogon.py --user=%U --os=%m --dir=/home/samba/netlogon/ /usr/local/bin/pdc-log.sh %U %m %a %d On 3.0.28, I can only get the first script to run, everything after is ignored. I have tried to put just the second script in the parameter, and it works. I have checked all the changelogs since my current version, and nothing seems to be changed for this parameter - what I'm I doing wrong? Thanx, Robert Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] WinXP/x64 - MFC CFile objects leak parent directory handles
On Mon, Feb 04, 2008 at 07:07:36PM +0100, Dragan Krnic wrote: Does anyone know how to avoid this problem? Should I provide some more diagnostics? Your smb.conf, debug level 10 logs and sniffs of all combinations please! Volker pgpNYlN5QrcXy.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] Linux (specially Fedora 8), issues with ldap and samba services starting up at boot time
this is what mine looks like: passdb backend = ldapsam:ldap://gomer.mdah.state.ms.us ldap suffix = dc=gomer,dc=mdah,dc=state,dc=ms,dc=us ldap machine suffix = ou=People ldap user suffix = ou=People ldap group suffix = ou=Group ldap idmap suffix = ou=Idmap ldap admin dn = cn=Manager,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us so i think your ldap suffix = line is wrong. Andrew Richey wrote: Hey there, thanks for the response! Here is that same section out of my smb.conf. passdb backend = ldapsam:ldap://example.com:389 ldap admin dn = cn=admin,dc=example,dc=com ldap suffix = ou=samba,dc=example,dc=com ldap user suffix = ou=users ldap machine suffix = ou=computers ldap group suffix = ou=groups The main difference between mine, and your working config, is that I specify port 389 in my passdb backend paramater. Also, my admin dn isn't within the same part of the tree that the samba stuff is in. I have the samba users/machines/groups within ou=samba. Do you think this could cause an issue? BTW, I'm using OpenLDAP. satish patel wrote: i have face time kind of problem but i got solution in smb.conf This is good and working fine passdb backend = ldapsam:ldap://example.com ldap admin dn = cn=Directory Manager ldap suffix = dc=example,dc=com ldap user suffix = ou=People ldap machine suffix = ou=Computers ldap group suffix = ou=Groups This is wrong not working and got same error ldap retry.. passdb backend = ldapsam:ldap://example.com ldap admin dn = cn=Directory Manager ldap suffix = dc=tulipconnect,dc=com ldap user suffix = ou=People,dc=example,dc=com ldap machine suffix = ou=Computers,dc=example,dc=com ldap group suffix = ou=Groups,dc=example,dc=com I am runung is configuration FDS server */Andrew Richey [EMAIL PROTECTED]/* wrote: Hey guys, For some reason, when I enable smb and nmb to start at boot time... I get error messages in my log.smbd. [2008/02/01 18:47:00, 1] lib/smbldap.c:another_ldap_try(1153) Connection to LDAP server failed for the 1 try! [2008/02/01 18:47:04, 1] lib/smbldap.c:another_ldap_try(1153) Connection to LDAP server failed for the 2 try! From this you'd think that either I hadn't stored the right password (via smbpasswd -w), or the LDAP server is somehow unreachable. But that isn't the case. And when I start both services manually, after boot, everything works great. Was curious if anyone else has run into this problem. Granted, I am a lot more familiar with BSD variants than I am Linux... so I may be missing something obvious. -Andrew -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba $ cat ~/satish/url.txt http://www.linuxbug.org _ Download prohibited? No problem. CHAT http://in.rd.yahoo.com/tagline_webmessenger_1/*http://in.messenger.yahoo.com/webmessengerpromo.php from any browser, without download. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] FDS + samba + add machine account script
smbpasswd -a -m should add it to the ldap. but you can also use smbldap-tools satish patel wrote: Dear all I have setup FDS for samba backend but i dont know how to add machine account in FDS it is possible through script or manaualy... $ cat ~/satish/url.txt http://www.linuxbug.org _ - Forgot the famous last words? Access your message archive online. Click here. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba AD support on Solaris and AIX
Original message Date: Sun, 03 Feb 2008 13:25:44 -0500 From: Ryan Novosielski [EMAIL PROTECTED] Subject: Re: [Samba] Samba AD support on Solaris and AIX To: Wei Hu [EMAIL PROTECTED] Cc: samba@lists.samba.org samba@lists.samba.org -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Take a look at the blastwave.org packages. They're likely newer anyway. AIX? No idea. They are on the Samba site in the Binaries section. They are also available at: http://pware.hvcc.edu/ Cheers, Bill Wei Hu wrote: Hello, I just found out that the binary Samba Solaris packages on samba.org were not built with AD support. Do you know any reason why? Do you know where I can find binary Samba packages supporting AD on Solaris? Also although not mentioned, I suspect the Samba package for AIX on samba.org was not built with AD support either. Anybody can confirm this? The same question as where I can find AD supported Samba binary for AIX. I am looking for binary Sambas which are available to public to download. I am interesting in setting up Samba on Solaris and AIX to work with Microsoft Active Directory. Building from source is not an option for me. Thanks very much, Wei - -- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer II |$| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHpgcomb+gadEcsb4RAqEuAJwJjdUTuP9vbdWhAsuG2O58s/KavACgxFiw xD/7Qf90d6CdCv6bWDpe+sE= =fEYf -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] SAMBA authentication ?
czezz wrote: smb.conf attached. security is set to SHARE. Otherwise I will not be able to have /pub which is accessable for everyone. From man smb.conf public This parameter is a synonym for guest ok. guest ok (S) If this parameter is yes for a service, then no password is required to connect to the service. Privileges will be those of the guest account. This paramater nullifies the benifits of setting restrict anonymous = 2 See the section below on security for more information about this option. Default: guest ok = no So as long as you set public = Yes for share /pub2, you wouldn't be prompted for a username and password. The other option is to use security = user and set map to guest parameter for /pub share. --Sadique Thanks, Czezz Wiadomość Oryginalna Od: Sadique Puthen [EMAIL PROTECTED] Do: czezz [EMAIL PROTECTED] Kopia do: John Drescher [EMAIL PROTECTED], samba@lists.samba.org Data: 4 lutego 2008 8:37 Temat: Re: [Samba] SAMBA authentication ? czezz wrote: Wiadomość Oryginalna Od: John Drescher [EMAIL PROTECTED] Do: czezz [EMAIL PROTECTED] Kopia do: samba@lists.samba.org Data: 3 lutego 2008 19:59 Temat: Re: [Samba] SAMBA authentication ? On Feb 3, 2008 11:38 AM, czezz [EMAIL PROTECTED] wrote: I have set up samba and configured resources /pub for pcguest account and it works perfect (read/write access for for everyone. No authentication is needed) Now, I want to set new resource called /pub2 where access is limited only for user userx. What I did: I created userx in /etc/passwd and his home dir in /pub2 I created userx using smbpasswd Both users has this same passwd. In /etc/samba/smb.conf added: [pub2] path = /pub2 volume = userx comment = Programy userx public = yes writable = yes share modes = yes read only = no create mode = 0775 directory mode = 0775 oplocks = True level2 oplocks = True After SAMBA restart: sitting on WindowsXP box I am able to see /pub and /pub2 resources. I can even browse /pub2 but I am unable to create any file or dir. This is expected behavior... but why the heck I cant have way to log on to user userx account ? Did you check the unix permissions of the folder you are sharing? Does userx have rw permissions? John Ammm... John, whats the point of unix permissions? I can browse content of /pub2 from any workstation on LAN. The problem is that when I click on PUB2 resources I should get window to put login and password - why I dont have it ? Are you using security=share or user? Please post your smb.conf without comments. --Sadique here is ls [EMAIL PROTECTED]:~# ls -l /home/ drwxr-xr-x 3 pcguest pcguest 4096 2008-01-30 21:30 pub/ drwxr-xr-x 4 userx users4096 2008-02-02 18:33 pub2/ What is important !!! Windows Workstations from witch I try to login hasnt account userx. The Windows enviroment is only workgroup. And each station has its own login. Each time someone want to access /pub2 then window asking for login and passwd should apear. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] WinXP/x64 - MFC CFile objects leak parent directory handles
Samba 3.0.28-0.1.95-1624-SUSE-SL10.3 A strange problem (best read in a proportional font). It only happens on an x64 XP client when accessing a Samba share. The exact same program runs fine on the same x64 XP client when the share accessed is on a Windows server or when it is run on a 32-bit XP client, regardless of whether the share belongs to a Samba server or to a Windows server. I have traced the problem to a local instantiation of an object of MFC class CFile in the line 170 of the following code: 166 CString CWaitForChangedFile::GetFileContent() 167 { if (mstrFilePath.IsEmpty()) 168 return ; 169 _my_TRY 170 CFile file(mstrFilePath, CFile::modeRead | CFile::shareDenyNone); 171 int size = (int)file.GetLength(); 172 CString text; 173 file.Close(); 174 text.Format(%d, size); 175 return text; 176 _my_REPORT_EXCEPTION_ALL 177 return ERROR!; 178 } When the programm using this method is run on a Windows XP Professional x64 Edition and a file mstrFilePath is opened for read with an oplock of type DenyNone on a Samba share, as above in line 170, a new handle to the parent directory remains stuck until the program is stopped, which should actually be removed when the program exits the method. The handle looks something like this in the output of handle.exe -a -p thisProg.exe: 46C: File (RWD) \Device\LanmanRedirector\;X:00014c30\samba\T01\ On the Linux side (SuSE 10.3, kernel 2.6.22.13-0.3-default) I can trace this behaviour to the fact that the transactions in the lines 39 through 60 in the following formatted audit log don't appear when the programm is run on an x64 XP, which DO get executed when the program is run on a 32-bit XP (the lines following the getxattr of user.DOSATTRIB after setting the kernel_flock on the already opened file). 1 stat T01/T01.ini 2 getxattr T01/T01.ini:user.DOSATTRIB 3 THE PREVIOUS 2 LINES REPEATED 14 TIMES 4 stat . 5 stat T01 6 getxattr No data T01|user.DOSATTRIB 7 stat T01/T01.ini 8 opendir T01 9 stat T01/T01.ini 10 stat T01/T01.ini 11 sys_acl_get_file T01/T01.ini 12 getxattr No data T01/T01.ini:user.SAMBA_PAI 13sys_acl_get_entry 14 sys_acl_get_tag_type 15 sys_acl_get_permset 16 sys_acl_get_perm 17 sys_acl_get_perm 18sys_acl_get_entry 19 sys_acl_get_tag_type 20 sys_acl_get_permset 21 sys_acl_get_perm 22 sys_acl_get_perm 23sys_acl_get_entry 24 sys_acl_get_tag_type 25 sys_acl_get_permset 26 sys_acl_get_perm 27 sys_acl_get_perm 28sys_acl_get_entry 29 sys_acl_free_acl 30 fget_nt_acl T01/T01.ini 31 getxattr T01/T01.ini:user.DOSATTRIB 32 closedir 33 stat T01/T01.ini 34 stat T01 35 getxattr T01/T01.ini:user.DOSATTRIB 36 open r T01/T01.ini 37 kernel_flock T01/T01.ini 38 getxattr T01/T01.ini:user.DOSATTRIB 39 *** stat T01/T01.ini 40 sys_acl_get_file T01/T01.ini 41 getxattr No data T01/T01.ini:user.SAMBA_PAI 42sys_acl_get_entry 43 sys_acl_get_tag_type 44 sys_acl_get_permset 45 sys_acl_get_perm 46 sys_acl_get_perm 47sys_acl_get_entry 48 sys_acl_get_tag_type 49 sys_acl_get_permset 50 sys_acl_get_perm 51 sys_acl_get_perm 52sys_acl_get_entry 53 sys_acl_get_tag_type 54 sys_acl_get_permset 55 sys_acl_get_perm 56 sys_acl_get_perm 57sys_acl_get_entry 58 sys_acl_free_acl 59 get_nt_acl T01/T01.ini 60 ** fstat T01/T01.ini 61 getxattr T01/T01.ini:user.DOSATTRIB 62fstat T01/T01.ini 63 sendfile T01/T01.ini I guess that Samba sends the same information in response to a getxattr no matter what the bitness of the client is. So it's probably the client SMB code on x64 XP which is doing something in a different way when it finds out that the share belongs to a Samba server. No combination of oplock settings makes any difference. Does anyone know how to avoid this problem? Should I provide some more diagnostics? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Linux (specially Fedora 8), issues with ldap and samba services starting up at boot time
Could you do a ls -l of your rc startup directory please? -gc Andrew Richey wrote: I've tried it with and without the firewall enabled. Either way, the appropriate ports are open. Alan Hodgson wrote: On Monday 04 February 2008, Andrew Richey [EMAIL PROTECTED] wrote: Hey Adam, Well, I have my Samba LDAP stuff within an organizational unit on purpose - but do you think that would cause an issue? Remember, when I start it manually, it causes no issues at all. It's only when the service is set to start at boot time. firewall? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Linux (specially Fedora 8), issues with ldap and samba services starting up at boot time
Hey Adam, Well, I have my Samba LDAP stuff within an organizational unit on purpose - but do you think that would cause an issue? Remember, when I start it manually, it causes no issues at all. It's only when the service is set to start at boot time. Adam Williams wrote: this is what mine looks like: passdb backend = ldapsam:ldap://gomer.mdah.state.ms.us ldap suffix = dc=gomer,dc=mdah,dc=state,dc=ms,dc=us ldap machine suffix = ou=People ldap user suffix = ou=People ldap group suffix = ou=Group ldap idmap suffix = ou=Idmap ldap admin dn = cn=Manager,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us so i think your ldap suffix = line is wrong. Andrew Richey wrote: Hey there, thanks for the response! Here is that same section out of my smb.conf. passdb backend = ldapsam:ldap://example.com:389 ldap admin dn = cn=admin,dc=example,dc=com ldap suffix = ou=samba,dc=example,dc=com ldap user suffix = ou=users ldap machine suffix = ou=computers ldap group suffix = ou=groups The main difference between mine, and your working config, is that I specify port 389 in my passdb backend paramater. Also, my admin dn isn't within the same part of the tree that the samba stuff is in. I have the samba users/machines/groups within ou=samba. Do you think this could cause an issue? BTW, I'm using OpenLDAP. satish patel wrote: i have face time kind of problem but i got solution in smb.conf This is good and working fine passdb backend = ldapsam:ldap://example.com ldap admin dn = cn=Directory Manager ldap suffix = dc=example,dc=com ldap user suffix = ou=People ldap machine suffix = ou=Computers ldap group suffix = ou=Groups This is wrong not working and got same error ldap retry.. passdb backend = ldapsam:ldap://example.com ldap admin dn = cn=Directory Manager ldap suffix = dc=tulipconnect,dc=com ldap user suffix = ou=People,dc=example,dc=com ldap machine suffix = ou=Computers,dc=example,dc=com ldap group suffix = ou=Groups,dc=example,dc=com I am runung is configuration FDS server */Andrew Richey [EMAIL PROTECTED]/* wrote: Hey guys, For some reason, when I enable smb and nmb to start at boot time... I get error messages in my log.smbd. [2008/02/01 18:47:00, 1] lib/smbldap.c:another_ldap_try(1153) Connection to LDAP server failed for the 1 try! [2008/02/01 18:47:04, 1] lib/smbldap.c:another_ldap_try(1153) Connection to LDAP server failed for the 2 try! From this you'd think that either I hadn't stored the right password (via smbpasswd -w), or the LDAP server is somehow unreachable. But that isn't the case. And when I start both services manually, after boot, everything works great. Was curious if anyone else has run into this problem. Granted, I am a lot more familiar with BSD variants than I am Linux... so I may be missing something obvious. -Andrew -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba $ cat ~/satish/url.txt http://www.linuxbug.org _ Download prohibited? No problem. CHAT http://in.rd.yahoo.com/tagline_webmessenger_1/*http://in.messenger.yahoo.com/webmessengerpromo.php from any browser, without download. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] A good read
From what I remember of using a system under this type of profile in my previous job, there were 2 home directories created when logging in locally versus logging in with the domain login. For example, I had rpollard as a local user on the computer I used and I had rpollard with a domain login and a profile. Correct me if I'm wrong but when I create these profiles on the domain server and the user logs in, they will lose all of their personal setting because it creates a new home directory? If this is true, how do I make the transition seamless to using domain based profiles? Thank! - Original Message - From: Mark Braker [EMAIL PROTECTED] To: 'Adam Williams' [EMAIL PROTECTED]; 'Robert Pollard' [EMAIL PROTECTED] Cc: samba@lists.samba.org Sent: Sunday, February 03, 2008 8:21 PM Subject: RE: [Samba] A good read Another good reason is for server backup of users settings(profile) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Williams Sent: Friday, February 01, 2008 8:31 PM To: Robert Pollard Cc: samba@lists.samba.org Subject: Re: [Samba] A good read thats correct. so whatever work station they are at, they'll have their my documents, email, etc. we do this because we have a rotating schedule of people covering telephones in different areas, so while they are on phone duty, they can still do their work and answer email. Robert Pollard wrote: From what I understand of roaming profiles is the only purpose to allow users to log into any computer not just their own? I assume this capability will download all of their profile settings no matter where they login? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] passdb expand explicit deprecated
Hello i use samba 3.025c testparm says that passdb expand explicit is deprecated but it seems to be working (i mean if i put %N in sambaProfilePath with passdb expand explicit set to yes, it is expanded) my question is : is this option deprecated? according to releases notes, only default value has changed to no -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Aplication slow after migration
OK, so we're apples to apples, so to speak; the servers are tuned the same. I'll assume your disks are tuned from hdparm and up to snuff, otherwise you wouldn't be tuning sockets ;). Did your old server have samba settings for oplocks set? -- Peace and Blessings, -Scott. Of course, that's just my opinion; I could be wrong -Dennis Miller Erm, sorry, I didn't catch that you had 2 .conf files there. I'm back to the drawing board. Sorry about that. Anyone else have any ideas? Yes, that's whats shocking me. Apparently we're apples to apples. Except for the kernel (newslow 2.6.18-4-686 vs oldfast 2.6.8) I've sniffed both eth0 interfaces and I've got some more information. When talking to the slow server, the client needs to send 76 TCP segment of a reassembled PDU that are not sent when talking to the old and fast server. How can I workaround this issue? Should I lower server's MTU? How much? Thank you -- == Felipe Martínez Hermo [EMAIL PROTECTED] [EMAIL PROTECTED] == Servicios Informáticos UGT Galicia [EMAIL PROTECTED] [EMAIL PROTECTED] == -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Linux (specially Fedora 8), issues with ldap and samba services starting up at boot time
paste your smb.conf, maybe you have a typo? Andrew Richey wrote: Hey guys, For some reason, when I enable smb and nmb to start at boot time... I get error messages in my log.smbd. [2008/02/01 18:47:00, 1] lib/smbldap.c:another_ldap_try(1153) Connection to LDAP server failed for the 1 try! [2008/02/01 18:47:04, 1] lib/smbldap.c:another_ldap_try(1153) Connection to LDAP server failed for the 2 try! From this you'd think that either I hadn't stored the right password (via smbpasswd -w), or the LDAP server is somehow unreachable. But that isn't the case. And when I start both services manually, after boot, everything works great. Was curious if anyone else has run into this problem. Granted, I am a lot more familiar with BSD variants than I am Linux... so I may be missing something obvious. -Andrew -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Linux (specially Fedora 8), issues with ldap and samba services starting up at boot time
On Monday 04 February 2008, Andrew Richey [EMAIL PROTECTED] wrote: Hey Adam, Well, I have my Samba LDAP stuff within an organizational unit on purpose - but do you think that would cause an issue? Remember, when I start it manually, it causes no issues at all. It's only when the service is set to start at boot time. firewall? -- Alan -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Linux (specially Fedora 8), issues with ldap and samba services starting up at boot time
I've tried it with and without the firewall enabled. Either way, the appropriate ports are open. Alan Hodgson wrote: On Monday 04 February 2008, Andrew Richey [EMAIL PROTECTED] wrote: Hey Adam, Well, I have my Samba LDAP stuff within an organizational unit on purpose - but do you think that would cause an issue? Remember, when I start it manually, it causes no issues at all. It's only when the service is set to start at boot time. firewall? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba as WINS
Can Samba act as the WINS server in a Win2003 Domain? If so is it a good idea? Thanks Kevin smime.p7s Description: S/MIME Cryptographic Signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Linux (specially Fedora 8), issues with ldap and samba services starting up at boot time
no sure why it doesn't work on boot. if you're using a redhat based distro, have you tried putting your manual commands in /etc/rc.d/rc.local? should work that way. Andrew Richey wrote: Hey Adam, Well, I have my Samba LDAP stuff within an organizational unit on purpose - but do you think that would cause an issue? Remember, when I start it manually, it causes no issues at all. It's only when the service is set to start at boot time. Adam Williams wrote: this is what mine looks like: passdb backend = ldapsam:ldap://gomer.mdah.state.ms.us ldap suffix = dc=gomer,dc=mdah,dc=state,dc=ms,dc=us ldap machine suffix = ou=People ldap user suffix = ou=People ldap group suffix = ou=Group ldap idmap suffix = ou=Idmap ldap admin dn = cn=Manager,dc=gomer,dc=mdah,dc=state,dc=ms,dc=us so i think your ldap suffix = line is wrong. Andrew Richey wrote: Hey there, thanks for the response! Here is that same section out of my smb.conf. passdb backend = ldapsam:ldap://example.com:389 ldap admin dn = cn=admin,dc=example,dc=com ldap suffix = ou=samba,dc=example,dc=com ldap user suffix = ou=users ldap machine suffix = ou=computers ldap group suffix = ou=groups The main difference between mine, and your working config, is that I specify port 389 in my passdb backend paramater. Also, my admin dn isn't within the same part of the tree that the samba stuff is in. I have the samba users/machines/groups within ou=samba. Do you think this could cause an issue? BTW, I'm using OpenLDAP. satish patel wrote: i have face time kind of problem but i got solution in smb.conf This is good and working fine passdb backend = ldapsam:ldap://example.com ldap admin dn = cn=Directory Manager ldap suffix = dc=example,dc=com ldap user suffix = ou=People ldap machine suffix = ou=Computers ldap group suffix = ou=Groups This is wrong not working and got same error ldap retry.. passdb backend = ldapsam:ldap://example.com ldap admin dn = cn=Directory Manager ldap suffix = dc=tulipconnect,dc=com ldap user suffix = ou=People,dc=example,dc=com ldap machine suffix = ou=Computers,dc=example,dc=com ldap group suffix = ou=Groups,dc=example,dc=com I am runung is configuration FDS server */Andrew Richey [EMAIL PROTECTED]/* wrote: Hey guys, For some reason, when I enable smb and nmb to start at boot time... I get error messages in my log.smbd. [2008/02/01 18:47:00, 1] lib/smbldap.c:another_ldap_try(1153) Connection to LDAP server failed for the 1 try! [2008/02/01 18:47:04, 1] lib/smbldap.c:another_ldap_try(1153) Connection to LDAP server failed for the 2 try! From this you'd think that either I hadn't stored the right password (via smbpasswd -w), or the LDAP server is somehow unreachable. But that isn't the case. And when I start both services manually, after boot, everything works great. Was curious if anyone else has run into this problem. Granted, I am a lot more familiar with BSD variants than I am Linux... so I may be missing something obvious. -Andrew -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba $ cat ~/satish/url.txt http://www.linuxbug.org _ Download prohibited? No problem. CHAT http://in.rd.yahoo.com/tagline_webmessenger_1/*http://in.messenger.yahoo.com/webmessengerpromo.php from any browser, without download. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] A good read
I forgot to mention, you may need to change your user from local to roaming in the user profiles, settings box also. Robert Pollard wrote: From what I remember of using a system under this type of profile in my previous job, there were 2 home directories created when logging in locally versus logging in with the domain login. For example, I had rpollard as a local user on the computer I used and I had rpollard with a domain login and a profile. Correct me if I'm wrong but when I create these profiles on the domain server and the user logs in, they will lose all of their personal setting because it creates a new home directory? If this is true, how do I make the transition seamless to using domain based profiles? Thank! - Original Message - From: Mark Braker [EMAIL PROTECTED] To: 'Adam Williams' [EMAIL PROTECTED]; 'Robert Pollard' [EMAIL PROTECTED] Cc: samba@lists.samba.org Sent: Sunday, February 03, 2008 8:21 PM Subject: RE: [Samba] A good read Another good reason is for server backup of users settings(profile) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Williams Sent: Friday, February 01, 2008 8:31 PM To: Robert Pollard Cc: samba@lists.samba.org Subject: Re: [Samba] A good read thats correct. so whatever work station they are at, they'll have their my documents, email, etc. we do this because we have a rotating schedule of people covering telephones in different areas, so while they are on phone duty, they can still do their work and answer email. Robert Pollard wrote: From what I understand of roaming profiles is the only purpose to allow users to log into any computer not just their own? I assume this capability will download all of their profile settings no matter where they login? -- 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] passdb expand explicit deprecated
Arnaud FLORENT wrote: Hello i use samba 3.025c testparm says that passdb expand explicit is deprecated but it seems to be working (i mean if i put %N in sambaProfilePath with passdb expand explicit set to yes, it is expanded) Deprecated does not mean that it shouldn't work. It just means we suggest you not to use this since we may remove this functionality in a future version of samba. Deprecation is a warning for the future removal. --Sadique my question is : is this option deprecated? according to releases notes, only default value has changed to no -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] SAMBA authentication ?
On Feb 4, 2008 5:48 PM, Charles Marcus [EMAIL PROTECTED] wrote: Please post your smb.conf without comments. Is there a command to generate this output? There probably is a better way but this is the first thing I can think of: grep -v ^# /etc/samba/smb.conf John -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] halp!
I'm trying to get my Lexmark X4270 printer shared on my linux server so my windows machines can print to it. I have the printer setup in CUPS apparently, because it is able to print the test page fine. It's using the Gutenprint driver. And i'm pretty sure I have samba set up correctly because I also have a HP printer but it's using the HPLIP driver, it works fine from CUPS and I can print from the windows machines. But when I try to print to the lexmark using the windows test page, it says it can't create the print job. (if this makes any difference, I had to select drivers on my windows box because it said the print server doesn't have the correct drivers installed) Does anyone know what is wrong? I see no errors in samba or cups logs. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] A good read
go to my computer properties, user profiles, settings, copy your profile to \\server\netlogin\username then reboot your computer, join domain, delete your user from the computer and c:\documents and settings\username, reboot, login to the domain, all your stuff should be there (make backups first!) Robert Pollard wrote: From what I remember of using a system under this type of profile in my previous job, there were 2 home directories created when logging in locally versus logging in with the domain login. For example, I had rpollard as a local user on the computer I used and I had rpollard with a domain login and a profile. Correct me if I'm wrong but when I create these profiles on the domain server and the user logs in, they will lose all of their personal setting because it creates a new home directory? If this is true, how do I make the transition seamless to using domain based profiles? Thank! - Original Message - From: Mark Braker [EMAIL PROTECTED] To: 'Adam Williams' [EMAIL PROTECTED]; 'Robert Pollard' [EMAIL PROTECTED] Cc: samba@lists.samba.org Sent: Sunday, February 03, 2008 8:21 PM Subject: RE: [Samba] A good read Another good reason is for server backup of users settings(profile) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adam Williams Sent: Friday, February 01, 2008 8:31 PM To: Robert Pollard Cc: samba@lists.samba.org Subject: Re: [Samba] A good read thats correct. so whatever work station they are at, they'll have their my documents, email, etc. we do this because we have a rotating schedule of people covering telephones in different areas, so while they are on phone duty, they can still do their work and answer email. Robert Pollard wrote: From what I understand of roaming profiles is the only purpose to allow users to log into any computer not just their own? I assume this capability will download all of their profile settings no matter where they login? -- 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] Making Samba change the Unix Password (/etc/shadow)
Hi Rubin, I made the changes suggested by you but still its not working. -- Parag Kalra On Feb 5, 2008 3:29 AM, Rubin Bennett [EMAIL PROTECTED] wrote: On Tue, 2008-02-05 at 02:26 +0530, Parag Kalra wrote: Hello all, I am trying to change the linux login password through the smbpasswd command by placing following parameters in smb.conf file: unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = *enter old password* %o\\n *Enter NEW password* %n\\n *reenter New passwd* %n\\n *password changed* testparm is your friend :) It should complain about the passwd command, and for good reason; it shouldn't be there. Use: pam password change = yes instead, and get rid of the passwd program and passwd chat lines. HTH, Rubin But its not changing the unix password. Where I am going wrong? -- Thanks and Regards, PARAG . A . KALRA Good judgment comes from experience, and experience comes from bad judgment http://discoverlinux.blogspot.com Debian Linux! A Dawn of New Era! -- Rubin Bennett RB Technologies http://thatitguy.com [EMAIL PROTECTED] (802)223-4448 They that can give up essential liberty to obtain a little temporary security deserve neither liberty nor safety --Benjamin Franklin, Historical Review of Pennsylvania, 1759 -- Love, PARAG . A . KALRA Good judgment comes from experience, and experience comes from bad judgment http://discoverlinux.blogspot.com Debian Linux! A Dawn of New Era! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Making Samba change the Unix Password (/etc/shadow)
Did you restart samba (/etc/init.d/smb restart)? You need to at least do a reload (/etc/init.d/smb reload) for config file changes to be read. Rubin On Tue, 2008-02-05 at 08:09 +0900, Michael Heydon wrote: Parag Kalra wrote: Hi Rubin, I made the changes suggested by you but still its not working. -- Parag Kalra On Feb 5, 2008 3:29 AM, Rubin Bennett [EMAIL PROTECTED] wrote: On Tue, 2008-02-05 at 02:26 +0530, Parag Kalra wrote: Hello all, I am trying to change the linux login password through the smbpasswd command by placing following parameters in smb.conf file: unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = *enter old password* %o\\n *Enter NEW password* %n\\n *reenter New passwd* %n\\n *password changed* testparm is your friend :) It should complain about the passwd command, and for good reason; it shouldn't be there. Use: pam password change = yes instead, and get rid of the passwd program and passwd chat lines. PAM is far from universal, there are plenty of OSes and distros that do not include PAM. The man page doesn't say anything about passwd program being depreciated, why would testparm complain about it? Are you getting anything in the logs when trying to reset the password? Have you tried enabling passwd chat debug (you may have to up your log level as well)? If you want to keep using passwd instead of PAM, could you write a wrapper/replacement for passwd that logs everything that happens? HTH, Rubin *Michael Heydon - IT Administrator * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Rubin Bennett RB Technologies http://thatitguy.com [EMAIL PROTECTED] (802)223-4448 They that can give up essential liberty to obtain a little temporary security deserve neither liberty nor safety --Benjamin Franklin, Historical Review of Pennsylvania, 1759 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] SAMBA authentication ?
John Drescher wrote: On Feb 4, 2008 5:48 PM, Charles Marcus [EMAIL PROTECTED] wrote: Please post your smb.conf without comments. Is there a command to generate this output? There probably is a better way but this is the first thing I can think of: grep -v ^# /etc/samba/smb.conf John This works pretty well: testparm -s ... as it is formatted in a readable way, even if the smb.conf is messy. Or you can do it this way: grep -v '^[ \t]*[#;]\|^[ \t]*$' /etc/samba/smb.conf ... so you also remove blank lines as well as comments (both # and ;), even with leading whitespace. -- Brian High -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] SAMBA authentication ?
Please post your smb.conf without comments. Is there a command to generate this output? -- Best regards, Charles -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Making Samba change the Unix Password (/etc/shadow)
I am using RHEL 4 U5. The enteries under concern are: unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = *enter old password* %o\\n *Enter NEW password* %n\\n *reenter New passwd* %n\\n *password changed* username map = /etc/samba/smbusers Also to view the entire file please see the attachment. -- Parag Kalra On Feb 5, 2008 5:37 AM, Rubin Bennett [EMAIL PROTECTED] wrote: Ok, I assume that your system does have a pam auth subsystem? What distro are you on, and may we see your smb.conf (you can omit the share definitions)? Rubin On Tue, 2008-02-05 at 05:26 +0530, Parag Kalra wrote: Yes I have restarted smb but still no fruits. Also placing passwd chat debug = yes didn't generate any log in /var/log/samba/smd.log Could anyone please explain the following: [If you want to keep using passwd instead of PAM, could you write a wrapper/replacement for passwd that logs everything that happens?] -- Parag Kalra On Feb 5, 2008 5:11 AM, Rubin Bennett [EMAIL PROTECTED] wrote: Did you restart samba (/etc/init.d/smb restart)? You need to at least do a reload (/etc/init.d/smb reload) for config file changes to be read. Rubin On Tue, 2008-02-05 at 08:09 +0900, Michael Heydon wrote: Parag Kalra wrote: Hi Rubin, I made the changes suggested by you but still its not working. -- Parag Kalra On Feb 5, 2008 3:29 AM, Rubin Bennett [EMAIL PROTECTED] wrote: On Tue, 2008-02-05 at 02:26 +0530, Parag Kalra wrote: Hello all, I am trying to change the linux login password through the smbpasswd command by placing following parameters in smb.conf file: unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = *enter old password* %o\\n *Enter NEW password* %n\\n *reenter New passwd* %n\\n *password changed* testparm is your friend :) It should complain about the passwd command, and for good reason; it shouldn't be there. Use: pam password change = yes instead, and get rid of the passwd program and passwd chat lines. PAM is far from universal, there are plenty of OSes and distros that do not include PAM. The man page doesn't say anything about passwd program being depreciated, why would testparm complain about it? Are you getting anything in the logs when trying to reset the password? Have you tried enabling passwd chat debug (you may have to up your log level as well)? If you want to keep using passwd instead of PAM, could you write a wrapper/replacement for passwd that logs everything that happens? HTH, Rubin *Michael Heydon - IT Administrator * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Rubin Bennett RB Technologies http://thatitguy.com [EMAIL PROTECTED] (802)223-4448 They that can give up essential liberty to obtain a little temporary security deserve neither liberty nor safety --Benjamin Franklin, Historical Review of Pennsylvania, 1759 -- Love, PARAG . A . KALRA Good judgment comes from experience, and experience comes from bad judgment http://discoverlinux.blogspot.com Debian Linux! A Dawn of New Era! -- Rubin Bennett RB Technologies http://thatitguy.com [EMAIL PROTECTED] (802)223-4448 They that can give up essential liberty to obtain a little temporary security deserve neither liberty nor safety --Benjamin Franklin, Historical Review of Pennsylvania, 1759 -- Love, PARAG . A . KALRA Good judgment comes from experience, and experience comes from bad judgment http://discoverlinux.blogspot.com Debian Linux! A Dawn of New Era! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Making Samba change the Unix Password (/etc/shadow)
Ok, I assume that your system does have a pam auth subsystem? What distro are you on, and may we see your smb.conf (you can omit the share definitions)? Rubin On Tue, 2008-02-05 at 05:26 +0530, Parag Kalra wrote: Yes I have restarted smb but still no fruits. Also placing passwd chat debug = yes didn't generate any log in /var/log/samba/smd.log Could anyone please explain the following: [If you want to keep using passwd instead of PAM, could you write a wrapper/replacement for passwd that logs everything that happens?] -- Parag Kalra On Feb 5, 2008 5:11 AM, Rubin Bennett [EMAIL PROTECTED] wrote: Did you restart samba (/etc/init.d/smb restart)? You need to at least do a reload (/etc/init.d/smb reload) for config file changes to be read. Rubin On Tue, 2008-02-05 at 08:09 +0900, Michael Heydon wrote: Parag Kalra wrote: Hi Rubin, I made the changes suggested by you but still its not working. -- Parag Kalra On Feb 5, 2008 3:29 AM, Rubin Bennett [EMAIL PROTECTED] wrote: On Tue, 2008-02-05 at 02:26 +0530, Parag Kalra wrote: Hello all, I am trying to change the linux login password through the smbpasswd command by placing following parameters in smb.conf file: unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = *enter old password* %o\\n *Enter NEW password* %n\\n *reenter New passwd* %n\\n *password changed* testparm is your friend :) It should complain about the passwd command, and for good reason; it shouldn't be there. Use: pam password change = yes instead, and get rid of the passwd program and passwd chat lines. PAM is far from universal, there are plenty of OSes and distros that do not include PAM. The man page doesn't say anything about passwd program being depreciated, why would testparm complain about it? Are you getting anything in the logs when trying to reset the password? Have you tried enabling passwd chat debug (you may have to up your log level as well)? If you want to keep using passwd instead of PAM, could you write a wrapper/replacement for passwd that logs everything that happens? HTH, Rubin *Michael Heydon - IT Administrator * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Rubin Bennett RB Technologies http://thatitguy.com [EMAIL PROTECTED] (802)223-4448 They that can give up essential liberty to obtain a little temporary security deserve neither liberty nor safety --Benjamin Franklin, Historical Review of Pennsylvania, 1759 -- Love, PARAG . A . KALRA Good judgment comes from experience, and experience comes from bad judgment http://discoverlinux.blogspot.com Debian Linux! A Dawn of New Era! -- Rubin Bennett RB Technologies http://thatitguy.com [EMAIL PROTECTED] (802)223-4448 They that can give up essential liberty to obtain a little temporary security deserve neither liberty nor safety --Benjamin Franklin, Historical Review of Pennsylvania, 1759 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Making Samba change the Unix Password (/etc/shadow)
Yes I have restarted smb but still no fruits. Also placing passwd chat debug = yes didn't generate any log in /var/log/samba/smd.log Could anyone please explain the following: [If you want to keep using passwd instead of PAM, could you write a wrapper/replacement for passwd that logs everything that happens?] -- Parag Kalra On Feb 5, 2008 5:11 AM, Rubin Bennett [EMAIL PROTECTED] wrote: Did you restart samba (/etc/init.d/smb restart)? You need to at least do a reload (/etc/init.d/smb reload) for config file changes to be read. Rubin On Tue, 2008-02-05 at 08:09 +0900, Michael Heydon wrote: Parag Kalra wrote: Hi Rubin, I made the changes suggested by you but still its not working. -- Parag Kalra On Feb 5, 2008 3:29 AM, Rubin Bennett [EMAIL PROTECTED] wrote: On Tue, 2008-02-05 at 02:26 +0530, Parag Kalra wrote: Hello all, I am trying to change the linux login password through the smbpasswd command by placing following parameters in smb.conf file: unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = *enter old password* %o\\n *Enter NEW password* %n\\n *reenter New passwd* %n\\n *password changed* testparm is your friend :) It should complain about the passwd command, and for good reason; it shouldn't be there. Use: pam password change = yes instead, and get rid of the passwd program and passwd chat lines. PAM is far from universal, there are plenty of OSes and distros that do not include PAM. The man page doesn't say anything about passwd program being depreciated, why would testparm complain about it? Are you getting anything in the logs when trying to reset the password? Have you tried enabling passwd chat debug (you may have to up your log level as well)? If you want to keep using passwd instead of PAM, could you write a wrapper/replacement for passwd that logs everything that happens? HTH, Rubin *Michael Heydon - IT Administrator * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Rubin Bennett RB Technologies http://thatitguy.com [EMAIL PROTECTED] (802)223-4448 They that can give up essential liberty to obtain a little temporary security deserve neither liberty nor safety --Benjamin Franklin, Historical Review of Pennsylvania, 1759 -- Love, PARAG . A . KALRA Good judgment comes from experience, and experience comes from bad judgment http://discoverlinux.blogspot.com Debian Linux! A Dawn of New Era! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Making Samba change the Unix Password (/etc/shadow)
Hello all, I am trying to change the linux login password through the smbpasswd command by placing following parameters in smb.conf file: unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = *enter old password* %o\\n *Enter NEW password* %n\\n *reenter New passwd* %n\\n *password changed* But its not changing the unix password. Where I am going wrong? -- Thanks and Regards, PARAG . A . KALRA Good judgment comes from experience, and experience comes from bad judgment http://discoverlinux.blogspot.com Debian Linux! A Dawn of New Era! -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Linux (specially Fedora 8), issues with ldap and samba services starting up at boot time
Here's where my Linux inexperience will show. :-) I think a basic chkconfig will add it to all the run levels??? Which run level is pertinent in this case? Here is rc2.d (smb and nmb near bottom): lrwxrwxrwx 1 root root 16 2008-02-01 16:33 K01smartd - ../init.d/smartd lrwxrwxrwx 1 root root 15 2008-02-01 14:25 K01smolt - ../init.d/smolt lrwxrwxrwx 1 root root 22 2008-02-01 14:26 K02avahi-daemon - ../init.d/avahi-daemon lrwxrwxrwx 1 root root 19 2008-02-01 14:28 K02haldaemon - ../init.d/haldaemon lrwxrwxrwx 1 root root 24 2008-02-01 14:28 K02NetworkManager - ../init.d/NetworkManager lrwxrwxrwx 1 root root 34 2008-02-01 14:28 K02NetworkManagerDispatcher - ../init.d/NetworkManagerDispatcher lrwxrwxrwx 1 root root 13 2008-02-01 14:23 K05atd - ../init.d/atd lrwxrwxrwx 1 root root 19 2008-02-01 14:26 K05saslauthd - ../init.d/saslauthd lrwxrwxrwx 1 root root 16 2008-02-01 14:22 K10psacct - ../init.d/psacct lrwxrwxrwx 1 root root 15 2008-02-01 14:26 K15httpd - ../init.d/httpd lrwxrwxrwx 1 root root 13 2008-02-01 14:27 K20nfs - ../init.d/nfs lrwxrwxrwx 1 root root 14 2008-02-01 14:22 K24irda - ../init.d/irda lrwxrwxrwx 1 root root 20 2008-02-01 14:25 K50netconsole - ../init.d/netconsole lrwxrwxrwx 1 root root 15 2008-02-01 16:36 K50snmpd - ../init.d/snmpd lrwxrwxrwx 1 root root 19 2008-02-01 16:36 K50snmptrapd - ../init.d/snmptrapd lrwxrwxrwx 1 root root 20 2008-02-01 14:27 K69rpcsvcgssd - ../init.d/rpcsvcgssd lrwxrwxrwx 1 root root 16 2008-02-01 14:22 K72autofs - ../init.d/autofs lrwxrwxrwx 1 root root 24 2008-02-01 16:43 K72wpa_supplicant - ../init.d/wpa_supplicant lrwxrwxrwx 1 root root 24 2008-02-01 16:43 K73setroubleshoot - ../init.d/setroubleshoot lrwxrwxrwx 1 root root 17 2008-02-01 14:26 K73winbind - ../init.d/winbind lrwxrwxrwx 1 root root 16 2008-02-01 14:25 K73ypbind - ../init.d/ypbind lrwxrwxrwx 1 root root 20 2008-02-01 14:25 K74lm_sensors - ../init.d/lm_sensors lrwxrwxrwx 1 root root 14 2008-02-01 14:21 K74nscd - ../init.d/nscd lrwxrwxrwx 1 root root 14 2008-02-01 14:59 K74ntpd - ../init.d/ntpd lrwxrwxrwx 1 root root 15 2008-02-01 14:25 K75netfs - ../init.d/netfs lrwxrwxrwx 1 root root 19 2008-02-01 16:33 K75udev-post - ../init.d/udev-post lrwxrwxrwx 1 root root 16 2008-02-01 14:27 K84btseed - ../init.d/btseed lrwxrwxrwx 1 root root 17 2008-02-01 14:27 K84bttrack - ../init.d/bttrack lrwxrwxrwx 1 root root 17 2008-02-01 14:27 K85rpcgssd - ../init.d/rpcgssd lrwxrwxrwx 1 root root 19 2008-02-01 14:27 K85rpcidmapd - ../init.d/rpcidmapd lrwxrwxrwx 1 root root 17 2008-02-01 14:27 K86nfslock - ../init.d/nfslock lrwxrwxrwx 1 root root 20 2008-02-01 16:33 K87irqbalance - ../init.d/irqbalance lrwxrwxrwx 1 root root 20 2008-02-01 14:22 K87multipathd - ../init.d/multipathd lrwxrwxrwx 1 root root 14 2008-02-01 14:29 K89dund - ../init.d/dund lrwxrwxrwx 1 root root 18 2008-02-01 14:21 K89netplugd - ../init.d/netplugd lrwxrwxrwx 1 root root 14 2008-02-01 14:29 K89pand - ../init.d/pand lrwxrwxrwx 1 root root 15 2008-02-01 14:22 K89rdisc - ../init.d/rdisc lrwxrwxrwx 1 root root 14 2008-02-01 14:27 K91capi - ../init.d/capi lrwxrwxrwx 1 root root 19 2008-02-01 14:27 K95firstboot - ../init.d/firstboot lrwxrwxrwx 1 root root 15 2008-02-01 14:24 K95kudzu - ../init.d/kudzu lrwxrwxrwx 1 root root 23 2008-02-01 14:27 S00microcode_ctl - ../init.d/microcode_ctl lrwxrwxrwx 1 root root 18 2008-02-01 14:22 S06cpuspeed - ../init.d/cpuspeed lrwxrwxrwx 1 root root 19 2008-02-01 16:31 S08ip6tables - ../init.d/ip6tables lrwxrwxrwx 1 root root 18 2008-02-01 16:31 S08iptables - ../init.d/iptables lrwxrwxrwx 1 root root 14 2008-02-01 14:27 S09isdn - ../init.d/isdn lrwxrwxrwx 1 root root 17 2008-02-01 14:25 S10network - ../init.d/network lrwxrwxrwx 1 root root 21 2008-02-01 14:26 S12restorecond - ../init.d/restorecond lrwxrwxrwx 1 root root 17 2008-02-01 14:22 S13rpcbind - ../init.d/rpcbind lrwxrwxrwx 1 root root 19 2008-02-01 14:26 S15mdmonitor - ../init.d/mdmonitor lrwxrwxrwx 1 root root 15 2008-02-01 14:28 S25pcscd - ../init.d/pcscd lrwxrwxrwx 1 root root 17 2008-02-01 16:43 S26rsyslog - ../init.d/rsyslog lrwxrwxrwx 1 root root 16 2008-02-01 16:43 S27auditd - ../init.d/auditd lrwxrwxrwx 1 root root 20 2008-02-01 16:43 S27messagebus - ../init.d/messagebus lrwxrwxrwx 1 root root 15 2008-02-01 16:31 S44acpid - ../init.d/acpid lrwxrwxrwx 1 root root 19 2008-02-01 16:43 S50bluetooth - ../init.d/bluetooth lrwxrwxrwx 1 root root 14 2008-02-01 14:27 S55sshd - ../init.d/sshd lrwxrwxrwx 1 root root 18 2008-02-01 16:43 S80sendmail - ../init.d/sendmail lrwxrwxrwx 1 root root 13 2008-02-01 14:22 S85gpm - ../init.d/gpm lrwxrwxrwx 1 root root 20 2008-02-01 14:25 S90ConsoleKit - ../init.d/ConsoleKit lrwxrwxrwx 1 root root 15 2008-02-01 14:23 S90crond - ../init.d/crond lrwxrwxrwx 1 root root 13 2008-02-03 16:17 S91nmb - ../init.d/nmb lrwxrwxrwx 1 root root 13 2008-02-03 16:17 S91smb - ../init.d/smb lrwxrwxrwx 1 root root 22 2008-02-01 16:39 S97yum-updatesd - ../init.d/yum-updatesd lrwxrwxrwx 1 root root
Re: [Samba] Making Samba change the Unix Password (/etc/shadow)
Parag Kalra wrote: Hi Rubin, I made the changes suggested by you but still its not working. -- Parag Kalra On Feb 5, 2008 3:29 AM, Rubin Bennett [EMAIL PROTECTED] wrote: On Tue, 2008-02-05 at 02:26 +0530, Parag Kalra wrote: Hello all, I am trying to change the linux login password through the smbpasswd command by placing following parameters in smb.conf file: unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = *enter old password* %o\\n *Enter NEW password* %n\\n *reenter New passwd* %n\\n *password changed* testparm is your friend :) It should complain about the passwd command, and for good reason; it shouldn't be there. Use: pam password change = yes instead, and get rid of the passwd program and passwd chat lines. PAM is far from universal, there are plenty of OSes and distros that do not include PAM. The man page doesn't say anything about passwd program being depreciated, why would testparm complain about it? Are you getting anything in the logs when trying to reset the password? Have you tried enabling passwd chat debug (you may have to up your log level as well)? If you want to keep using passwd instead of PAM, could you write a wrapper/replacement for passwd that logs everything that happens? HTH, Rubin *Michael Heydon - IT Administrator * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Making Samba change the Unix Password (/etc/shadow)
this is my passwd chat for RHEL: passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* Parag Kalra wrote: I am using RHEL 4 U5. The enteries under concern are: unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = *enter old password* %o\\n *Enter NEW password* %n\\n *reenter New passwd* %n\\n *password changed* username map = /etc/samba/smbusers Also to view the entire file please see the attachment. -- Parag Kalra On Feb 5, 2008 5:37 AM, Rubin Bennett [EMAIL PROTECTED] wrote: Ok, I assume that your system does have a pam auth subsystem? What distro are you on, and may we see your smb.conf (you can omit the share definitions)? Rubin On Tue, 2008-02-05 at 05:26 +0530, Parag Kalra wrote: Yes I have restarted smb but still no fruits. Also placing passwd chat debug = yes didn't generate any log in /var/log/samba/smd.log Could anyone please explain the following: [If you want to keep using passwd instead of PAM, could you write a wrapper/replacement for passwd that logs everything that happens?] -- Parag Kalra On Feb 5, 2008 5:11 AM, Rubin Bennett [EMAIL PROTECTED] wrote: Did you restart samba (/etc/init.d/smb restart)? You need to at least do a reload (/etc/init.d/smb reload) for config file changes to be read. Rubin On Tue, 2008-02-05 at 08:09 +0900, Michael Heydon wrote: Parag Kalra wrote: Hi Rubin, I made the changes suggested by you but still its not working. -- Parag Kalra On Feb 5, 2008 3:29 AM, Rubin Bennett [EMAIL PROTECTED] wrote: On Tue, 2008-02-05 at 02:26 +0530, Parag Kalra wrote: Hello all, I am trying to change the linux login password through the smbpasswd command by placing following parameters in smb.conf file: unix password sync = Yes passwd program = /usr/bin/passwd %u passwd chat = *enter old password* %o\\n *Enter NEW password* %n\\n *reenter New passwd* %n\\n *password changed* testparm is your friend :) It should complain about the passwd command, and for good reason; it shouldn't be there. Use: pam password change = yes instead, and get rid of the passwd program and passwd chat lines. PAM is far from universal, there are plenty of OSes and distros that do not include PAM. The man page doesn't say anything about passwd program being depreciated, why would testparm complain about it? Are you getting anything in the logs when trying to reset the password? Have you tried enabling passwd chat debug (you may have to up your log level as well)? If you want to keep using passwd instead of PAM, could you write a wrapper/replacement for passwd that logs everything that happens? HTH, Rubin *Michael Heydon - IT Administrator * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Rubin Bennett RB Technologies http://thatitguy.com [EMAIL PROTECTED] (802)223-4448 They that can give up essential liberty to obtain a little temporary security deserve neither liberty nor safety --Benjamin Franklin, Historical Review of Pennsylvania, 1759 -- Love, PARAG . A . KALRA Good judgment comes from experience, and experience comes from bad judgment http://discoverlinux.blogspot.com Debian Linux! A Dawn of New Era! -- Rubin Bennett RB Technologies http://thatitguy.com [EMAIL PROTECTED] (802)223-4448 They that can give up essential liberty to obtain a little temporary security deserve neither liberty nor safety --Benjamin Franklin, Historical Review of Pennsylvania, 1759 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] windows printer config management
Hello, I sent this request to my local linux user group: http://lists.luv.asn.au/wws/arc/luv-talk/2008-02/msg0.html Unfortunately it looks like nobody is able to answer, so I will try here: Does anybody know of any sane solution for (globally) managing the configuration of printers on a large number of Windows computers? My current solution is 1. create samba server with printer shares 2. install windows printer drivers to samba server to allow automatic installation 3. on windows computer, drivers have to be installed from the samba server, * installation of drivers as non-administrator won't work * log in as administrator, install printer, which tries to install driver. * first time, windows complains that the server doesn't have the drivers. * retry, it works perfectly on second try. * log as administrator, log it as user, printer doesn't exit. * install printer again as user, this time it uses the existing drivers. 4. if any changes required, e.g. printer is replaced, repeat then on every computer for every user. This is insane. Ok, so maybe I should be able to fix the problem with the driver installation not working the first time (any ideas?), but this is only a small step in the entire process. cups makes this so much easier :-(. Any ideas? Thanks. -- Brian May [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] SAMBA authentication ?
Charles Marcus wrote: Please post your smb.conf without comments. Is there a command to generate this output? #testparm -s /tmp/smb.conf Attach the /tmp/smb.conf. --Sadique -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba as WINS
Kevin R. Gutch wrote: Can Samba act as the WINS server in a Win2003 Domain? Yes. Just specify wins support = yes in smb.conf and configure your windows systems to use this samba wins server. If so is it a good idea? I don't know really, but I don't know why you think it could be bad. --Sadique Thanks Kevin -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
svn commit: samba-docs r1233 - in trunk/smbdotconf/logging: .
Author: kseeger Date: 2008-02-04 09:13:23 + (Mon, 04 Feb 2008) New Revision: 1233 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=samba-docsrev=1233 Log: Fix typo. Karolin Modified: trunk/smbdotconf/logging/loglevel.xml Changeset: Modified: trunk/smbdotconf/logging/loglevel.xml === --- trunk/smbdotconf/logging/loglevel.xml 2008-01-20 20:12:59 UTC (rev 1232) +++ trunk/smbdotconf/logging/loglevel.xml 2008-02-04 09:13:23 UTC (rev 1233) @@ -8,7 +8,7 @@ para The value of the parameter (a astring) allows the debug level (logging level) to be specified in the filename moreinfo=nonesmb.conf/filename file. This parameter has been extended since the 2.2.x -series, now it allow to specify the debug level for multiple debug classes. This is to give greater +series, now it allows to specify the debug level for multiple debug classes. This is to give greater flexibility in the configuration of the system. /para
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1819-gc2e786d
The branch, v3-2-test has been updated via c2e786d4e2cb53b5a8be45278f221acaa7f5122a (commit) via c56b702454c82b7aa7debbfc7f270b2d2b10226d (commit) via f3377eb41d13b13082cd787e5437d0a92497a6b5 (commit) via 15d22925def45f1f8cd2d356a7f580fb4bfd05ef (commit) via ef293be6cb95225f10e8062b3089dc1bbe5fd013 (commit) via f8a3dc350014ef08fe2d5a702dafdb5d0583ffef (commit) via 9db324ac2a9c4767a109e136e15c35e2a89f57e2 (commit) via badbdf1b88b270d298d44ed6fddb0c31fbcb3717 (commit) via 26eadadbf628f4d3aa4cd0ab4b55d47dc79c80ba (commit) via 70a4ba798cdd3b4daa01c2f6aa693de34288c8b9 (commit) via f837fff80ef369133761f7a33a616fd4721c5a68 (commit) via a6a5d99f5206dc4b94f3d0ecceb5198d66afdf41 (commit) via ff6fb5de32ee81efc88d8c15f13c302e21790eee (commit) via a939271b0758731debfb76eb512ccc1c8270e1fb (commit) via cfb4c6d82f84eb3a434f8a3e07b8281636f192db (commit) via 382de7c06092805738f40df69f6c1f71858f6730 (commit) via 0c8e0916d7a7a403255c814536f1ebde3c5c9905 (commit) via af30a6373e7d85df4bb99e153588498938ddc368 (commit) from 90982cf43ab549a19b4d45860504bb7db57c7c8a (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit c2e786d4e2cb53b5a8be45278f221acaa7f5122a Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 11:33:06 2008 +0100 Remove unused arguments in read_package_entry() in the eventlog rpc server. Guenther commit c56b702454c82b7aa7debbfc7f270b2d2b10226d Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 11:28:15 2008 +0100 Re-run make idl. Guenther commit f3377eb41d13b13082cd787e5437d0a92497a6b5 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 11:27:22 2008 +0100 Fix IDL for eventlog_ReadEventLogW(). Guenther commit 15d22925def45f1f8cd2d356a7f580fb4bfd05ef Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 11:10:53 2008 +0100 Remove unused marshalling for EVENTLOG_OPEN_EVENTLOG. Guenther commit ef293be6cb95225f10e8062b3089dc1bbe5fd013 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 11:10:18 2008 +0100 Use pidl for _eventlog_OpenEventLogW(). Guenther commit f8a3dc350014ef08fe2d5a702dafdb5d0583ffef Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 11:08:36 2008 +0100 Re-run make idl. Guenther commit 9db324ac2a9c4767a109e136e15c35e2a89f57e2 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 11:07:41 2008 +0100 Fix IDL for eventlog_OpenEventLogW(). Guenther commit badbdf1b88b270d298d44ed6fddb0c31fbcb3717 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 10:56:16 2008 +0100 Remove unused marshalling for EVENTLOG_CLEAR_EVENTLOG. Guenther commit 26eadadbf628f4d3aa4cd0ab4b55d47dc79c80ba Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 10:55:14 2008 +0100 Copy inline comment for _eventlog_ClearEventLogW() from rpc_parse to rpc_server. Guenther commit 70a4ba798cdd3b4daa01c2f6aa693de34288c8b9 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 10:53:59 2008 +0100 Use pidl for _eventlog_ClearEventLogW(). Guenther commit f837fff80ef369133761f7a33a616fd4721c5a68 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 10:45:50 2008 +0100 Remove unused marshalling for EVENTLOG_GET_OLDEST_ENTRY. Guenther commit a6a5d99f5206dc4b94f3d0ecceb5198d66afdf41 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 10:44:51 2008 +0100 Use pidl for _eventlog_GetOldestRecord(). Guenther commit ff6fb5de32ee81efc88d8c15f13c302e21790eee Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 10:44:00 2008 +0100 Re-run make idl. Guenther commit a939271b0758731debfb76eb512ccc1c8270e1fb Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 10:42:33 2008 +0100 Fill in IDL eventlog_GetOldestRecord() based on samba3 rpc. Guenther commit cfb4c6d82f84eb3a434f8a3e07b8281636f192db Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 10:15:19 2008 +0100 Re-run make idl. Guenther commit 382de7c06092805738f40df69f6c1f71858f6730 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 10:14:08 2008 +0100 Fix IDL for eventlog_ClearEventLogW. As of existing samba3 rpc code, unknown is backupfile. Guenther commit 0c8e0916d7a7a403255c814536f1ebde3c5c9905 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 10:12:08 2008 +0100 Remove unused marshalling for EVENTLOG_GET_NUM_RECORDS. Guenther commit af30a6373e7d85df4bb99e153588498938ddc368 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 10:10:12 2008 +0100 Use pidl for _eventlog_GetNumRecords(). Guenther
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1828-gd1310fc
The branch, v3-2-test has been updated via d1310fc7d96676d4ab2793e70cc1c1c2aaab967c (commit) via 653d80952a078403f89ad5a3ac66c403e5a86f2f (commit) via 6cd231d9f04efb116c8d7f9f4500ba7b1da7ffc5 (commit) via 7fadf880b2e491862d81f93b7909e5f078ad4636 (commit) via a301adcbc6034e88162e59b1fa43f2ad14472f0a (commit) via 4e7213b0f2c92ea875a992c586df4bdcb6353340 (commit) from 81a1f8e47fa2c47137ce124b5022fab969e74b0d (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit d1310fc7d96676d4ab2793e70cc1c1c2aaab967c Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 13:45:49 2008 +0100 Remove pointer_default_top(unique) from spoolss.idl and rerun make idl. Guenther commit 653d80952a078403f89ad5a3ac66c403e5a86f2f Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 13:40:04 2008 +0100 Remove pointer_default_top(unique) from srvsvc.idl and rerun make idl. Guenther commit 6cd231d9f04efb116c8d7f9f4500ba7b1da7ffc5 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 13:27:19 2008 +0100 Remove pointer_default_top(unique) from svcctl.idl and rerun make idl. Guenther commit 7fadf880b2e491862d81f93b7909e5f078ad4636 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 13:07:14 2008 +0100 Remove pointer_default_top(unique) from winreg.idl and rerun make idl. Guenther commit a301adcbc6034e88162e59b1fa43f2ad14472f0a Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 12:58:07 2008 +0100 Remove pointer_default_top(unique) from wkssvc.idl and rerun make idl. Guenther commit 4e7213b0f2c92ea875a992c586df4bdcb6353340 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 12:52:33 2008 +0100 Remove pointer_default_top(unique) from samr.idl and rerun make idl. Guenther --- Summary of changes: source/librpc/idl/samr.idl| 61 +- source/librpc/idl/spoolss.idl |1 - source/librpc/idl/srvsvc.idl | 133 +++--- source/librpc/idl/svcctl.idl | 99 ++-- source/librpc/idl/winreg.idl | 43 ++-- source/librpc/idl/wkssvc.idl | 143 - 6 files changed, 237 insertions(+), 243 deletions(-) Changeset truncated at 500 lines: diff --git a/source/librpc/idl/samr.idl b/source/librpc/idl/samr.idl index 3a3eb26..9d659af 100644 --- a/source/librpc/idl/samr.idl +++ b/source/librpc/idl/samr.idl @@ -12,8 +12,7 @@ import misc.idl, lsa.idl, security.idl; [ uuid(12345778-1234-abcd-ef00-0123456789ac), version(1.0), endpoint(ncacn_np:[\\pipe\\samr],ncacn_ip_tcp:, ncalrpc:), - pointer_default(unique), - pointer_default_top(unique) + pointer_default(unique) ] interface samr { typedef bitmap security_secinfo security_secinfo; @@ -98,7 +97,7 @@ import misc.idl, lsa.idl, security.idl; /* Function: 0x00 */ NTSTATUS samr_Connect ( /* notice the lack of [string] */ - [in] uint16 *system_name, + [in,unique] uint16 *system_name, [in] samr_ConnectAccessMask access_mask, [out,ref] policy_handle *connect_handle ); @@ -349,7 +348,7 @@ import misc.idl, lsa.idl, security.idl; [in,out,ref] uint32 *resume_handle, [in] samr_AcctFlags acct_flags, [in] uint32 max_size, - [out] samr_SamArray *sam, + [out,unique] samr_SamArray *sam, [out,ref] uint32 *num_entries ); @@ -887,15 +886,15 @@ import misc.idl, lsa.idl, security.idl; NTSTATUS samr_ChangePasswordUser( [in,ref]policy_handle *user_handle, [in]boolean8 lm_present, - [in]samr_Password *old_lm_crypted, - [in]samr_Password *new_lm_crypted, + [in,unique] samr_Password *old_lm_crypted, + [in,unique] samr_Password *new_lm_crypted, [in]boolean8 nt_present, - [in]samr_Password *old_nt_crypted, - [in]samr_Password *new_nt_crypted, + [in,unique] samr_Password *old_nt_crypted, + [in,unique] samr_Password *new_nt_crypted, [in]boolean8 cross1_present, - [in]samr_Password *nt_cross, + [in,unique] samr_Password *nt_cross, [in]boolean8 cross2_present, - [in]samr_Password *lm_cross + [in,unique] samr_Password *lm_cross ); // @@ -1155,35 +1154,35 @@ import misc.idl, lsa.idl, security.idl; /*
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1832-gbe57475
The branch, v3-2-test has been updated via be57475cd1d5db60481e74000dc7d65002742376 (commit) via 617928cbaeb76cf40245f95d02b48aaa0e18d69a (commit) via 3cbc7c19eba68427160e09e865edc85c7fe38413 (commit) from 3865a7e6a19630f8a90140accf4a6e93d4f70e6c (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit be57475cd1d5db60481e74000dc7d65002742376 Author: Michael Adam [EMAIL PROTECTED] Date: Mon Feb 4 17:25:06 2008 +0100 Use the proper boolean constants in wbinfo.c . Michael commit 617928cbaeb76cf40245f95d02b48aaa0e18d69a Author: Michael Adam [EMAIL PROTECTED] Date: Mon Feb 4 17:23:28 2008 +0100 Reformatting: Fix spacing in wbinfo.c . This fixes mixed tabs/spaces and trailing whitespaces I just ran across. Michael commit 3cbc7c19eba68427160e09e865edc85c7fe38413 Author: Michael Adam [EMAIL PROTECTED] Date: Mon Feb 4 17:07:54 2008 +0100 Prevent a segfault when wbinfo -a is called without password. wbcAuthenticateUser segfaults when passed NULL as password. This only changes the caller in wbinfo.c to pass an empty password string to wbcAuthenticateUser(). Michael --- Summary of changes: source/nsswitch/wbinfo.c | 321 +++--- 1 files changed, 161 insertions(+), 160 deletions(-) Changeset truncated at 500 lines: diff --git a/source/nsswitch/wbinfo.c b/source/nsswitch/wbinfo.c index 3410668..106163b 100644 --- a/source/nsswitch/wbinfo.c +++ b/source/nsswitch/wbinfo.c @@ -53,7 +53,7 @@ static char winbind_separator_int(bool strict) } sep = response.data.info.winbind_separator; - got_sep = True; + got_sep = true; if (!sep) { d_fprintf(stderr, winbind separator was NULL!\n); @@ -69,27 +69,27 @@ static char winbind_separator_int(bool strict) static char winbind_separator(void) { - return winbind_separator_int(False); + return winbind_separator_int(false); } static const char *get_winbind_domain(void) { - wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE; + wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE; struct wbcDomainInfo *dinfo = NULL; static fstring winbind_domain; ZERO_STRUCT(dinfo); - + wbc_status = wbcDomainInfo(., dinfo); if (!WBC_ERROR_IS_OK(wbc_status)) { d_fprintf(stderr, could not obtain winbind domain name!\n); - + /* HACK: (this module should not call lp_ funtions) */ return lp_workgroup(); } - fstrcpy(winbind_domain, dinfo-short_name); + fstrcpy(winbind_domain, dinfo-short_name); wbcFreeMemory(dinfo); @@ -99,7 +99,7 @@ static const char *get_winbind_domain(void) /* Copy of parse_domain_user from winbindd_util.c. Parse a string of the form DOMAIN/user into a domain and a user */ -static bool parse_wbinfo_domain_user(const char *domuser, fstring domain, +static bool parse_wbinfo_domain_user(const char *domuser, fstring domain, fstring user) { @@ -110,20 +110,20 @@ static bool parse_wbinfo_domain_user(const char *domuser, fstring domain, if ((p = strchr(domuser, '@')) != NULL) { fstrcpy(domain, ); fstrcpy(user, domuser); - return True; + return true; } - + fstrcpy(user, domuser); fstrcpy(domain, get_winbind_domain()); - return True; + return true; } - + fstrcpy(user, p+1); fstrcpy(domain, domuser); domain[PTR_DIFF(p, domuser)] = 0; strupper_m(domain); - return True; + return true; } /* pull pwent info for a given user */ @@ -131,13 +131,13 @@ static bool parse_wbinfo_domain_user(const char *domuser, fstring domain, static bool wbinfo_get_userinfo(char *user) { wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE; - struct passwd *pwd = NULL; + struct passwd *pwd = NULL; wbc_status = wbcGetpwnam(user, pwd); if (!WBC_ERROR_IS_OK(wbc_status)) { return false; } - + d_printf(%s:%s:%d:%d:%s:%s:%s\n, pwd-pw_name, pwd-pw_passwd, @@ -146,7 +146,7 @@ static bool wbinfo_get_userinfo(char *user) pwd-pw_gecos, pwd-pw_dir, pwd-pw_shell); - + return true; } @@ -154,13 +154,13 @@ static bool wbinfo_get_userinfo(char *user) static bool wbinfo_get_uidinfo(int uid) { wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE; - struct passwd *pwd = NULL; + struct passwd *pwd = NULL;
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1846-g83d1b74
The branch, v3-2-test has been updated via 83d1b7429ea902742c9c1f42fca57fb1757fc2b4 (commit) via e2635fa1e4785104174825c7ff063bd216060cb8 (commit) via 4f923d970eac5841d1f67dbb8fc0c1dd1fda95a3 (commit) via a65c89c80627280247e25b695eec081386cc4fb6 (commit) via 4e1496894ba286aa42ff0a49d975d54c5ee04b2d (commit) via 94d6536809266ea3a12cd255fb7f2f7a70c42da3 (commit) from e7539730d003e9bdc0bf8208d1d426082dad84a5 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 83d1b7429ea902742c9c1f42fca57fb1757fc2b4 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 18:26:18 2008 +0100 Remove unused marshalling for SAMR_ADD_GROUPMEM. Guenther commit e2635fa1e4785104174825c7ff063bd216060cb8 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 18:45:07 2008 +0100 Use rpccli_samr_AddGroupMember() in net. Guenther commit 4f923d970eac5841d1f67dbb8fc0c1dd1fda95a3 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 18:36:44 2008 +0100 Use pidl for _samr_AddGroupMember(). Guenther commit a65c89c80627280247e25b695eec081386cc4fb6 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 18:16:30 2008 +0100 Remove unused marshalling for SAMR_DEL_GROUPMEM. Guenther commit 4e1496894ba286aa42ff0a49d975d54c5ee04b2d Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 18:13:07 2008 +0100 Use rpccli_samr_DeleteGroupMember() in net. Guenther commit 94d6536809266ea3a12cd255fb7f2f7a70c42da3 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 18:09:35 2008 +0100 Use pidl for _samr_DeleteGroupMember(). Guenther --- Summary of changes: source/include/rpc_samr.h | 36 -- source/rpc_client/cli_samr.c| 66 - source/rpc_parse/parse_samr.c | 147 --- source/rpc_server/srv_samr.c| 46 + source/rpc_server/srv_samr_nt.c | 61 ++-- source/utils/net_rpc.c | 13 +++- 6 files changed, 36 insertions(+), 333 deletions(-) Changeset truncated at 500 lines: diff --git a/source/include/rpc_samr.h b/source/include/rpc_samr.h index 227f709..432f900 100644 --- a/source/include/rpc_samr.h +++ b/source/include/rpc_samr.h @@ -1411,42 +1411,6 @@ typedef struct r_samr_query_groupmem_info } SAMR_R_QUERY_GROUPMEM; -/* SAMR_Q_DEL_GROUPMEM - probably an del group member */ -typedef struct q_samr_del_group_mem_info -{ - POLICY_HND pol; /* policy handle */ - uint32 rid; /* rid */ - -} SAMR_Q_DEL_GROUPMEM; - - -/* SAMR_R_DEL_GROUPMEM - probably an del group member */ -typedef struct r_samr_del_group_mem_info -{ - NTSTATUS status; /* return status */ - -} SAMR_R_DEL_GROUPMEM; - - -/* SAMR_Q_ADD_GROUPMEM - probably an add group member */ -typedef struct q_samr_add_group_mem_info -{ - POLICY_HND pol; /* policy handle */ - - uint32 rid; /* rid */ - uint32 unknown; /* 0x 0005 */ - -} SAMR_Q_ADD_GROUPMEM; - - -/* SAMR_R_ADD_GROUPMEM - probably an add group member */ -typedef struct r_samr_add_group_mem_info -{ - NTSTATUS status; /* return status */ - -} SAMR_R_ADD_GROUPMEM; - - /* SAMR_Q_QUERY_ALIASMEM - query alias members */ typedef struct q_samr_query_aliasmem_info { diff --git a/source/rpc_client/cli_samr.c b/source/rpc_client/cli_samr.c index 72e6fd3..1534b14 100644 --- a/source/rpc_client/cli_samr.c +++ b/source/rpc_client/cli_samr.c @@ -95,72 +95,6 @@ NTSTATUS rpccli_samr_connect4(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, return result; } -/* Add a domain group member */ - -NTSTATUS rpccli_samr_add_groupmem(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - POLICY_HND *group_pol, uint32 rid) -{ - prs_struct qbuf, rbuf; - SAMR_Q_ADD_GROUPMEM q; - SAMR_R_ADD_GROUPMEM r; - NTSTATUS result = NT_STATUS_UNSUCCESSFUL; - - DEBUG(10,(cli_samr_add_groupmem\n)); - - ZERO_STRUCT(q); - ZERO_STRUCT(r); - - /* Marshall data and send request */ - - init_samr_q_add_groupmem(q, group_pol, rid); - - CLI_DO_RPC(cli, mem_ctx, PI_SAMR, SAMR_ADD_GROUPMEM, - q, r, - qbuf, rbuf, - samr_io_q_add_groupmem, - samr_io_r_add_groupmem, - NT_STATUS_UNSUCCESSFUL); - - /* Return output parameters */ - - result = r.status; - - return result; -} - -/* Delete a domain group member */ - -NTSTATUS rpccli_samr_del_groupmem(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - POLICY_HND *group_pol, uint32 rid) -{ - prs_struct qbuf, rbuf; - SAMR_Q_DEL_GROUPMEM q; - SAMR_R_DEL_GROUPMEM r; -
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1849-g86d0032
The branch, v3-2-test has been updated via 86d00328aead337026a1550ee888ee3f646f62b2 (commit) via 7e0e74ff541167cb3862e544b7e964006d2eb93c (commit) via c05b5709e4943345f5d2a35fad5155c79650686d (commit) from 83d1b7429ea902742c9c1f42fca57fb1757fc2b4 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 86d00328aead337026a1550ee888ee3f646f62b2 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 19:17:41 2008 +0100 Remove unused marshalling for SAMR_CONNECT_4. Guenther commit 7e0e74ff541167cb3862e544b7e964006d2eb93c Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 19:13:57 2008 +0100 Add note about unknown in samr_Connect4 (from Samba3 rpc_parse). Guenther commit c05b5709e4943345f5d2a35fad5155c79650686d Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 19:13:15 2008 +0100 Use rpccli_samr_Connect4() in rpcclient. Guenther --- Summary of changes: source/include/rpc_samr.h | 13 --- source/librpc/idl/samr.idl|1 + source/rpc_client/cli_samr.c | 36 --- source/rpc_parse/parse_samr.c | 76 - source/rpcclient/cmd_samr.c |8 +++- 5 files changed, 7 insertions(+), 127 deletions(-) Changeset truncated at 500 lines: diff --git a/source/include/rpc_samr.h b/source/include/rpc_samr.h index 432f900..76e359a 100644 --- a/source/include/rpc_samr.h +++ b/source/include/rpc_samr.h @@ -1488,19 +1488,6 @@ typedef struct r_samr_connect_info } SAMR_R_CONNECT; -/* SAMR_Q_CONNECT4 */ -typedef struct q_samr_connect4_info -{ - uint32 ptr_srv_name; /* pointer to server name */ - UNISTR2 uni_srv_name; - - uint32 unk_0; /* possible server name type, 1 for IP num, 2 for name */ - uint32 access_mask; -} SAMR_Q_CONNECT4; - -/* SAMR_R_CONNECT4 - same format as connect */ -typedef struct r_samr_connect_info SAMR_R_CONNECT4; - /* SAMR_ENC_PASSWD */ typedef struct enc_passwd_info { diff --git a/source/librpc/idl/samr.idl b/source/librpc/idl/samr.idl index 9d659af..8f1db59 100644 --- a/source/librpc/idl/samr.idl +++ b/source/librpc/idl/samr.idl @@ -1229,6 +1229,7 @@ import misc.idl, lsa.idl, security.idl; // /* Function0x3e */ + /* Only value we've seen for unknown is 2, possibly an address type ? */ NTSTATUS samr_Connect4( [in,unique,string,charset(UTF16)] uint16 *system_name, [in] uint32 unknown, diff --git a/source/rpc_client/cli_samr.c b/source/rpc_client/cli_samr.c index 1534b14..9970c8d 100644 --- a/source/rpc_client/cli_samr.c +++ b/source/rpc_client/cli_samr.c @@ -59,42 +59,6 @@ NTSTATUS rpccli_samr_connect(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, return result; } -/* Connect to SAMR database */ - -NTSTATUS rpccli_samr_connect4(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, - uint32 access_mask, POLICY_HND *connect_pol) -{ - prs_struct qbuf, rbuf; - SAMR_Q_CONNECT4 q; - SAMR_R_CONNECT4 r; - NTSTATUS result = NT_STATUS_UNSUCCESSFUL; - - ZERO_STRUCT(q); - ZERO_STRUCT(r); - - /* Marshall data and send request */ - - init_samr_q_connect4(q, cli-cli-desthost, access_mask); - - CLI_DO_RPC(cli, mem_ctx, PI_SAMR, SAMR_CONNECT4, - q, r, - qbuf, rbuf, - samr_io_q_connect4, - samr_io_r_connect4, - NT_STATUS_UNSUCCESSFUL); - - /* Return output parameters */ - - if (NT_STATUS_IS_OK(result = r.status)) { - *connect_pol = r.connect_pol; -#ifdef __INSURE__ - connect_pol-marker = malloc(1); -#endif - } - - return result; -} - /* Query user info */ NTSTATUS rpccli_samr_query_userinfo(struct rpc_pipe_client *cli, diff --git a/source/rpc_parse/parse_samr.c b/source/rpc_parse/parse_samr.c index 97f70f6..cb9ec5e 100644 --- a/source/rpc_parse/parse_samr.c +++ b/source/rpc_parse/parse_samr.c @@ -5995,82 +5995,6 @@ bool samr_io_r_connect(const char *desc, SAMR_R_CONNECT * r_u, } /*** -inits a SAMR_Q_CONNECT4 structure. -/ - -void init_samr_q_connect4(SAMR_Q_CONNECT4 * q_u, - char *srv_name, uint32 access_mask) -{ - DEBUG(5, (init_samr_q_connect4\n)); - - /* make PDC server name \\server */ - q_u-ptr_srv_name = (srv_name != NULL *srv_name) ? 1 : 0; - init_unistr2(q_u-uni_srv_name, srv_name, UNI_STR_TERMINATE); - - /* Only value we've seen, possibly an address type ? */ - q_u-unk_0 = 2; - - /* example values: 0x 0002 */ -
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1829-g3865a7e
The branch, v3-2-test has been updated via 3865a7e6a19630f8a90140accf4a6e93d4f70e6c (commit) from d1310fc7d96676d4ab2793e70cc1c1c2aaab967c (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 3865a7e6a19630f8a90140accf4a6e93d4f70e6c Author: Michael Adam [EMAIL PROTECTED] Date: Mon Jan 28 17:47:41 2008 +0100 Fix a typo in a debug message. Michael --- Summary of changes: source/winbindd/winbindd_pam.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/winbindd/winbindd_pam.c b/source/winbindd/winbindd_pam.c index 14b1621..9435a32 100644 --- a/source/winbindd/winbindd_pam.c +++ b/source/winbindd/winbindd_pam.c @@ -324,7 +324,7 @@ struct winbindd_domain *find_auth_domain(struct winbindd_cli_state *state, if (IS_DC) { domain = find_domain_from_name_noinit(domain_name); if (domain == NULL) { - DEBUG(3, (Authentication for domain [%s] refused + DEBUG(3, (Authentication for domain [%s] refused as it is not a trusted domain\n, domain_name)); } -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha2-627-g145d6c8
The branch, v4-0-test has been updated via 145d6c8ea0eafc69cdeca45fbf296148b890133d (commit) via c472935c984016f0a26ef7851b6472d45b4ac510 (commit) via 14ee13c1fe2d17ebfd031a1cd2fbf2a9b72cdfc9 (commit) via e4b12aa9a44210a7d76a75db6a1fa4fecaf3e76f (commit) via f195093a86e1359572aacd7411e4a0cb8a2af0cf (commit) via 7561e8fa51bf616916a1f87e16e971de29290dcf (commit) via f2227b3bb8dc74788614cc7eb9b84475f0a4a949 (commit) via 6d20a2f3f98217ba78e905d0f85dd91cee218238 (commit) from 35313c0aa3fbfdd943edfb7bafd7645b1a0c54e9 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test - Log - commit 145d6c8ea0eafc69cdeca45fbf296148b890133d Author: Stefan Metzmacher [EMAIL PROTECTED] Date: Sat Feb 2 10:18:33 2008 +0100 pidl: remove 'pointer_default_top()' support metze commit c472935c984016f0a26ef7851b6472d45b4ac510 Author: Stefan Metzmacher [EMAIL PROTECTED] Date: Fri Feb 1 22:25:32 2008 +0100 spoolss.idl: don't use pointer_default_top() and specify unique explizit Note: this doesn't change the generated output! metze commit 14ee13c1fe2d17ebfd031a1cd2fbf2a9b72cdfc9 Author: Stefan Metzmacher [EMAIL PROTECTED] Date: Fri Feb 1 22:11:43 2008 +0100 samr.idl: don't use pointer_default_top() and specify unique explizit Note: this doesn't change the generated output! metze commit e4b12aa9a44210a7d76a75db6a1fa4fecaf3e76f Author: Stefan Metzmacher [EMAIL PROTECTED] Date: Fri Feb 1 21:53:41 2008 +0100 netlogon.idl: don't use pointer_default_top() and specify unique explizit Note: this doesn't change the generated output! metze commit f195093a86e1359572aacd7411e4a0cb8a2af0cf Author: Stefan Metzmacher [EMAIL PROTECTED] Date: Fri Feb 1 21:35:52 2008 +0100 winreg.idl: don't use pointer_default_top() and specify unique explizit Note: this doesn't change the generated output! metze commit 7561e8fa51bf616916a1f87e16e971de29290dcf Author: Stefan Metzmacher [EMAIL PROTECTED] Date: Fri Feb 1 21:24:54 2008 +0100 svcctl.idl: don't use pointer_default_top() and specify unique explizit Note: this doesn't change the generated output! metze commit f2227b3bb8dc74788614cc7eb9b84475f0a4a949 Author: Stefan Metzmacher [EMAIL PROTECTED] Date: Fri Feb 1 21:22:39 2008 +0100 wkssvc.idl: don't use pointer_default_top() and specify unique explizit Note: this doesn't change the generated output! metze commit 6d20a2f3f98217ba78e905d0f85dd91cee218238 Author: Stefan Metzmacher [EMAIL PROTECTED] Date: Fri Feb 1 20:41:26 2008 +0100 srvsvc.idl: don't use pointer_default_top() and specify unique explizit Note: this doesn't change the generated output! metze --- Summary of changes: source/librpc/idl/netlogon.idl | 155 +- source/librpc/idl/samr.idl | 95 ++--- source/librpc/idl/spoolss.idl| 135 +++--- source/librpc/idl/srvsvc.idl | 145 source/librpc/idl/svcctl.idl | 99 +++--- source/librpc/idl/winreg.idl | 43 +- source/librpc/idl/wkssvc.idl | 143 source/pidl/lib/Parse/Pidl/Compat.pm |4 - source/pidl/lib/Parse/Pidl/NDR.pm|9 +-- source/pidl/tests/ndr_compat.pl |6 -- 10 files changed, 405 insertions(+), 429 deletions(-) Changeset truncated at 500 lines: diff --git a/source/librpc/idl/netlogon.idl b/source/librpc/idl/netlogon.idl index 6df8bfd..d06c2ac 100644 --- a/source/librpc/idl/netlogon.idl +++ b/source/librpc/idl/netlogon.idl @@ -12,8 +12,7 @@ import lsa.idl, samr.idl, security.idl, nbt.idl; uuid(12345678-1234-abcd-ef00-01234567cffb), version(1.0), endpoint(ncacn_np:[\\pipe\\netlogon],ncacn_ip_tcp:,ncalrpc:), - pointer_default(unique), - pointer_default_top(unique) + pointer_default(unique) ] interface netlogon @@ -44,10 +43,10 @@ interface netlogon } netr_UasInfo; WERROR netr_LogonUasLogon( - [in] [string,charset(UTF16)] uint16 *server_name, + [in,unique] [string,charset(UTF16)] uint16 *server_name, [in] [string,charset(UTF16)] uint16 account_name[], [in] [string,charset(UTF16)] uint16 workstation[], - [out] netr_UasInfo *info + [out,unique] netr_UasInfo *info ); @@ -60,7 +59,7 @@ interface netlogon } netr_UasLogoffInfo; WERROR netr_LogonUasLogoff( - [in] [string,charset(UTF16)] uint16 *server_name, + [in,unique] [string,charset(UTF16)] uint16 *server_name, [in] [string,charset(UTF16)] uint16
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1833-g92a9c6c
The branch, v3-2-test has been updated via 92a9c6c56fa90aead3b7f4a07bf4f3973ba23555 (commit) from be57475cd1d5db60481e74000dc7d65002742376 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 92a9c6c56fa90aead3b7f4a07bf4f3973ba23555 Author: Kai Blin [EMAIL PROTECTED] Date: Mon Feb 4 16:16:59 2008 +0100 popt: Use SMB_CONF_PATH environment var if no other configfile is set. Now --configfile (or -s) will have precedence, if that's not given SMB_CONF_PATH is checked, otherwise the $(CONFIGDIR)/smb.conf default value is used. Thanks to Michael for his comments. --- Summary of changes: source/dynconfig.c |5 + source/include/dynconfig.h | 16 source/lib/popt_common.c | 15 --- 3 files changed, 33 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/source/dynconfig.c b/source/dynconfig.c index ab0dd48..57008ec 100644 --- a/source/dynconfig.c +++ b/source/dynconfig.c @@ -64,6 +64,11 @@ static char *dyn_##name; \ }\ dyn_##name = SMB_STRDUP(newpath);\ return dyn_##name;\ +}\ +\ + bool is_default_dyn_##name(void) \ +{\ + return (dyn_##name == NULL);\ } DEFINE_DYN_CONFIG_PARAM(SBINDIR) diff --git a/source/include/dynconfig.h b/source/include/dynconfig.h index bb7e2c2..cba7164 100644 --- a/source/include/dynconfig.h +++ b/source/include/dynconfig.h @@ -41,42 +41,58 @@ extern char dyn_PRIVATE_DIR[1024]; const char *get_dyn_SBINDIR(void); const char *set_dyn_SBINDIR(const char *newpath); +bool is_default_dyn_SBINDIR(void); const char *get_dyn_BINDIR(void); const char *set_dyn_BINDIR(const char *newpath); +bool is_default_dyn_BINDIR(void); const char *get_dyn_SWATDIR(void); const char *set_dyn_SWATDIR(const char *newpath); +bool is_default_dyn_SWATDIR(void); const char *get_dyn_CONFIGFILE(void); const char *set_dyn_CONFIGFILE(const char *newpath); +bool is_default_dyn_CONFIGFILE(void); const char *get_dyn_dyn_LOGFILEBASE(void); const char *set_dyn_dyn_LOGFILEBASE(const char *newpath); +bool is_default_dyn_LOGFILEBASE(void); const char *get_dyn_LMHOSTSFILE(void); const char *set_dyn_LMHOSTSFILE(const char *newpath); +bool is_default_dyn_LOGFILEBASE(void); const char *get_dyn_CODEPAGEDIR(void); const char *set_dyn_CODEPAGEDIR(const char *newpath); +bool is_default_dyn_CODEPAGEDIR(void); const char *get_dyn_LIBDIR(void); const char *set_dyn_LIBDIR(const char *newpath); +bool is_default_dyn_LIBDIR(void); const char *get_dyn_SHLIBEXT(void); const char *set_dyn_SHLIBEXT(const char *newpath); +bool is_default_dyn_SHLIBEXT(void); const char *get_dyn_LOCKDIR(void); const char *set_dyn_LOCKDIR(const char *newpath); +bool is_default_dyn_LOCKDIR(void); const char *get_dyn_PIDDIR(void); const char *set_dyn_PIDDIR(const char *newpath); +bool is_default_dyn_PIDDIR(void); const char *get_dyn_SMB_PASSWD_FILE(void); const char *set_dyn_SMB_PASSWD_FILE(const char *newpath); +bool is_default_dyn_SMB_PASSWD_FILE(void); const char *get_dyn_PRIVATE_DIR(void); const char *set_dyn_PRIVATE_DIR(const char *newpath); +bool is_default_dyn_PRIVATE_DIR(void); const char *get_dyn_STATEDIR(void); +bool is_default_dyn_STATEDIR(void); + const char *get_dyn_CACHEDIR(void); +bool is_default_dyn_CACHEDIR(bool); diff --git a/source/lib/popt_common.c b/source/lib/popt_common.c index 5a9d39d..7f7d23f 100644 --- a/source/lib/popt_common.c +++ b/source/lib/popt_common.c @@ -71,10 +71,19 @@ static void popt_common_callback(poptContext con, } if (reason == POPT_CALLBACK_REASON_POST) { - if (!PrintSambaVersionString) return; - printf( Version %s\n, SAMBA_VERSION_STRING); - exit(0); + if (PrintSambaVersionString) { + printf( Version %s\n, SAMBA_VERSION_STRING); + exit(0); + } + + if (is_default_dyn_CONFIGFILE()) { + if(getenv(SMB_CONF_PATH)) { + set_dyn_CONFIGFILE(getenv(SMB_CONF_PATH)); + } + } + + /* Further 'every Samba program must do this' hooks here. */ return; } -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1822-g81a1f8e
The branch, v3-2-test has been updated via 81a1f8e47fa2c47137ce124b5022fab969e74b0d (commit) via 3b8d323e62798836171d55f7b1c3ffa8cd292d50 (commit) via 675a17877c3086816e53d87d264adf1fa60d9700 (commit) from c2e786d4e2cb53b5a8be45278f221acaa7f5122a (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 81a1f8e47fa2c47137ce124b5022fab969e74b0d Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 12:29:07 2008 +0100 Remove pointer_default_top(unique) from eventlog.idl and rerun make idl. Guenther commit 3b8d323e62798836171d55f7b1c3ffa8cd292d50 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 12:28:20 2008 +0100 Remove pointer_default_top(unique) from netlogon.idl and rerun make idl. Guenther commit 675a17877c3086816e53d87d264adf1fa60d9700 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 11:52:30 2008 +0100 Forgot to add this hunk in ndr_pull_eventlog_Record from an earlier commit. Guenther --- Summary of changes: source/librpc/gen_ndr/ndr_eventlog.c |4 +- source/librpc/idl/eventlog.idl |1 - source/librpc/idl/netlogon.idl | 129 +- 3 files changed, 66 insertions(+), 68 deletions(-) Changeset truncated at 500 lines: diff --git a/source/librpc/gen_ndr/ndr_eventlog.c b/source/librpc/gen_ndr/ndr_eventlog.c index 442c40b..c6a77c5 100644 --- a/source/librpc/gen_ndr/ndr_eventlog.c +++ b/source/librpc/gen_ndr/ndr_eventlog.c @@ -128,9 +128,9 @@ _PUBLIC_ enum ndr_err_code ndr_pull_eventlog_Record(struct ndr_pull *ndr, int nd { uint32_t _flags_save_string = ndr-flags; ndr_set_flags(ndr-flags, LIBNDR_FLAG_STR_NULLTERM); - NDR_PULL_ALLOC_N(ndr, *r-strings, r-num_of_strings); + NDR_PULL_ALLOC_N(ndr, r-strings, r-num_of_strings); _mem_save_strings_0 = NDR_PULL_GET_MEM_CTX(ndr); - NDR_PULL_SET_MEM_CTX(ndr, *r-strings, 0); + NDR_PULL_SET_MEM_CTX(ndr, r-strings, 0); for (cntr_strings_0 = 0; cntr_strings_0 r-num_of_strings; cntr_strings_0++) { NDR_CHECK(ndr_pull_string(ndr, NDR_SCALARS, r-strings[cntr_strings_0])); } diff --git a/source/librpc/idl/eventlog.idl b/source/librpc/idl/eventlog.idl index 9fed2a4..18b1a0e 100644 --- a/source/librpc/idl/eventlog.idl +++ b/source/librpc/idl/eventlog.idl @@ -8,7 +8,6 @@ import lsa.idl, security.idl; [ uuid(82273fdc-e32a-18c3-3f78-827929dc23ea), version(0.0), - pointer_default(unique), helpstring(Event Logger) ] interface eventlog { diff --git a/source/librpc/idl/netlogon.idl b/source/librpc/idl/netlogon.idl index 4eb1bff..5b84452 100644 --- a/source/librpc/idl/netlogon.idl +++ b/source/librpc/idl/netlogon.idl @@ -12,8 +12,7 @@ import lsa.idl, samr.idl, security.idl; uuid(12345678-1234-abcd-ef00-01234567cffb), version(1.0), endpoint(ncacn_np:[\\pipe\\netlogon],ncacn_ip_tcp:,ncalrpc:), - pointer_default(unique), - pointer_default_top(unique) + pointer_default(unique) ] interface netlogon @@ -44,7 +43,7 @@ interface netlogon } netr_UasInfo; WERROR netr_LogonUasLogon( - [in] [string,charset(UTF16)] uint16 *server_name, + [in,unique] [string,charset(UTF16)] uint16 *server_name, [in] [string,charset(UTF16)] uint16 account_name[], [in] [string,charset(UTF16)] uint16 workstation[], [out,ref] netr_UasInfo *info @@ -60,7 +59,7 @@ interface netlogon } netr_UasLogoffInfo; WERROR netr_LogonUasLogoff( - [in] [string,charset(UTF16)] uint16 *server_name, + [in,unique] [string,charset(UTF16)] uint16 *server_name, [in] [string,charset(UTF16)] uint16 account_name[], [in] [string,charset(UTF16)] uint16 workstation[], [out,ref] netr_UasLogoffInfo *info @@ -241,10 +240,10 @@ interface netlogon } netr_Authenticator; NTSTATUS netr_LogonSamLogon( - [in] [string,charset(UTF16)] uint16 *server_name, - [in] [string,charset(UTF16)] uint16 *computer_name, - [in] netr_Authenticator *credential, - [in][out] netr_Authenticator *return_authenticator, + [in,unique] [string,charset(UTF16)] uint16 *server_name, + [in,unique] [string,charset(UTF16)] uint16 *computer_name, + [in,unique] netr_Authenticator *credential, + [in,out,unique] netr_Authenticator *return_authenticator, [in] uint16 logon_level, [in] [switch_is(logon_level)] netr_LogonLevel logon,
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1840-ge753973
The branch, v3-2-test has been updated via e7539730d003e9bdc0bf8208d1d426082dad84a5 (commit) from d2d91dd4968dbd1349bdb973e2679f68c608c2ed (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit e7539730d003e9bdc0bf8208d1d426082dad84a5 Author: Kai Blin [EMAIL PROTECTED] Date: Mon Feb 4 17:58:31 2008 +0100 dynconfig: Add missing prototypes and fix typoed ones. Jeremy, please check. --- Summary of changes: source/include/dynconfig.h |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) Changeset truncated at 500 lines: diff --git a/source/include/dynconfig.h b/source/include/dynconfig.h index cba7164..fac027c 100644 --- a/source/include/dynconfig.h +++ b/source/include/dynconfig.h @@ -55,8 +55,8 @@ const char *get_dyn_CONFIGFILE(void); const char *set_dyn_CONFIGFILE(const char *newpath); bool is_default_dyn_CONFIGFILE(void); -const char *get_dyn_dyn_LOGFILEBASE(void); -const char *set_dyn_dyn_LOGFILEBASE(const char *newpath); +const char *get_dyn_LOGFILEBASE(void); +const char *set_dyn_LOGFILEBASE(const char *newpath); bool is_default_dyn_LOGFILEBASE(void); const char *get_dyn_LMHOSTSFILE(void); @@ -92,7 +92,9 @@ const char *set_dyn_PRIVATE_DIR(const char *newpath); bool is_default_dyn_PRIVATE_DIR(void); const char *get_dyn_STATEDIR(void); +const char *set_dyn_STATEDIR(const char *newpath); bool is_default_dyn_STATEDIR(void); const char *get_dyn_CACHEDIR(void); +const char *set_dyn_CACHEDIR(const char *newpath); bool is_default_dyn_CACHEDIR(bool); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1839-gd2d91dd
The branch, v3-2-test has been updated via d2d91dd4968dbd1349bdb973e2679f68c608c2ed (commit) via ca233bfe0e5350cb699312e4937c6bd1cb43f7c1 (commit) via ceb3b6a0a3ed15c04bdb518a28167531403cc928 (commit) via 35a691c2595883a7f15d039839de11798b9a7ceb (commit) via e1cae5517f3a9a8fb8a79c440363243592565363 (commit) via 79c3aa6588c6d79a2127153dc0bcc75ecc468de8 (commit) from 92a9c6c56fa90aead3b7f4a07bf4f3973ba23555 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit d2d91dd4968dbd1349bdb973e2679f68c608c2ed Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 17:14:57 2008 +0100 Remove unused marshalling for SAMR_CONNECT5. Guenther commit ca233bfe0e5350cb699312e4937c6bd1cb43f7c1 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 17:10:16 2008 +0100 Use pidl for _samr_Connect5(). Guenther commit ceb3b6a0a3ed15c04bdb518a28167531403cc928 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 16:35:32 2008 +0100 Use pidl for _samr_Connect4(). Guenther commit 35a691c2595883a7f15d039839de11798b9a7ceb Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 16:23:46 2008 +0100 Use pidl for _samr_Connect2(). Guenther commit e1cae5517f3a9a8fb8a79c440363243592565363 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 16:20:25 2008 +0100 Remove unused marshalling for SAMR_CONNECT_ANON. Guenther commit 79c3aa6588c6d79a2127153dc0bcc75ecc468de8 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 16:17:20 2008 +0100 Use pidl for _samr_Connect(). Guenther --- Summary of changes: source/include/rpc_samr.h | 40 - source/rpc_parse/parse_samr.c | 178 --- source/rpc_server/srv_samr.c| 96 + source/rpc_server/srv_samr_nt.c | 147 +++- 4 files changed, 54 insertions(+), 407 deletions(-) Changeset truncated at 500 lines: diff --git a/source/include/rpc_samr.h b/source/include/rpc_samr.h index 4ebee5e..227f709 100644 --- a/source/include/rpc_samr.h +++ b/source/include/rpc_samr.h @@ -1505,21 +1505,6 @@ typedef struct r_samr_del_alias_mem_info } SAMR_R_DEL_ALIASMEM; -/* SAMR_Q_CONNECT_ANON - probably an open */ -typedef struct q_samr_connect_anon_info { - uint32 ptr; /* ptr? */ - uint16 unknown_0;/* Only pushed if ptr is non-zero. */ - uint32 access_mask; -} SAMR_Q_CONNECT_ANON; - -/* SAMR_R_CONNECT_ANON - probably an open */ -typedef struct r_samr_connect_anon_info -{ - POLICY_HND connect_pol; /* policy handle */ - NTSTATUS status; /* return status */ - -} SAMR_R_CONNECT_ANON; - /* SAMR_Q_CONNECT - probably an open */ typedef struct q_samr_connect_info { @@ -1552,31 +1537,6 @@ typedef struct q_samr_connect4_info /* SAMR_R_CONNECT4 - same format as connect */ typedef struct r_samr_connect_info SAMR_R_CONNECT4; -/* SAMR_Q_CONNECT5 */ -typedef struct q_samr_connect5_info -{ - uint32 ptr_srv_name; /* pointer to server name */ - UNISTR2 uni_srv_name; - uint32 access_mask; - uint32 level; - /* These following are acutally a level dependent - value. Fudge it for now. JRA */ - uint32 info1_unk1; - uint32 info1_unk2; -} SAMR_Q_CONNECT5; - -/* SAMR_R_CONNECT5 */ -typedef struct r_samr_connect_info5 -{ - uint32 level; - uint32 info1_unk1; - uint32 info1_unk2; - POLICY_HND connect_pol; /* policy handle */ - NTSTATUS status; /* return status */ - -} SAMR_R_CONNECT5; - - /* SAMR_ENC_PASSWD */ typedef struct enc_passwd_info { diff --git a/source/rpc_parse/parse_samr.c b/source/rpc_parse/parse_samr.c index 56a97b1..73b3086 100644 --- a/source/rpc_parse/parse_samr.c +++ b/source/rpc_parse/parse_samr.c @@ -6218,184 +6218,6 @@ bool samr_io_r_connect4(const char *desc, SAMR_R_CONNECT4 * r_u, } /*** -inits a SAMR_Q_CONNECT5 structure. -/ - -void init_samr_q_connect5(SAMR_Q_CONNECT5 * q_u, - char *srv_name, uint32 access_mask) -{ - DEBUG(5, (init_samr_q_connect5\n)); - - /* make PDC server name \\server */ - q_u-ptr_srv_name = (srv_name != NULL *srv_name) ? 1 : 0; - init_unistr2(q_u-uni_srv_name, srv_name, UNI_STR_TERMINATE); - - /* example values: 0x 0002 */ - q_u-access_mask = access_mask; - - q_u-level = 1; - q_u-info1_unk1 = 3; - q_u-info1_unk2 = 0; -} - -/*** -inits a SAMR_R_CONNECT5 structure.
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1852-gc9472ae
The branch, v3-2-test has been updated via c9472ae61039adf178e047d89dbcc698dfa57059 (commit) via 22e49ef2c0c9b641068ac5419b9c82fb97d3e8e6 (commit) via 5223d18ea2d891418a0f833f58cc3502cb26ce03 (commit) from 86d00328aead337026a1550ee888ee3f646f62b2 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit c9472ae61039adf178e047d89dbcc698dfa57059 Author: Volker Lendecke [EMAIL PROTECTED] Date: Mon Feb 4 19:33:56 2008 +0100 Fix valgrind errors We need to keep the names around on the search. Probably a tdb_move would do it here as well, but RPC is not the fastest thing on earth anyway... Thanks to Günther for pointing that out to me! commit 22e49ef2c0c9b641068ac5419b9c82fb97d3e8e6 Author: Volker Lendecke [EMAIL PROTECTED] Date: Mon Feb 4 16:50:09 2008 +0100 tiny simplification commit 5223d18ea2d891418a0f833f58cc3502cb26ce03 Author: Volker Lendecke [EMAIL PROTECTED] Date: Sat Feb 2 14:01:26 2008 +0100 Remove a static I very much doubt that this is called enough to justify a global. If this turns out to be a hot code path, we might reconsider :-) --- Summary of changes: source/auth/auth.c|8 +++- source/passdb/passdb.c|5 + source/passdb/pdb_smbpasswd.c | 18 +- 3 files changed, 21 insertions(+), 10 deletions(-) Changeset truncated at 500 lines: diff --git a/source/auth/auth.c b/source/auth/auth.c index 0a9ae32..e136fc2 100644 --- a/source/auth/auth.c +++ b/source/auth/auth.c @@ -508,11 +508,9 @@ NTSTATUS make_auth_context_subsystem(struct auth_context **auth_context) DEBUG(5,(Using specified auth order\n)); } - if (!NT_STATUS_IS_OK(nt_status = make_auth_context_text_list(auth_context, auth_method_list))) { - str_list_free(auth_method_list); - return nt_status; - } - + nt_status = make_auth_context_text_list(auth_context, + auth_method_list); + str_list_free(auth_method_list); return nt_status; } diff --git a/source/passdb/passdb.c b/source/passdb/passdb.c index 4228f6c..b6a4126 100644 --- a/source/passdb/passdb.c +++ b/source/passdb/passdb.c @@ -443,10 +443,7 @@ bool pdb_gethexhours(const char *p, unsigned char *hours) int algorithmic_rid_base(void) { - static int rid_offset = 0; - - if (rid_offset != 0) - return rid_offset; + int rid_offset; rid_offset = lp_algorithmic_rid_base(); diff --git a/source/passdb/pdb_smbpasswd.c b/source/passdb/pdb_smbpasswd.c index 6cf54fb..70944a9 100644 --- a/source/passdb/pdb_smbpasswd.c +++ b/source/passdb/pdb_smbpasswd.c @@ -1559,8 +1559,24 @@ static bool smbpasswd_search_next_entry(struct pdb_search *search, return false; } - *entry = state-entries[state-current++]; + entry-idx = state-entries[state-current].idx; + entry-rid = state-entries[state-current].rid; + entry-acct_flags = state-entries[state-current].acct_flags; + + entry-account_name = talloc_strdup( + search-mem_ctx, state-entries[state-current].account_name); + entry-fullname = talloc_strdup( + search-mem_ctx, state-entries[state-current].fullname); + entry-description = talloc_strdup( + search-mem_ctx, state-entries[state-current].description); + + if ((entry-account_name == NULL) || (entry-fullname == NULL) + || (entry-description == NULL)) { + DEBUG(0, (talloc_strdup failed\n)); + return false; + } + state-current += 1; return true; } -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1869-g3a32082
The branch, v3-2-test has been updated via 3a32082ef5bb0152545b391ce4cb8ca3a28939da (commit) via 81e2e3a288fb40bf4ba1b83adf459a0cf6f02ed2 (commit) via ba167f3c9ce17ff458d8292e73ce3deafdd2e240 (commit) via c1892bb134084dda935c9846562bcdb082de2f91 (commit) via 9b2aeeb36903591ea55cfdfe22f32d69703daaf1 (commit) via 235e440ae6f31f05802e4c8d01174aac880c56cd (commit) via d7cd8bd2ad5635b0b0823fec08e263f37dea807b (commit) via c07be0f1a9856dbbb80d0dbacf7b86024eed4436 (commit) via 6b2f205844b1e2af4c74247fed13d6e383319067 (commit) via f914fd377165f5580e5cfd0c6a92bbb0216f7352 (commit) via 33acd160c9c9a82aa39b2ed259e24bbe602d56c6 (commit) via fc29364abe10d3ec249602cb3437e50294f5de76 (commit) via b6b226e6365477f855de1e549ef32df452838031 (commit) via bdf8d562621e1a09bf83e2009dec24966e7fdf22 (commit) from feddc1447d585fd108d22a36bccc576fa81197ef (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 3a32082ef5bb0152545b391ce4cb8ca3a28939da Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 22:06:27 2008 +0100 Remove unused marshalling for LSA_DELETE_OBJECT. Guenther commit 81e2e3a288fb40bf4ba1b83adf459a0cf6f02ed2 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 22:05:48 2008 +0100 Use pidl for (dummy) _lsa_DeleteObject(). Guenther commit ba167f3c9ce17ff458d8292e73ce3deafdd2e240 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 22:04:36 2008 +0100 Re-run make idl. Guenther commit c1892bb134084dda935c9846562bcdb082de2f91 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 22:03:07 2008 +0100 Add IDL for lsa_DeleteObject() (based on samba3 rpc code). Guenther commit 9b2aeeb36903591ea55cfdfe22f32d69703daaf1 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 22:02:22 2008 +0100 Remove unused marshalling for LSA_QUERY_SEC_OBJ. Guenther commit 235e440ae6f31f05802e4c8d01174aac880c56cd Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 21:58:34 2008 +0100 Remove some wrong checks for policy handles in rpcclient. Guenther commit d7cd8bd2ad5635b0b0823fec08e263f37dea807b Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 21:56:14 2008 +0100 Fill in IDL for lsa_SetSecObj() (based from samba3 rpc). Guenther commit c07be0f1a9856dbbb80d0dbacf7b86024eed4436 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 21:40:15 2008 +0100 Use rpccli_lsa_QuerySecurity() in rpcclient. Guenther commit 6b2f205844b1e2af4c74247fed13d6e383319067 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 21:13:19 2008 +0100 Use pidl for _lsa_QuerySecurity(). Guenther commit f914fd377165f5580e5cfd0c6a92bbb0216f7352 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 21:12:12 2008 +0100 Re-run make idl. Guenther commit 33acd160c9c9a82aa39b2ed259e24bbe602d56c6 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 21:11:08 2008 +0100 Fix IDL for lsa_QuerySecurity(). Guenther commit fc29364abe10d3ec249602cb3437e50294f5de76 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 21:00:38 2008 +0100 Use pidl for _lsa_OpenPolicy2(). Guenther commit b6b226e6365477f855de1e549ef32df452838031 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 21:00:16 2008 +0100 Use pidl for _lsa_OpenPolicy(). Guenther commit bdf8d562621e1a09bf83e2009dec24966e7fdf22 Author: Günther Deschner [EMAIL PROTECTED] Date: Mon Feb 4 19:43:07 2008 +0100 Use rpccli_samr_Connect2() all over the place. Guenther --- Summary of changes: source/include/rpc_lsa.h| 28 --- source/libnet/libnet_join.c | 12 ++- source/librpc/gen_ndr/cli_lsa.c | 19 +++-- source/librpc/gen_ndr/cli_lsa.h | 10 ++- source/librpc/gen_ndr/lsa.h | 13 +++- source/librpc/gen_ndr/ndr_lsa.c | 140 + source/librpc/gen_ndr/srv_lsa.c |4 +- source/librpc/idl/lsa.idl | 14 ++- source/rpc_client/cli_lsarpc.c | 42 -- source/rpc_parse/parse_lsa.c| 91 - source/rpc_server/srv_lsa.c | 96 +- source/rpc_server/srv_lsa_nt.c | 65 +-- source/rpcclient/cmd_lsarpc.c | 15 ++-- source/rpcclient/cmd_samr.c |8 +- source/utils/net_domain.c | 12 ++- source/utils/net_rpc.c | 167 +-- source/utils/net_rpc_join.c |7 +- source/utils/net_rpc_sh_acct.c |9 +- source/winbindd/winbindd_cm.c | 27 --- 19 files changed, 352 insertions(+), 427 deletions(-) Changeset truncated at 500 lines: diff --git
[SCM] Samba Shared Repository - branch v4-0-test updated - release-4-0-0alpha2-630-g7fc3669
The branch, v4-0-test has been updated via 7fc3669b9dc34514d8749d3941514fdae7d0f700 (commit) via c3387545c57d2dd4922b4f3806b4552cee8035a3 (commit) via 9c9a4731cafd0dcf6c8523a7b06759cd4f14e4db (commit) from 145d6c8ea0eafc69cdeca45fbf296148b890133d (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v4-0-test - Log - commit 7fc3669b9dc34514d8749d3941514fdae7d0f700 Merge: c3387545c57d2dd4922b4f3806b4552cee8035a3 145d6c8ea0eafc69cdeca45fbf296148b890133d Author: Andrew Bartlett [EMAIL PROTECTED] Date: Tue Feb 5 09:16:37 2008 +1100 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-abartlet commit c3387545c57d2dd4922b4f3806b4552cee8035a3 Author: Andrew Bartlett [EMAIL PROTECTED] Date: Mon Feb 4 23:04:35 2008 +1100 Fix a few more breakages from our recent changes to the server_id structure. The BASE-TORTURE test found this problem - caused because the messaging path was not unique. If we didn't use a macro for cluster_id_equal(), we could make it opaque, and avoid this... Andrew Bartlett commit 9c9a4731cafd0dcf6c8523a7b06759cd4f14e4db Author: Andrew Bartlett [EMAIL PROTECTED] Date: Mon Feb 4 21:58:29 2008 +1100 Remove useless layer of indirection, where every service called task_service_init() manually. Now this is called from service.c for all services. Andrew Bartlett --- Summary of changes: source/cldap_server/cldap_server.c | 11 +-- source/cluster/cluster.h |4 +++- source/dsdb/repl/drepl_service.c | 10 +- source/kdc/kdc.c | 12 +--- source/ldap_server/ldap_server.c | 14 +- source/lib/messaging/messaging.c |4 ++-- source/nbt_server/nbt_server.c | 12 +--- source/rpc_server/service_rpc.c| 14 +- source/smb_server/smb_server.c | 14 +- source/smbd/service.c | 11 ++- source/web_server/web_server.c | 14 +- source/winbind/wb_server.c | 13 + source/wrepl_server/wrepl_server.c | 19 +-- 13 files changed, 25 insertions(+), 127 deletions(-) Changeset truncated at 500 lines: diff --git a/source/cldap_server/cldap_server.c b/source/cldap_server/cldap_server.c index 944d679..7858ee2 100644 --- a/source/cldap_server/cldap_server.c +++ b/source/cldap_server/cldap_server.c @@ -205,18 +205,9 @@ static void cldapd_task_init(struct task_server *task) /* - initialise the cldapd server - */ -static NTSTATUS cldapd_init(struct event_context *event_ctx, struct loadparm_context *lp_ctx, const struct model_ops *model_ops) -{ - return task_server_startup(event_ctx, lp_ctx, cldap, model_ops, cldapd_task_init); -} - - -/* register ourselves as a available server */ NTSTATUS server_service_cldapd_init(void) { - return register_server_service(cldap, cldapd_init); + return register_server_service(cldap, cldapd_task_init); } diff --git a/source/cluster/cluster.h b/source/cluster/cluster.h index 203aef4..7545757 100644 --- a/source/cluster/cluster.h +++ b/source/cluster/cluster.h @@ -25,7 +25,9 @@ /* test for same cluster id */ -#define cluster_id_equal(id1, id2) ((id1)-id == (id2)-id (id1)-node == (id2)-node) +#define cluster_id_equal(id_1, id_2) ((id_1)-id == (id_2)-id \ +(id_1)-id2 == (id_2)-id2 \ +(id_1)-node == (id_2)-node) /* test for same cluster node diff --git a/source/dsdb/repl/drepl_service.c b/source/dsdb/repl/drepl_service.c index 246309e..3375059 100644 --- a/source/dsdb/repl/drepl_service.c +++ b/source/dsdb/repl/drepl_service.c @@ -181,17 +181,9 @@ static void dreplsrv_task_init(struct task_server *task) } /* - initialise the dsdb replicator service - */ -static NTSTATUS dreplsrv_init(struct event_context *event_ctx, struct loadparm_context *lp_ctx, const struct model_ops *model_ops) -{ - return task_server_startup(event_ctx, lp_ctx, drepl, model_ops, dreplsrv_task_init); -} - -/* register ourselves as a available server */ NTSTATUS server_service_drepl_init(void) { - return register_server_service(drepl, dreplsrv_init); + return register_server_service(drepl, dreplsrv_task_init); } diff --git a/source/kdc/kdc.c b/source/kdc/kdc.c index d820f0a..52ee475 100644 --- a/source/kdc/kdc.c +++ b/source/kdc/kdc.c @@ -660,18 +660,8 @@ static void kdc_task_init(struct task_server *task) } -/* - called on startup of the KDC service -*/ -static NTSTATUS kdc_init(struct event_context *event_ctx, -struct loadparm_context *lp_ctx, -const struct model_ops *model_ops) -{ - return task_server_startup(event_ctx, lp_ctx, kdc, model_ops,
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-test-1855-gfeddc14
The branch, v3-2-test has been updated via feddc1447d585fd108d22a36bccc576fa81197ef (commit) via e2c9fc4cf5f0ff725330fa44f53782db65fca37e (commit) via d471dd4adb79d480c89436b2ed98f9ec6812aaa0 (commit) from c9472ae61039adf178e047d89dbcc698dfa57059 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit feddc1447d585fd108d22a36bccc576fa81197ef Author: Volker Lendecke [EMAIL PROTECTED] Date: Mon Feb 4 21:05:41 2008 +0100 str_list_free is not needed anymore commit e2c9fc4cf5f0ff725330fa44f53782db65fca37e Author: Volker Lendecke [EMAIL PROTECTED] Date: Mon Feb 4 20:57:35 2008 +0100 Always pass a TALLOC_CTX to str_list_make and str_list_copy commit d471dd4adb79d480c89436b2ed98f9ec6812aaa0 Author: Volker Lendecke [EMAIL PROTECTED] Date: Mon Feb 4 18:49:19 2008 +0100 Simplify str_list_xxx --- Summary of changes: source/auth/auth.c | 36 +++--- source/lib/debug.c |6 +- source/lib/util_str.c | 177 +++- source/libads/ldap.c |8 +- source/libgpo/gpo_ldap.c | 19 ++--- source/param/loadparm.c| 42 ++- source/smbd/map_username.c |6 +- source/smbd/password.c | 15 ++-- source/web/neg_lang.c |4 +- 9 files changed, 119 insertions(+), 194 deletions(-) Changeset truncated at 500 lines: diff --git a/source/auth/auth.c b/source/auth/auth.c index e136fc2..05bb6a5 100644 --- a/source/auth/auth.c +++ b/source/auth/auth.c @@ -458,7 +458,9 @@ NTSTATUS make_auth_context_subsystem(struct auth_context **auth_context) char **auth_method_list = NULL; NTSTATUS nt_status; - if (lp_auth_methods() !str_list_copy(auth_method_list, lp_auth_methods())) { + if (lp_auth_methods() +!str_list_copy(talloc_tos(), auth_method_list, + lp_auth_methods())) { return NT_STATUS_NO_MEMORY; } @@ -467,38 +469,52 @@ NTSTATUS make_auth_context_subsystem(struct auth_context **auth_context) { case SEC_DOMAIN: DEBUG(5,(Making default auth method list for security=domain\n)); - auth_method_list = str_list_make(guest sam winbind:ntdomain, NULL); + auth_method_list = str_list_make( + talloc_tos(), guest sam winbind:ntdomain, + NULL); break; case SEC_SERVER: DEBUG(5,(Making default auth method list for security=server\n)); - auth_method_list = str_list_make(guest sam smbserver, NULL); + auth_method_list = str_list_make( + talloc_tos(), guest sam smbserver, + NULL); break; case SEC_USER: if (lp_encrypted_passwords()) { if ((lp_server_role() == ROLE_DOMAIN_PDC) || (lp_server_role() == ROLE_DOMAIN_BDC)) { DEBUG(5,(Making default auth method list for DC, security=user, encrypt passwords = yes\n)); - auth_method_list = str_list_make(guest sam winbind:trustdomain, NULL); + auth_method_list = str_list_make( + talloc_tos(), + guest sam winbind:trustdomain, + NULL); } else { DEBUG(5,(Making default auth method list for standalone security=user, encrypt passwords = yes\n)); - auth_method_list = str_list_make(guest sam, NULL); + auth_method_list = str_list_make( + talloc_tos(), guest sam, + NULL); } } else { DEBUG(5,(Making default auth method list for security=user, encrypt passwords = no\n)); - auth_method_list = str_list_make(guest unix, NULL); + auth_method_list = str_list_make( + talloc_tos(), guest unix, NULL); } break; case SEC_SHARE: if (lp_encrypted_passwords()) { DEBUG(5,(Making default auth method list for security=share, encrypt passwords = yes\n)); - auth_method_list =
Build status as of Tue Feb 5 00:00:01 2008
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2008-02-04 00:00:44.0 + +++ /home/build/master/cache/broken_results.txt 2008-02-05 00:00:53.0 + @@ -1,4 +1,4 @@ -Build status as of Mon Feb 4 00:00:02 2008 +Build status as of Tue Feb 5 00:00:01 2008 Build counts: Tree Total Broken Panic @@ -9,14 +9,14 @@ ldb 30 21 0 libreplace 29 18 0 lorikeet-heimdal 24 13 0 -pidl 17 5 0 +pidl 17 16 0 ppp 9 0 0 rsync30 13 0 samba-docs 0 0 0 samba-gtk4 4 0 -samba_3_2_test 30 16 0 -samba_4_0_test 28 25 2 +samba_3_2_test 30 17 0 +samba_4_0_test 28 25 6 smb-build28 3 0 -talloc 30 8 0 +talloc 29 8 0 tdb 30 18 0