users@glassfish.java.net

ldap exception while configuring security

From: <glassfish_at_javadesktop.org>
Date: Tue, 10 Aug 2010 17:56:04 PDT

Hi

I am currently working on POC for glassfish , while trying to configure ldap with a valid directory server which is an Active Directory ,I am getting this exception


org.jvnet.hk2.config.TransactionFailure: "Constraints for this bean violated. Message = base-dn, directory and jaas-context have to be specified for LDAPRealm" org.jvnet.hk2.config.WriteableView.canCommit(WriteableView.java:301) org.jvnet.hk2.config.Transaction.commit(Transaction.java:96) org.glassfish.admin.amx.impl.config.AMXConfigImpl.commit(AMXConfigImpl.java:1254) org.glassfish.admin.amx.impl.config.AMXConfigImpl.access$400(AMXConfigImpl.java:108) org.glassfish.admin.amx.impl.config.AMXC...

currenlty the below are the setting i am trying to use for security config

jaas context ldapRealm
directory ldap://domain.ldap.com:389
Base DN : dc=starwoodhotels,dc=com
[Message sent by forum member 'shantesh']

http://forums.java.net/jive/thread.jspa?messageID=479826