[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-----
Hash: SHA1
Oliver Heering wrote:
> Hi,
>
> 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"
> login-name.
>
> 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
dn: ....
mail: foo at domain.com
uid: foo
and then include a username map script which is basically an
`ldapsearch .... "(mail=$1)" uid`
See the smb.conf(5) man page for details.
cheers, jerry
=====================================================================
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
iD8DBQFDcKjHIR7qMdg1EfYRAv/4AJ97vfTeJCCzWzVqmQKNib0MQBDeMQCfRrbo
+yDoQJOCOtTc2MXt06uOQ40=
=uvF2
-----END PGP SIGNATURE-----
More information about the samba
mailing list