Hai thanks for the reply,
I compare the debug.log file between using Spark as ordinary user and Spark as root user.
from the debug.log I found the different
using root:
- if i use root user the connection use this:
2010.12.21 09:36:22 NIOConnection: startTLS: using c2s
- the server seem not load the vcard? and i don’t know the vcard function.
using ordinary user:
1.there’s no nioconnection
2.using the LDAPVCardProvider
** 2010.12.21 09:33:56 LdapVCardProvider: Found attribute uid of type: class java.lang.String**
this is the complete debug.log maybe i’m missing something.
running Spark as Root:
Today: Tuesday, December 21 2010
2010.12.21 09:36:22 NIOConnection: startTLS: using c2s
2010.12.21 09:36:22 LdapManager: Trying to find a user’s DN based on their username. uid: vash27, Base DN: ou=ADMIN,ou=Accounts,dc=vash27,dc=com…
2010.12.21 09:36:22 LdapManager: Creating a DirContext in LdapManager.getContext()…
2010.12.21 09:36:22 LdapManager: Created hashtable with context values, attempting to create context…
2010.12.21 09:36:22 LdapManager: … context created successfully, returning.
2010.12.21 09:36:22 LdapManager: Starting LDAP search…
2010.12.21 09:36:22 LdapManager: … search finished
2010.12.21 09:36:22 LdapManager: In LdapManager.checkAuthentication(userDN, password), userDN is: uid=“vash27”…
2010.12.21 09:36:22 LdapManager: Created context values, attempting to create context…
2010.12.21 09:36:23 LdapManager: … context created successfully, returning.
2010.12.21 09:36:23 AuthorizationManager: Trying Default Mapping.map(vash27)
2010.12.21 09:36:23 DefaultAuthorizationMapping: No realm found
2010.12.21 09:36:23 AuthorizationManager: Trying Default Policy.authorize(vash27 , vash27)
2010.12.21 09:36:23 DefaultAuthorizationPolicy: Checking authenID realm
2010.12.21 09:36:23 LdapManager: Trying to find a user’s DN based on their username. uid: vash27, Base DN: ou=ADMIN,ou=Accounts,dc=vash27,dc=com…
2010.12.21 09:36:23 LdapManager: Creating a DirContext in LdapManager.getContext()…
2010.12.21 09:36:23 LdapManager: Created hashtable with context values, attempting to create context…
2010.12.21 09:36:23 LdapManager: … context created successfully, returning.
2010.12.21 09:36:23 LdapManager: Starting LDAP search…
2010.12.21 09:36:23 LdapManager: … search finished
2010.12.21 09:36:23 LdapManager: Trying to find a user’s DN based on their username. uid: vash27, Base DN: ou=ADMIN,ou=Accounts,dc=vash27,dc=com…
2010.12.21 09:36:23 LdapManager: Creating a DirContext in LdapManager.getContext()…
2010.12.21 09:36:23 LdapManager: Created hashtable with context values, attempting to create context…
2010.12.21 09:36:23 LdapManager: … context created successfully, returning.
2010.12.21 09:36:23 LdapManager: Starting LDAP search…
2010.12.21 09:36:23 LdapManager: … search finished
2010.12.21 09:36:23 LdapManager: Creating a DirContext in LdapManager.getContext()…
2010.12.21 09:36:23 LdapManager: Created hashtable with context values, attempting to create context…
2010.12.21 09:36:23 LdapManager: … context created successfully, returning.
running Spark as ordinary user:
Today: Monday, December 20 2010
2010.12.21 09:33:53 LdapManager: Trying to find a user’s DN based on their username. uid: vash27, Base DN: ou=ADMIN,ou=Accounts,dc=vash27,dc=com…
2010.12.21 09:33:53 LdapManager: Creating a DirContext in LdapManager.getContext()…
2010.12.21 09:33:53 LdapManager: Created hashtable with context values, attempting to create context…
2010.12.21 09:33:53 LdapManager: … context created successfully, returning.
2010.12.21 09:33:53 LdapManager: Starting LDAP search…
2010.12.21 09:33:53 LdapManager: … search finished
2010.12.21 09:33:53 LdapManager: Creating a DirContext in LdapManager.getContext()…
2010.12.21 09:33:53 LdapManager: Created hashtable with context values, attempting to create context…
2010.12.21 09:33:53 LdapManager: … context created successfully, returning.
2010.12.21 09:33:54 LdapManager: Trying to find a user’s DN based on their username. uid: vash27, Base DN: ou=ADMIN,ou=Accounts,dc=vash27,dc=com…
2010.12.21 09:33:54 LdapManager: Creating a DirContext in LdapManager.getContext()…
2010.12.21 09:33:54 LdapManager: Created hashtable with context values, attempting to create context…
2010.12.21 09:33:54 LdapManager: … context created successfully, returning.
2010.12.21 09:33:54 LdapManager: Starting LDAP search…
2010.12.21 09:33:54 LdapManager: … search finished
2010.12.21 09:33:54 LdapManager: Trying to find a user’s DN based on their username. uid: vash27, Base DN: ou=ADMIN,ou=Accounts,dc=vash27,dc=com…
2010.12.21 09:33:54 LdapManager: Creating a DirContext in LdapManager.getContext()…
2010.12.21 09:33:54 LdapManager: Created hashtable with context values, attempting to create context…
2010.12.21 09:33:54 LdapManager: … context created successfully, returning.
2010.12.21 09:33:54 LdapManager: Starting LDAP search…
2010.12.21 09:33:54 LdapManager: … search finished
2010.12.21 09:33:54 Trying to find group names for user:vash27@vash27.com using query: (&(cn=*)(member=uid=“vash27”,ou=ADMIN,ou=Accounts,dc=vash27,dc=com))
2010.12.21 09:33:54 LdapManager: Creating a DirContext in LdapManager.getContext()…
2010.12.21 09:33:54 LdapManager: Created hashtable with context values, attempting to create context…
2010.12.21 09:33:54 LdapManager: … context created successfully, returning.
2010.12.21 09:33:55 LdapManager: Trying to find a user’s DN based on their username. uid: vash27, Base DN: ou=ADMIN,ou=Accounts,dc=vash27,dc=com…
2010.12.21 09:33:55 LdapManager: Creating a DirContext in LdapManager.getContext()…
2010.12.21 09:33:55 LdapManager: Created hashtable with context values, attempting to create context…
2010.12.21 09:33:55 LdapManager: … context created successfully, returning.
2010.12.21 09:33:55 LdapManager: Starting LDAP search…
2010.12.21 09:33:55 LdapManager: … search finished
2010.12.21 09:33:55 LdapManager: Trying to find a user’s DN based on their username. uid: vash27, Base DN: ou=ADMIN,ou=Accounts,dc=vash27,dc=com…
2010.12.21 09:33:55 LdapManager: Creating a DirContext in LdapManager.getContext()…
2010.12.21 09:33:55 LdapManager: Created hashtable with context values, attempting to create context…
2010.12.21 09:33:55 LdapManager: … context created successfully, returning.
2010.12.21 09:33:55 LdapManager: Starting LDAP search…
2010.12.21 09:33:55 LdapManager: … search finished
2010.12.21 09:33:55 LdapManager: Creating a DirContext in LdapManager.getContext()…
2010.12.21 09:33:55 LdapManager: Created hashtable with context values, attempting to create context…
2010.12.21 09:33:56 LdapManager: … context created successfully, returning.
2010.12.21 09:33:56 LdapVCardProvider: Found attribute uid of type: class java.lang.String
2010.12.21 09:33:56 LdapVCardProvider: Ldap attribute ‘uid’=>'vash27’
2010.12.21 09:33:56 LdapVCardProvider: No ldap value found for attribute ‘mail’
2010.12.21 09:33:56 LdapVCardProvider: Ldap attribute ‘mail’=>’'
2010.12.21 09:33:56 LdapVCardProvider: Found attribute cn of type: class java.lang.String
2010.12.21 09:33:56 LdapVCardProvider: Ldap attribute ‘cn’=>'vash27’
2010.12.21 09:33:56 LdapVCardProvider: No ldap value found for attribute ‘displayName’
2010.12.21 09:33:56 LdapVCardProvider: Ldap attribute ‘displayName’=>’'
2010.12.21 09:33:56 LdapVCardProvider: Getting mapped vcard for vash27
2010.12.21 09:33:56 LdapVCardProvider: Returning vcard