public class ChangePassword extends Object implements DirectoryServiceOperation
Modifier and Type | Field and Description |
---|---|
protected String |
newPassword
The new password for the update.
|
protected KerberosPrincipal |
principal
The Kerberos principal who's password is to be changed.
|
Constructor and Description |
---|
ChangePassword(KerberosPrincipal principal,
String newPassword)
Creates the action to be used against the embedded ApacheDS DIT.
|
Modifier and Type | Method and Description |
---|---|
Object |
execute(CoreSession session,
org.apache.directory.shared.ldap.name.DN searchBaseDn)
The command pattern execute method.
|
protected KerberosPrincipal principal
protected String newPassword
public ChangePassword(KerberosPrincipal principal, String newPassword)
principal
- The principal to change the password for.newPassword
- The password to change.public Object execute(CoreSession session, org.apache.directory.shared.ldap.name.DN searchBaseDn) throws Exception
DirectoryServiceOperation
execute
in interface DirectoryServiceOperation
session
- The CoreSession to execute the command withsearchBaseDn
- The base DN for working with the contextException
- The exception thrown by the commandCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.