it.eng.spagobi.security
Class LDAPConnector
java.lang.Object
it.eng.spagobi.security.LDAPConnector
public class LDAPConnector
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HOST
public static final java.lang.String HOST
- See Also:
- Constant Field Values
PORT
public static final java.lang.String PORT
- See Also:
- Constant Field Values
ADMIN_USER
public static final java.lang.String ADMIN_USER
- See Also:
- Constant Field Values
ADMIN_PSW
public static final java.lang.String ADMIN_PSW
- See Also:
- Constant Field Values
SEARCH_ROOT
public static final java.lang.String SEARCH_ROOT
- See Also:
- Constant Field Values
ATTRIBUTES_ID
public static final java.lang.String ATTRIBUTES_ID
- See Also:
- Constant Field Values
OU_ATTRIBUTE
public static final java.lang.String OU_ATTRIBUTE
- See Also:
- Constant Field Values
OBJECTCLASS
public static final java.lang.String OBJECTCLASS
- See Also:
- Constant Field Values
ATTRIBUTES_ID_GROUP
public static final java.lang.String ATTRIBUTES_ID_GROUP
- See Also:
- Constant Field Values
SEARCH_ROOT_GROUP
public static final java.lang.String SEARCH_ROOT_GROUP
- See Also:
- Constant Field Values
OBJECTCLASS_GROUP
public static final java.lang.String OBJECTCLASS_GROUP
- See Also:
- Constant Field Values
USER_DN
public static final java.lang.String USER_DN
- See Also:
- Constant Field Values
LDAPConnector
public LDAPConnector(java.util.Map prop)
autenticateUser
public boolean autenticateUser(java.lang.String userId,
java.lang.String psw)
throws com.novell.ldap.LDAPException,
java.io.UnsupportedEncodingException
- Parameters:
userId
- psw
-
- Returns:
-
- Throws:
com.novell.ldap.LDAPException
java.io.UnsupportedEncodingException
getUserAttributes
public java.util.HashMap getUserAttributes(java.lang.String userId)
throws com.novell.ldap.LDAPException,
java.io.UnsupportedEncodingException
- Parameters:
userId
-
- Returns:
-
- Throws:
com.novell.ldap.LDAPException
java.io.UnsupportedEncodingException
getUserGroup
public java.util.List getUserGroup(java.lang.String userId)
throws com.novell.ldap.LDAPException,
java.io.UnsupportedEncodingException
- Parameters:
userId
-
- Returns:
-
- Throws:
com.novell.ldap.LDAPException
java.io.UnsupportedEncodingException
getAllGroups
public java.util.List getAllGroups()
throws com.novell.ldap.LDAPException,
java.io.UnsupportedEncodingException
- Returns:
-
- Throws:
com.novell.ldap.LDAPException
java.io.UnsupportedEncodingException