Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

name

description

example

email-attribute

The name of the attribute on a user that contains the email address

email

full-name-attribute

The name of the attribute on a user that contains the users fullName

givenName

password-attribute

The name of the attribute containing the users password, used for the authentiction using the user manager and not the ldap bind authenticator

userPassword

user-id-attribute

The name of the attribute containing the users userId, most commonly cn or sn

  • sAMAccountName 
  • cn
  • sn

user-base-dn

The base dn that will be subtree searched for users

DC=mycompany,DC=be

user-object-class

the objectClass used in the ldap server for indentifying users, most commonly inetOrgPerson

  • organizationalPerson
  • inetOrgPerson

apache-archiva-x.y\apps\archiva\WEB-INF\classes\org\apache\maven\archiva\security.properties

...

Answer:
It is likely that your server uses SSL, and you 've forgot to specify it. Check Component managing the connection to the ldap server paragraph.

...

This document has been created with the use of following links:

Comments;

Comment 1

I finally got this successfully setup.

  • Archiva 1.2.2 standalone
  • CentOs 4.x
  • Windows Active Directory via LDAP
  • apache-archiva-1.2.2/apps/archiva/WEB-INF/classes/META-INF/plexus/application.xml
    Code Block
    
    <component>
        <role>org.codehaus.plexus.redback.common.ldap.connection.LdapConnectionFactory</role>
        <role-hint>configurable</role-hint>
        <implementation>org.codehaus.plexus.redback.common.ldap.connection.ConfigurableLdapConnectionFactory</implementation>
        <configuration>
            <hostname>XXXX</hostname>
            <port>XXXX</port>
            <baseDn>XXXX</baseDn>
            <contextFactory>com.sun.jndi.ldap.LdapCtxFactory</contextFactory>
            <bindDn>XXXX</bindDn>
            <password><![CDATA[XXXX]]></password>
        </configuration>
         <requirements>
          <requirement>
           <role>org.codehaus.plexus.redback.configuration.UserConfiguration</role>
          </requirement>
         </requirements>
    </component>
    
    
    <component>
         <role>org.codehaus.plexus.redback.common.ldap.UserMapper</role>
         <role-hint>ldap</role-hint>
         <implementation>org.codehaus.plexus.redback.common.ldap.LdapUserMapper</implementation>
         <configuration>
          <email-attribute>mail</email-attribute>
          <full-name-attribute>displayName</full-name-attribute>
          <password-attribute>unicodePwd</password-attribute>
          <user-id-attribute>sAMAccountName</user-id-attribute>
          <user-base-dn>XXXX</user-base-dn>
          <user-object-class>user</user-object-class>
         </configuration>
         <requirements>
          <requirement>
           <role>org.codehaus.plexus.redback.configuration.UserConfiguration</role>
          </requirement>
         </requirements>
    </component>
    
    
  • apache-archiva-1.2.2/apps/archiva/WEB-INF/classes/org/apache/maven/archiva/security.properties
    Code Block
    
    user.manager.impl=ldap
    ldap.bind.authenticator.enabled=true
    redback.default.admin=XXXX
    #redback.default.guest=
    security.policy.password.expiration.enabled=false