public void add(LDAPEntry entry) throws LDAPException { this.add(entry,(LDAPConstraints) null); }
public LDAPResponseQueue bind( int arg0, String arg1, byte[] arg2, LDAPResponseQueue arg3, LDAPConstraints arg4) throws LDAPException { return null; }
public void delete(String dn) throws LDAPException { this.delete(dn,(LDAPConstraints) null); }
public void rename( String dn, String newRdn, String newParentDN, boolean delOld, LDAPConstraints constr) throws LDAPException { LDAPControl[] controls = constr != null ? constr.getControls() : null; LDAPModifyDNRequest msg = new LDAPModifyDNRequest(dn,newRdn,newParentDN,delOld,controls); this.sendMessage(msg); }
/** * Short hand for executing a modification operation (add/modify/delete/rename) * @param message The message * @return The response * @throws LDAPException */ private LDAPMessage sendMessage(LDAPMessage message) throws LDAPException { return (LDAPMessage) sendMessage(message,false); }
public void modify( String dn, LDAPModification mod, LDAPConstraints consts) throws LDAPException { this.modify(dn,new LDAPModification[] {mod},consts); }
public LDAPSearchResults search( String base, int scope, String filter, String[] attrs, boolean typesOnly) throws LDAPException { return this.search(base,scope,filter,attrs,typesOnly,(LDAPSearchConstraints) null); }
public LDAPResponseQueue rename( String arg0, String arg1, boolean arg2, LDAPResponseQueue arg3, LDAPConstraints arg4) throws LDAPException { return null; }
public void disconnect(LDAPConstraints cons) throws LDAPException { this.disconnect(); }
public LDAPSearchResults search( String base, int scope, String filter, String[] attrs, boolean typesOnly, LDAPSearchConstraints cons) throws LDAPException { LDAPControl[] controls = cons != null ? cons.getControls() : null; LDAPSearchRequest msg = new LDAPSearchRequest(base,scope,filter,attrs,0,0,0,typesOnly,controls); DSMLSearchResults res = this.execQuery(msg); if (res == null) res = new DSMLSearchResults(null); return res; }
public LDAPMessageQueue sendRequest(LDAPMessage request, LDAPMessageQueue queue) throws LDAPException { this.sendMessage(request); return null; }
public void modify(String dn, LDAPModification mod) throws LDAPException { this.modify(dn,new LDAPModification[] {mod},(LDAPConstraints) null); }
public void bind(String binddn, String password) throws LDAPException { if (isBound) { //first clear old credentials on server GetMethod get = new GetMethod(this.serverString + "?clearbind"); try { con.executeMethod(get); } catch (HttpException e) { } catch (IOException e) { } } //set the credentials globaly this.isBound = false; con.getState().setCredentials(null,null,new UsernamePasswordCredentials(binddn,password)); //try's to connect in order to bind... this.search("",LDAPConnection.SCOPE_BASE,"(objectClass=*)", new String[] {"1.1"},false); this.isBound = true; }
public void rename(String dn, String newRdn, String newParentDN, boolean delOld) throws LDAPException { this.rename(dn,newRdn,newParentDN,delOld,(LDAPConstraints) null); }
public void bind( String binddn, String pass, Map arg2, Object arg3, LDAPConstraints arg4) throws LDAPException { this.bind(binddn,new String(pass)); }
/** * Short hand for retrieving results from a query * @param message * @return The search results * @throws LDAPException */ private DSMLSearchResults execQuery(LDAPMessage message) throws LDAPException { return (DSMLSearchResults) sendMessage(message,true); }
public void modify(String dn, LDAPModification[] mods) throws LDAPException { this.modify(dn,mods,(LDAPConstraints) null); }
public void bind( String binddn, String pass, String[] arg2, Map arg3, Object arg4, LDAPConstraints arg5) throws LDAPException { this.bind(binddn,new String(pass)); }
public void modify( String dn, LDAPModification[] mods, LDAPConstraints consts) throws LDAPException { LDAPControl[] controls = consts != null ? consts.getControls() : null; LDAPModifyRequest msg = new LDAPModifyRequest(dn,mods,controls); this.sendMessage(msg); }
public void bind( String binddn, String arg1, String[] arg2, Map arg3, Object arg4) throws LDAPException { this.bind(binddn,new String(pass)); }