Package org.jivesoftware.openfire.ldap
Class LdapAuthorizationPolicy
java.lang.Object
org.jivesoftware.openfire.ldap.LdapAuthorizationPolicy
- All Implemented Interfaces:
AuthorizationPolicy
Provider for authorization using LDAP. Checks if the XMPP authentication identity, or 'principal' (identity whose
password will be used) is in the user's LDAP object using the authorizeField from the system properties. An entry in
that file would look like the following:
ldap.authorizeField = k5login
- Author:
- Jay Kline
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the provided XMPP authentication identity (identity whose password will be used) is explicitly allowed to the provided XMPP authorization identity (identity to act as).Returns a description of the Policyname()
Returns the short name of the Policy
-
Constructor Details
-
LdapAuthorizationPolicy
public LdapAuthorizationPolicy()
-
-
Method Details
-
authorize
Returns true if the provided XMPP authentication identity (identity whose password will be used) is explicitly allowed to the provided XMPP authorization identity (identity to act as).- Specified by:
authorize
in interfaceAuthorizationPolicy
- Parameters:
authzid
- XMPP authorization identity (identity to act as).authcid
- XMPP authentication identity, or 'principal' (identity whose password will be used)- Returns:
- true if the authzid is explicitly allowed to be used by the user authenticated with the authcid.
-
name
Returns the short name of the Policy- Specified by:
name
in interfaceAuthorizationPolicy
- Returns:
- The short name of the Policy
-
description
Returns a description of the Policy- Specified by:
description
in interfaceAuthorizationPolicy
- Returns:
- The description of the Policy.
-