I’‘ve been trying off and on for a few days now to restrict users to our Jive server to a select group in the company defined by LDAP. It works fine if I just set the the baseDN to the nearest OU but any attempt to add the appropriate CN to the baseDN or to use searchFilter throws errors. So our company layout is basically one big OU and then a myriad of CN’‘s which define groups. I need to allow access to Jive Messenger only to one particular CN. (forgive me if I seem simplistic, I’'m new to using LDAP).
Here’'s my ldap portion of jivemessenger.xml
ldap.corporate.com
389
uid
cn
o=MyCorp , c=US
This works fine. If I add
((uid=)(cn=Information Systems))
I get an error of
2005.04.25 14:14:09 Trying to find a user’'s DN based on their username. uid: user4242, Base DN: o=MyCorp , c=US…
2005.04.25 14:14:09 Creating a DirContext in LdapManager.getContext()…
2005.04.25 14:14:09 Created hashtable with context values, attempting to create context…
2005.04.25 14:14:09 … context created successfully, returning.
2005.04.25 14:14:09 Starting LDAP search…
2005.04.25 14:14:10 … search finished
2005.04.25 14:14:10 User DN based on username ‘‘user4242’’ not found.
2005.04.25 14:14:10 Exception thrown when searching for userDN based on username '‘user4242’'
org.jivesoftware.messenger.user.UserNotFoundException: Username user4242 not found If I try
(&(uid=)(cn=Information Systems))
as stated in a few posts on this topic, I can’'t even start the service. It returns
ERROR 11144 (): Error reading XML properties
org.dom4j.DocumentException: Error on line 39 of document : The entity name must immediately follow the ‘’&’’ in the entity reference. Nested exception: The entity name must immediately follow the ‘’&’’ in the entity reference.
If I try no and instead set my baseDN to
cn=Information Systems, o=MyCorp , c=US
I throw an error
2005.04.25 14:07:42 Trying to find a user’'s DN based on their username. uid: user4242, Base DN: cn=Information Systems, o=MyCorp , c=US…
2005.04.25 14:07:42 Creating a DirContext in LdapManager.getContext()…
2005.04.25 14:07:42 Created hashtable with context values, attempting to create context…
2005.04.25 14:07:42 … context created successfully, returning.
2005.04.25 14:07:42 Starting LDAP search…
2005.04.25 14:07:42 Exception thrown when searching for userDN based on username ‘‘user4242’’
javax.naming.NameNotFoundException: LDAP: error code 32 - No Such Object; remaining name ‘’’’
Any guidance with this issue would be greatly appreciated!
~Chris