Jag hjälpte nyligen ett företag att autentisera användare med, och komma åt användarinformation från Windows AD via JNDI, d v s via AD:s LDAP-yta. Dock var det inte alltid uppenbart hur WindowsAD-specifika felkoder skall tolkas eller hur användargrupper i en Windows-domän skall skrivas till AD, men som tur var hade bloggaren Steven Adler varit flitig på Java Technology Forum och postat ett eget tutorial med händiga java-klasser för hur just Windows AD bör användas via JNDI.

Här är en lista över några av Stevens nyttiga JNDI/AD-postningar:

JNDI, Active Directory & Authentication (part 2) (SSL)

JNDI, Active Directory, Paging and Range Retrieval

JNDI, Active Directory, Referrals and Global Catalog

JNDI, Active Directory (Creating new users & demystifying userAccountControl)

JNDI, Active Directory & Changing Passwords

JNDI, Active Directory and Group Memberships

JNDI, Active Directory and objectGUID’s

JNDI, Active Directory and SID’s (Security Identifiers)

JNDI, Active Directory and Error codes

JNDI, Active Directory and Server Side Sorting

JNDI, Active Directory & Persistent Searches (part 1)

JNDI, Active Directory and Persistent Searches (part 2)

Sample code demonstrating a search for disabled accounts.

JNDI, Active Directory and User Account status (account expired, locked)

JNDI, Active Directory and Authentication (part 5, LDAP Fastbinds)

/Markus Wahl