This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Issue setting uniqueName

Nov 15th, 2010, 07:41 AM

Hi folks,

I've writing an application using spring ldap and I bascially want to be able to create users as well as user groups (roles). I can create the user objects, but then when I try to update the groups for the new user, the the group doesn;t get updated and I don't get any errors/exceptions indicating what the problem is.

As I'm not getting any errors thrown, I'm unsure why the entry is not being created. Has anyone got any ideas? Also, is there any way to access the base dn of dc=aepona,dc=com which is supplied in the contextSource to the ldapTemplate?

Just bumping this post as it's had a number of views but no suggestions. I'm going to try writing some integration tests to see whether it shines any further light on the issue. I'm using OpenDS if that means anything further to anyone?

What I'm finding is that the shouldUpdateGroupTableUsingGroupContext method (which is how I thought this should be coded) does not update the cn=subscriber,ou=roles, dc=integration,dc=test directory, but the shouldUpdateGroupTableUsingOwnArray method does update the directory.

Any ideas on why the shouldUpdateGroupTableUsingGroupContext method is not working as expected would be very much appreciated.