users@glassfish.java.net

GF 3.1 dropping % sign in asadmin command properties

From: <forums_at_java.net>
Date: Wed, 25 May 2011 08:29:28 -0500 (CDT)

Hi,

I'm trying to add an LDAP security realm to Glassfish 3.1 on Windows but it
keeps dropping the '%' sign from any properties. I've tried:

  * asadmin create-auth-realm --target fs-cluster --classname
    com.sun.enterprise.security.auth.realm.ldap.LDAPRealm --property

directory=ldap\://localhost\:389:assign-groups=ou\=groups,dc\=example,dc\=co,dc\=uk:base-dn=dc\=example,dc\=co,dc\=uk:jaas-context=ldapRealm:search-filter=cn\=%s
    fsrealm
  * asadmin create-auth-realm --target fs-cluster --classname
    com.sun.enterprise.security.auth.realm.ldap.LDAPRealm --property

directory=ldap\://localhost\:389:assign-groups=ou\=groups,dc\=example,dc\=co,dc\=uk:base-dn=dc\=example,dc\=co,dc\=uk:jaas-context=ldapRealm:search-filter=cn\=\%s
    fsrealm
  * asadmin create-auth-realm --target fs-cluster --classname
    com.sun.enterprise.security.auth.realm.ldap.LDAPRealm --property

directory=ldap\://localhost\:389:assign-groups=ou\=groups,dc\=example,dc\=co,dc\=uk:base-dn=dc\=example,dc\=co,dc\=uk:jaas-context=ldapRealm:search-filter="cn\=%s"
    fsrealm

For each of them it puts "cn=s" in the search-filter property. Does anyone
know how I can get the % sign to stay in there?

Thanks,

Nick


--
[Message sent by forum member 'nickwi']
View Post: http://forums.java.net/node/805913