[Samba] Possible to have Email-Adresses as logins?
Gerald (Jerry) Carter
jerry at samba.org
Tue Nov 8 13:31:51 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
Oliver Heering wrote:
> we want to set up a samba-server with an ldap-backend (so far no
> problem, got this running already) but want the users to login to
> workstations using their email-address instead of a "normal"
> I already figured out that i cannot add unix users with an "@" in
> their login neither via "useradd" nor via "smbldap-useradd", so i was
> thinking about some username-mapping ("username map" in smb.conf).
> My question is: is it possible to map for example "me at home.com" to
> some sort of "me_at_home.com" or "me_at_home_com"? And if yes, what
> replacement for the "@" works best?
Yeah. I think this will work. Setup an user entry like
mail: foo at domain.com
and then include a username map script which is basically an
`ldapsearch .... "(mail=$1)" uid`
See the smb.conf(5) man page for details.
Alleviating the pain of Windows(tm) ------- http://www.samba.org
GnuPG Key ----- http://www.plainjoe.org/gpg_public.asc
"There's an anonymous coward in all of us." --anonymous
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the samba