Hi listm i ran into some difficulties using samba 3.0.21b as an PDC while mapping e.g. "root" to "administrator" With samba 3.0.10 it worked - however i cannot find anything thats wrong. Can somebody please point me where to look at? Can i test the usermap functionality somehow except for logging in on windows machine as the mapped account? Should "getent passwd" reflect the mapping in any way? Important parts of my config: ----------------------- [global] ?security = user ?... ?username map = /etc/samba/smbusers ?... ?and ldap backend! ----------------------- And in /etc/samba/smbusers: ----------------------- root = administrator admin Also tried root = DOMAIN\administrator and root = DOMAIN/administrator ----------------------- All without luck! On my windows clients i can only log on using "root" not "administrator" With the same config 3.0.10 worked! What am i missing here? Did the behaviour change from 3.0.10 to 3.0.21? Thanks in advance for any help! Kind regards, Martin?Hoffmann
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Martin Hoffmann wrote:> Hi listm > > i ran into some difficulties using samba 3.0.21b as an > PDC while mapping e.g. "root" to "administrator" > With samba 3.0.10 it worked - however i cannot find > anything thats wrong. Can somebody please point me > where to look at? Can i test the usermap functionality > somehow except for logging in on windows machine as the > mapped account?Works fine here. I just tested it.> Should "getent passwd" reflect the mapping in any way?no. it's internal to Samba.> And in /etc/samba/smbusers: > ----------------------- > root = administrator adminDo you have any entries after this? If you run smbd with a debug level of 10, the resulting log file will show smbd parsing the username map file. cheers, jerry ====================================================================I live in a Reply-to-All world ----------------------- Samba ------- http://www.samba.org Centeris ----------- http://www.centeris.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFD38iCIR7qMdg1EfYRAqTmAKDH/Kaw1tSZXyHQPj10ffwsYZGPWACcCdV2 0mJ48sCtK9/hF29q15J+KTc=Bwkz -----END PGP SIGNATURE-----
Martin Hoffmann wrote:> i ran into some difficulties using samba 3.0.21b as an PDC while mapping > e.g. "root" to "administrator"> And in /etc/samba/smbusers: > ----------------------- > root = administrator admindefinitely won't work.> root = DOMAIN\administratorbetter, should(?) work. -- Rex
Thanks for this! However it seems to me that the usermap stuff never gets read in:>From older logs (31.01.2006) Samba 3.0.21a i could find those lines:doing parameter username map = /etc/samba/smbusers Since Version 3.0.21b these never occured again in the logs! Just as if the parameter is completely ignored!? Strange enogh in testparm it _IS_ in included ... Also tried to rewrite the line in smb.conf and in smbusers - no luck! Helpless, Martin -----Urspr?ngliche Nachricht----- Von: Adam Nielsen [mailto:adam.nielsen@uq.edu.au] Gesendet: Mittwoch, 1. Februar 2006 23:46 An: mhoffmann@pro-nets.de Cc: samba@lists.samba.org Betreff: Re: [Samba] usermap ignored?> I will try with debuglevel 10 as soon a i can restart my samba > service!You can also run "smbcontrol smbd debug 10" to change this on-the-fly. Cheers, Adam.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Martin Hoffmann wrote:> Thanks for this! > > However it seems to me that the usermap stuff never gets read in: > >>From older logs (31.01.2006) Samba 3.0.21a i could find those lines: > doing parameter username map = /etc/samba/smbusers > > Since Version 3.0.21b these never occured again in the logs! > Just as if the parameter is completely ignored!? > Strange enogh in testparm it _IS_ in included ... > > Also tried to rewrite the line in smb.conf and in smbusers - no luck!Please send me (off list) your smb.conf, smbusers file, and level 10 debug log from a connection to smbd that fails. cheers, jerry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFD4g+lIR7qMdg1EfYRApfaAJ9Z0QEEWfGG5gCR4Sbol41ViG4oogCgiFj3 Sb52PX6HEUcXSxPg1auh3dU=kKEH -----END PGP SIGNATURE-----