com.zeroturnaround.liverebel.api.impl
Class LdapDomainCreationImpl

java.lang.Object
  extended by com.zeroturnaround.liverebel.api.impl.LdapDomainCreationImpl
All Implemented Interfaces:
LdapDomainCreation

public class LdapDomainCreationImpl
extends Object
implements LdapDomainCreation


Field Summary
protected  RestConnection con
           
protected  JsonParser parser
           
 
Constructor Summary
LdapDomainCreationImpl(RestConnection con, JsonParser parser, String name)
           
 
Method Summary
 void execute()
          Creates the domain.
 LdapDomainCreation host(String host, int port, boolean secure)
          Configures the address of the LDAP host (Required).
 LdapDomainCreation manager(String distinguishedName, String password)
          Configures the LDAP user that can be used to search for other users (Required).
 LdapDomainCreation userBase(String userBase)
          Sets the base distinguished name for the user search (Required).
For example: dc=yourcompany,dc=com
 LdapDomainCreation userIdField(String userIdField)
          Sets the field name in the LDAP server that the user ID will be matched against (Required).
For example: userPrincipalName, sAMAccountName or uid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

con

protected final RestConnection con

parser

protected final JsonParser parser
Constructor Detail

LdapDomainCreationImpl

public LdapDomainCreationImpl(RestConnection con,
                              JsonParser parser,
                              String name)
Method Detail

host

public LdapDomainCreation host(String host,
                               int port,
                               boolean secure)
Description copied from interface: LdapDomainCreation
Configures the address of the LDAP host (Required).

Specified by:
host in interface LdapDomainCreation
Parameters:
host - Host of the LDAP server
port - Port of the LDAP server (default is 389 for LDAP and 636 for LDAPS)
secure - If true, the more secure LDAPS protocol is used instead of plain LDAP (Recommended)

manager

public LdapDomainCreation manager(String distinguishedName,
                                  String password)
Description copied from interface: LdapDomainCreation
Configures the LDAP user that can be used to search for other users (Required).

Specified by:
manager in interface LdapDomainCreation
Parameters:
distinguishedName - The user's distinguished name.
For example: uid=admin,ou=system
Note: Only simple bind authentication is supported.
password - The user's password.

userBase

public LdapDomainCreation userBase(String userBase)
Description copied from interface: LdapDomainCreation
Sets the base distinguished name for the user search (Required).
For example: dc=yourcompany,dc=com

Specified by:
userBase in interface LdapDomainCreation

userIdField

public LdapDomainCreation userIdField(String userIdField)
Description copied from interface: LdapDomainCreation
Sets the field name in the LDAP server that the user ID will be matched against (Required).
For example: userPrincipalName, sAMAccountName or uid

Specified by:
userIdField in interface LdapDomainCreation

execute

public void execute()
Description copied from interface: LdapDomainCreation
Creates the domain.

Specified by:
execute in interface LdapDomainCreation


Copyright © 2013. All Rights Reserved.