Jump to content

JasperServer LDAP sAMAccountName


jsantiago

Recommended Posts

Hi,

Apparently the jasperserver we have is able to find users but tries to log in with the CN instead of the sAMAcountName (we have a Server 2008 R2 AD domain):

2014-07-07 15:55:05,641 DEBUG FilterBasedLdapUserSearch,http-bio-0.0.0.0-80-exec-4:109 - Searching for user 'jdoe', with user search [ searchFilter: '(sAMAccountName={0})', searchBase: '', scope: subtree, searchTimeLimit: 0, derefLinkFlag: false ]

2014-07-07 15:55:15,150 DEBUG BindAuthenticator,http-bio-0.0.0.0-80-exec-4:142 - Failed to bind as cn=John Doe,ou=jasperusers: org.springframework.ldap.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1^@]; nested exception is javax.naming.AuthenticationException: [LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 52e, v1db1^@]

My userSearch bean:

    <bean id="userSearch"          class="org.springframework.security.ldap.search.FilterBasedLdapUserSearch">        <constructor-arg index="0">            <value></value>        </constructor-arg>        <constructor-arg index="1">            <!--<value>(&(sAMAccountName={0})(&((objectclass=user)(memberOf:1.2.840.113556.1.4.1941:=cn=jasperusers,dc=sga,dc=es))))</value>-->           <!-- <value>(&(objectClass=User)(memberOf=CN=JASPER_USERS,OU=jasperusers,DC=SGA,DC=ES)(sAMAccountName={0}))</value>-->            <value>(sAMAccountName={0})</value>            <!--<value>(sAMAccountName={0})</value>-->        </constructor-arg>        <constructor-arg index="2">            <ref local="ldapContextSource" />        </constructor-arg>        <property name="searchSubtree">            <value>true</value>        </property>    </bean>[/code]

Any ideas?.

 

Regards.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...