public class ADUtilities extends Object
| Constructor and Description |
|---|
ADUtilities(ADConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
Set<SearchResult> |
basicLdapSearch(String filter,
String... baseContextDNs) |
org.identityconnectors.framework.common.objects.ConnectorObject |
createConnectorObject(String baseDN,
Attributes profile,
Collection<String> attrsToGet,
org.identityconnectors.framework.common.objects.ObjectClass oclass) |
org.identityconnectors.framework.common.objects.ConnectorObject |
createConnectorObject(String baseDN,
SearchResult result,
Collection<String> attrsToGet,
org.identityconnectors.framework.common.objects.ObjectClass oclass) |
Attributes |
getAttributes(String entryDN,
String... attributes) |
static Set<String> |
getAttributesReturnedByDefault(net.tirasa.connid.bundles.ldap.LdapConnection conn,
org.identityconnectors.framework.common.objects.ObjectClass oclass) |
Set<String> |
getAttributesToGet(String[] attributesToGet,
org.identityconnectors.framework.common.objects.ObjectClass oclass) |
String |
getDN(org.identityconnectors.framework.common.objects.ObjectClass oclass,
org.identityconnectors.framework.common.objects.Name nameAttr,
org.identityconnectors.framework.common.objects.Attribute cnAttr)
Create a DN string starting from a set attributes and a default people container.
|
net.tirasa.connid.bundles.ldap.commons.LdapEntry |
getEntryToBeUpdated(String entryDN) |
org.identityconnectors.framework.common.objects.ConnectorObject |
getEntryToBeUpdated(org.identityconnectors.framework.common.objects.Uid uid,
org.identityconnectors.framework.common.objects.ObjectClass oclass) |
Attribute |
getGroupID(String dn) |
Set<String> |
getGroups(String entryDN) |
Set<String> |
getGroups(String entryDN,
String... baseContexts) |
Set<String> |
getLdapAttributesToGet(Set<String> attrsToGet,
org.identityconnectors.framework.common.objects.ObjectClass oclass) |
String |
getMembershipSearchFilter(ADConfiguration conf) |
String |
getPrimaryGroupDN(net.tirasa.connid.bundles.ldap.commons.LdapEntry entry,
Attributes profile) |
static net.tirasa.adsddl.ntsd.SID |
getPrimaryGroupSID(net.tirasa.adsddl.ntsd.SID sid,
byte[] pgID) |
static boolean |
isDN(String dn)
Check if the String is an ldap DN.
|
Attribute |
userCannotChangePassword(byte[] obj,
Boolean cannot) |
Attribute |
userCannotChangePassword(org.identityconnectors.framework.common.objects.ConnectorObject obj,
Boolean cannot) |
Attribute |
userCannotChangePassword(String entryDN,
Boolean cannot) |
public ADUtilities(ADConnection connection)
public static net.tirasa.adsddl.ntsd.SID getPrimaryGroupSID(net.tirasa.adsddl.ntsd.SID sid,
byte[] pgID)
public Attribute getGroupID(String dn) throws InvalidNameException
InvalidNameExceptionpublic String getPrimaryGroupDN(net.tirasa.connid.bundles.ldap.commons.LdapEntry entry, Attributes profile) throws NamingException
NamingExceptionpublic Set<String> getAttributesToGet(String[] attributesToGet, org.identityconnectors.framework.common.objects.ObjectClass oclass)
public static Set<String> getAttributesReturnedByDefault(net.tirasa.connid.bundles.ldap.LdapConnection conn, org.identityconnectors.framework.common.objects.ObjectClass oclass)
public Set<String> getLdapAttributesToGet(Set<String> attrsToGet, org.identityconnectors.framework.common.objects.ObjectClass oclass)
public org.identityconnectors.framework.common.objects.ConnectorObject createConnectorObject(String baseDN, SearchResult result, Collection<String> attrsToGet, org.identityconnectors.framework.common.objects.ObjectClass oclass) throws NamingException
NamingExceptionpublic org.identityconnectors.framework.common.objects.ConnectorObject createConnectorObject(String baseDN, Attributes profile, Collection<String> attrsToGet, org.identityconnectors.framework.common.objects.ObjectClass oclass) throws NamingException
NamingExceptionpublic final String getDN(org.identityconnectors.framework.common.objects.ObjectClass oclass, org.identityconnectors.framework.common.objects.Name nameAttr, org.identityconnectors.framework.common.objects.Attribute cnAttr)
oclass - object class.nameAttr - naming attribute.cnAttr - cn attribute.public static boolean isDN(String dn)
dn - string to be checked.public String getMembershipSearchFilter(ADConfiguration conf)
public net.tirasa.connid.bundles.ldap.commons.LdapEntry getEntryToBeUpdated(String entryDN)
public org.identityconnectors.framework.common.objects.ConnectorObject getEntryToBeUpdated(org.identityconnectors.framework.common.objects.Uid uid,
org.identityconnectors.framework.common.objects.ObjectClass oclass)
public Attributes getAttributes(String entryDN, String... attributes)
public Attribute userCannotChangePassword(org.identityconnectors.framework.common.objects.ConnectorObject obj, Boolean cannot)
public Set<SearchResult> basicLdapSearch(String filter, String... baseContextDNs)
Copyright © 2011–2016. All rights reserved.