I'm trying to create a LDAP realm in Glassfish 4.0 (build 89) but every time I tried so far, the following error occurred:
"Invalid property syntax, "=" in value: base-dn=\[...]"
I tried using different browsers and reinstalled Glassfish in Netbeans. The strange thing is that a friend of mine could copy my base-dn and it worked.
Thanks in advance!
This seems to be a bug in Glassfish 4.0. It throws this error if a property contains an equals sign (=).
See the following JIRA Issues:
This error doesn't occur in GlassFish 3.x, this may be the reason that it worked when your friend tried it.
Workaround: As a workaround you can just take some value without an equals sign, like e.g. abc
and save that. This should successfully create the LDAP realm. Then click on the created realm to edit the property. Now you can replace abc
with the desired value (and it can also contains equals signs), save again and you are done.
You have to remove al dc=
like this:
Before:
dc=hello,dc=world
After:
hello, world
Then, you can save it.
When it is effectively saved, you can edit it and let it in the correct form dc=hello,dc=world
This works for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With