I use WordPress 3.6.1 with Active Directory Integration plugin 1.1.4, both in current versions. I have discovered the plugin looks in “cn” field from LDAP server (in my case: Microsoft Active Directory) as the WordPress user login name. What should I do to switch it into “sAMAccountName” field? I thing a change in ‘ad-integration.php’ file will be necessary.
(First, when you create an user in Windows Server, usually you enter first and last name, then the system combines both, calls it “Full name” and presents as “cn” in the nameservice. Next you have to choose so called “User logon name”, what becomes “sAMAccountName” in the nameservice. Here you prefer to put a string like “firstnamelastname” instead of FirstName LastName” because it may be used for e-mail address and in the other network services where a space character is inappropriate.
Second, even if you decide to log into WordPress using your first and last name, the plugin looks in “sAMAccountName” field of LDAP for the groups the user is a member of, of course using the string the system has learned as the login name. So you are forced to mirror Windows “User logon name” from “Full name” field, what makes the same problem as described above.)
- The topic ‘"sAMAccountName" instead of "cn" as WP login’ is closed to new replies.