Sha256: 43f77a03196e03d0abe9806b99e3bf102da6c5b6c1e411d1b42d2bdabd6bfb05

Contents?: true

Size: 582 Bytes

Versions: 6

Compression:

Stored size: 582 Bytes

Contents

# 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'.
class CASServer::Authenticators::ActiveDirectoryLDAP < CASServer::Authenticators::LDAP
  protected
  def default_username_attribute
    "sAMAccountName"
  end

  def extract_extra_attributes(ldap_entry)
    super(ldap_entry)
    if @extra_attributes["objectGUID"]
      @extra_attributes["guid"] = @extra_attributes["objectGUID"].to_s.unpack("H*").to_s
    end
    ldap_entry
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
synapse-rubycas-server-1.1.6 lib/casserver/authenticators/active_directory_ldap.rb
synapse-rubycas-server-1.1.5.pre lib/casserver/authenticators/active_directory_ldap.rb
synapse-rubycas-server-1.1.4.pre lib/casserver/authenticators/active_directory_ldap.rb
synapse-rubycas-server-1.1.4 lib/casserver/authenticators/active_directory_ldap.rb
synapse-rubycas-server-1.1.3alpha lib/casserver/authenticators/active_directory_ldap.rb
synapse-rubycas-server-1.1.3.pre lib/casserver/authenticators/active_directory_ldap.rb