Class CASServer::Authenticators::ActiveDirectoryLDAP
In: lib/casserver/authenticators/active_directory_ldap.rb
Parent: CASServer::Authenticators::LDAP

Slightly modified version of the LDAP authenticator for Microsoft‘s ActiveDirectory. The only difference is that the default_username_attribute for AD is ‘sAMAccountName’ rather than ‘uid’.

Methods

Protected Instance methods

[Source]

    # File lib/casserver/authenticators/active_directory_ldap.rb, line 8
 8:   def default_username_attribute
 9:     "sAMAccountName"
10:   end

[Source]

    # File lib/casserver/authenticators/active_directory_ldap.rb, line 12
12:   def extract_extra_attributes(ldap_entry)
13:     super(ldap_entry)
14:     if @extra_attributes["objectGUID"]
15:       @extra_attributes["guid"] = @extra_attributes["objectGUID"].to_s.unpack("H*").to_s
16:     end
17:     ldap_entry
18:   end

[Validate]