LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   LDAP Client Configuration - Login with UPN (https://www.linuxquestions.org/questions/linux-software-2/ldap-client-configuration-login-with-upn-4175437262/)

chrisk2305 11-15-2012 07:28 AM

LDAP Client Configuration - Login with UPN
 
Hi everybody,

i've been searching for hours now and still didn't find a solution to my problem:

I successfully configured the LDAP Client on a SLES 11 SP2 for VMWare machine and can authenticate against our Windows Server 2008 R2 Domain. What I want is to login with the userprincipalname instead of the samaccountname.

I tried to change a few settings in ldap.conf, but that doesn't seem to change anything. I can successfully login with "domain\username". But I want to login with username@domain.com which would be the UPN attribute. In my case different users will have completely differtnt UPNs (e.g. xxx@xxx.com, xyx@yyy.com and so on)

Where can I change the mapping? Here is a part of my ldap.conf where i tried to change the mapping (which obviously didn't work):

Code:

# RFC 2307 (AD) mappings
#nss_map_objectclass posixAccount user
#nss_map_objectclass shadowAccount user
nss_map_attribute uid userPrincipalName
#nss_map_attribute homeDirectory unixHomeDirectory
#nss_map_attribute shadowLastChange pwdLastSet
#nss_map_objectclass posixGroup group
#nss_map_attribute uniqueMember member
pam_login_attribute userPrincipalName
#pam_filter objectclass=User
#pam_password ad Any help is greatly appreciated!

tia Christian

chrisk2305 11-19-2012 01:59 AM

any ideas? Help is really appreciated.


All times are GMT -5. The time now is 09:22 AM.