Search in sources :

Example 1 with BindInterceptorChain

use of net.sourceforge.myvd.chain.BindInterceptorChain in project OpenUnison by TremoloSecurity.

the class MyVDConnection method bind.

public void bind(String dn, String password) throws LDAPException {
    HashMap<Object, Object> request = new HashMap<Object, Object>();
    HashMap<Object, Object> session = new HashMap<Object, Object>();
    session.put(SessionVariables.BOUND_INTERCEPTORS, new ArrayList<String>());
    session.put("MYVD_BINDDN", new DistinguishedName(""));
    session.put("MYVD_BINDPASS", new Password());
    BindInterceptorChain chain = new BindInterceptorChain(new DistinguishedName(""), new Password(), 0, core.getGlobalChain(), session, request, core.getRouter());
    chain.nextBind(new DistinguishedName(dn), new Password(password), new LDAPConstraints());
}
Also used : HashMap(java.util.HashMap) DistinguishedName(net.sourceforge.myvd.types.DistinguishedName) LDAPConstraints(com.novell.ldap.LDAPConstraints) BindInterceptorChain(net.sourceforge.myvd.chain.BindInterceptorChain) Password(net.sourceforge.myvd.types.Password)

Aggregations

LDAPConstraints (com.novell.ldap.LDAPConstraints)1 HashMap (java.util.HashMap)1 BindInterceptorChain (net.sourceforge.myvd.chain.BindInterceptorChain)1 DistinguishedName (net.sourceforge.myvd.types.DistinguishedName)1 Password (net.sourceforge.myvd.types.Password)1