edu.internet2.middleware.grouper.app.loader.ldap
Class LdapGroupUserConverter

java.lang.Object
  extended by edu.internet2.middleware.grouper.app.loader.ldap.LdapGroupUserConverter

public class LdapGroupUserConverter
extends Object

This is an example of a converter for DN to user or group. see https://bugs.internet2.edu/jira/browse/GRP-1354 Convert a DN to a subjectId if its a person or to a groupName in Grouper if a group


Constructor Summary
LdapGroupUserConverter()
           
 
Method Summary
static String convertDntoSubjectIdOrIdentifier(String dn)
          convert dn to subject identifier or group name, log the result
static String equalsValuePart(String string)
          convert AB=whatever to whatever
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapGroupUserConverter

public LdapGroupUserConverter()
Method Detail

main

public static void main(String[] args)
Parameters:
args -

convertDntoSubjectIdOrIdentifier

public static String convertDntoSubjectIdOrIdentifier(String dn)
convert dn to subject identifier or group name, log the result

Parameters:
dn -
Returns:
the subject identifier or group name

equalsValuePart

public static String equalsValuePart(String string)
convert AB=whatever to whatever

Parameters:
string -
Returns:
the "whatever" value