nalcon Posted October 9, 2013 Posted October 9, 2013 Hi guys, I'm using MRBS with LDAP here, and I have a parameters what I would like to change. How I use the parameter "$ldap_dn_search_attrib = "sAMAccountName";", then after login in,the session PHP is set to "Array ( [userName] => 9999999 )". The "9999999" is the "sAMAccountName" that "MRBS" defines in the session "Array ( [userName] => 9999999 )", and MRBS set the "sAMAccountName" in mysql in field "create_by"; Is there a way to change the "sAMAccountName" to "givenname" after login, and mysql make the insertion of "givenname" instead of "sAMAccountName"? Thanks!!!
detjo Posted October 9, 2013 Posted October 9, 2013 Can you not just get "givenName" from LDAP at the same time as "sAMAccountName" ? You can then use "givenName" wherever you want
mramrani Posted April 22, 2016 Posted April 22, 2016 How would you set this up, Sorry i know it's an old post. But I want to do the same thing. To display givenName instead of username once logged in. But for users to login with the normal usernames.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now