/** * @see javax.naming.directory.DirContext#search(javax.naming.Name, * javax.naming.directory.Attributes) */ public NamingEnumeration<SearchResult> search( Name name, Attributes matchingAttributes ) throws NamingException { return search( name, AttributeUtils.toCaseInsensitive( matchingAttributes ), null ); }
/** * @see javax.naming.directory.DirContext#rebind(java.lang.String, * java.lang.Object, javax.naming.directory.Attributes) */ public void rebind( String name, Object obj, Attributes attrs ) throws NamingException { rebind( new LdapName( name ), obj, AttributeUtils.toCaseInsensitive( attrs ) ); }
/** * @see javax.naming.directory.DirContext#modifyAttributes(java.lang.String, * int, javax.naming.directory.Attributes) */ public void modifyAttributes( String name, int modOp, Attributes attrs ) throws NamingException { modifyAttributes( new LdapName( name ), modOp, AttributeUtils.toCaseInsensitive( attrs ) ); }
/** * @see javax.naming.directory.DirContext#search(java.lang.String, * javax.naming.directory.Attributes, java.lang.String[]) */ public NamingEnumeration<SearchResult> search( String name, Attributes matchingAttributes, String[] attributesToReturn ) throws NamingException { return search( new LdapName( name ), AttributeUtils.toCaseInsensitive( matchingAttributes ), attributesToReturn ); }
/** * @see javax.naming.directory.DirContext#bind(java.lang.String, * java.lang.Object, javax.naming.directory.Attributes) */ public void bind( String name, Object obj, Attributes attrs ) throws NamingException { bind( new LdapName( name ), obj, AttributeUtils.toCaseInsensitive( attrs ) ); }
/** * @see javax.naming.directory.DirContext#createSubcontext(java.lang.String, * javax.naming.directory.Attributes) */ public DirContext createSubcontext( String name, Attributes attrs ) throws NamingException { Attributes attributes = AttributeUtils.toCaseInsensitive( attrs ); return createSubcontext( new LdapName( name ), attributes ); }
/** * @see javax.naming.directory.DirContext#rebind(javax.naming.Name, * java.lang.Object, javax.naming.directory.Attributes) */ public void rebind( Name name, Object obj, Attributes attrs ) throws NamingException { Dn target = buildTarget( JndiUtils.fromName( name ) ); try { HasEntryOperationContext hasEntryContext = new HasEntryOperationContext( getSession(), target ); if ( getDirectoryService().getOperationManager().hasEntry( hasEntryContext ) ) { doDeleteOperation( target ); } } catch ( Exception e ) { JndiUtils.wrap( e ); } bind( name, obj, AttributeUtils.toCaseInsensitive( attrs ) ); }
outServerEntry = ServerEntryUtils.toServerEntry( AttributeUtils.toCaseInsensitive( res .getAttributes() ), target, service.getSchemaManager() );
matchingAttributes = AttributeUtils.toCaseInsensitive( matchingAttributes );
attrs = AttributeUtils.toCaseInsensitive( attrs ); Attributes attributes = ( Attributes ) attrs.clone();
serverEntry = ServerEntryUtils.toServerEntry( AttributeUtils.toCaseInsensitive( attrs ), target, getDirectoryService().getSchemaManager() );