DirContext adminCtx = getAdminContext();
DirContext adminCtx = getContextAsAdmin();
    public Name createUser( String uid, String password ) throws NamingException    {        DirContext adminCtx = getAdminContext();        Attributes user = new BasicAttributes( "uid", uid, true );        user.put( "userPassword", password );        Attribute objectClass = new BasicAttribute( "objectClass" );        user.put( objectClass );        objectClass.add( "top" );        objectClass.add( "person" );        objectClass.add( "organizationalPerson" );        objectClass.add( "inetOrgPerson" );        user.put( "sn", uid );        user.put( "cn", uid );        adminCtx.createSubcontext( "uid="+uid+",ou=users", user );        return new LdapName( "uid="+uid+",ou=users,ou=system" );    }