I've seen some related threads but I don't think they're exactly the same.
I'm on the latest v1.2..... using Active directory
so here's the jist of my code:
Where setAttributes does a whole bunch of:Code:DistinguishedName dn = new DistinguishedName(dnString); DirContextAdapter ctx = (DirContextAdapter) ldapTemplate.lookup(dn); ctx = setAttributes(ctx, user); ldapTemplate.modifyAttributes(dn, ctx.getModificationItems());
I'm able to update some of the values.... and I can't with some. For example, I try to update the "manager" value (which is a DN). I put in some debug code before the call to modifyAttributes(....):Code:adapter.setAttributeValue("blah", user.getBlah());
And the output looks good...... all the items that I want changed are there and so are their values.Code:ModificationItem mi[] = ctx.getModificationItems(); System.out.println("Mod Items count " + mi.length); int j=0; while(j < mi.length){ System.out.println("modItem " + mi[j].toString()); j++; }
No exceptions thrown or anything.....
So where am I going wrong?
Or is this a known problem?
Thanks!


Reply With Quote