Thread:Extension talk:LDAP Authentication/User-name mapping for different user types (2)/reply (2)

I could solve my problem the following way:

The forward mapping was done by the SetUsernameAttributeFromLDAP hook: (I chose to not specially mark users of type X)

As far as MediaWiki doesn't know the value of uid and cn=John Doe isn't unique, another hook was added to the function getUserDN to back-map the wiki-usernames:

Definition of the hook in LocalSettings.php:

Comments are welcome!