edu.internet2.middleware.grouperClient.examples
Class LdapExample2

java.lang.Object
  extended by edu.internet2.middleware.grouperClient.examples.LdapExample2

public class LdapExample2
extends Object


Constructor Summary
LdapExample2()
           
 
Method Summary
static DirContext context(String url, String user, String pass)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapExample2

public LdapExample2()
Method Detail

context

public static DirContext context(String url,
                                 String user,
                                 String pass)
                          throws NamingException
Parameters:
url - e.g. ldaps://ldap.school.edu/dc=school,dc=edu
user -
pass -
Returns:
the context
Throws:
NamingException

main

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