Hi,
I have found before :
2014-07-21 15:01:21,282 INFO [org.ldaptive.auth.Authenticator] - Authentication 
succeeded for dn: uid=myuser,ou=personnel,ou=people,dc=unice,dc=fr

An error :
searchFilter=[org.ldaptive.SearchFilter@1642584434::filter=(objectClass=*), 
parameters={}], returnAttributes=[], searchScope=OBJECT, timeLimit=0, 
sizeLimit=0, derefAliases=null, typesOnly=false, binaryAttributes=null, 
sortBehavior=UNORDERED, searchEntryHandlers=null, searchReferenceHandlers=null, 
controls=null, followReferrals=false, intermediateResponseHandlers=null] with 
connection=[org.ldaptive.DefaultConnectionFactory$DefaultConnection@2116028303::config=[org.ldaptive.ConnectionConfig@1122184227::ldapUrl=ldap://ldap.unice.fr/,
 connectTimeout=3000, responseTimeout=-1, sslConfig=null, useSSL=false, 
useStartTLS=true, connectionInitializer=null], 
providerConnectionFactory=[org.ldaptive.provider.jndi.JndiStartTLSConnectionFactory@1666108686::connectionCount=1,
 environment={java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory, 
com.sun.jndi.ldap.connect.timeout=3000, java.naming.ldap.version=3}, 
providerConfig=[org.ldaptive.provider.jndi.JndiProviderConfig@315577502::operationExceptionResultCodes=[PROTOCOL_ERROR,
 SERVER_DOWN], properties={}, connectionStrategy=DEFAULT, environment=null, 
tracePackets=null, removeDnUrls=true, 
searchIgnoreResultCodes=[TIME_LIMIT_EXCEEDED, SIZE_LIMIT_EXCEEDED, 
PARTIAL_RESULTS], sslSocketFactory=null, hostnameVerifier=null, 
controlProcessor=org.ldaptive.provider.ControlProcessor@69bc5ab7], 
sslSocketFactory=null, hostnameVerifier=null], 
providerConnection=org.ldaptive.provider.jndi.JndiStartTLSConnection@4a788511]

2014-07-21 15:01:21,277 DEBUG [org.ldaptive.auth.Authenticator] - entry 
resolution failed for 
resolver=[org.ldaptive.auth.SearchEntryResolver@805125572::factory=null, 
searchEntryHandlers=null]
[org.ldaptive.LdapException@1078490817::resultCode=NO_SUCH_OBJECT, 
matchedDn=null, responseControls=null, referralURLs=null, messageId=-1, 
providerException=javax.naming.NameNotFoundException: [LDAP: error code 32 - No 
Such Object]; remaining name ‘uid=myuser,ou=personnel,ou=people,dc=unice,dc=fr']
        at 
org.ldaptive.provider.ProviderUtils.throwOperationException(ProviderUtils.java:77)
…..

In fact i dont know why my  returnAttributes=[] are empty/null.
Where configure that ?

Many thanks
-----------------------------------------------------------------
Daniel CHARLOT
D.S.I. Université de Nice Sophia-Antipolis
Administrateur Systèmes et Réseaux
28, avenue de Valrose - BP 2135 - 06103 NICE 
Tél : 04-92-07-67-07











Le 18 juil. 2014 à 05:06, Daniel Fisher <[email protected]> a écrit :

> The root of the problem is that the authentication request doesn't
> contain the principalIdAttribute, which you've defined as 'uid':
>> request=[org.ldaptive.auth.AuthenticationRequest@1438545291::user=myuser,
>> retAttrs=[]]
> 
> So the authenticated entry doesn't contain that attribute either:
>> [org.ldaptive.auth.AuthenticationResponse@306513608::authenticationResultCode=AUTHENTICATION_HANDLER_SUCCESS,
>> ldapEntry=[dn=uid=myuser,ou=personnel,ou=people,dc=unice,dc=fr[]],
>> accountState=null, result=true, resultCode=SUCCESS, message=null,
>> controls=null]
> 
> I didn't see anything wrong in your configuration, hopefully someone
> with better eyes will take a look.
> 
> --Daniel Fisher
> 
> -- 
> You are currently subscribed to [email protected] as: 
> [email protected]
> To unsubscribe, change settings or access archives, see 
> http://www.ja-sig.org/wiki/display/JSG/cas-user


-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to