Closed billjamzz closed 9 years ago
Cheers for logging...
The only real difference I can see between the 2 asadmin commands is that the working one is double quoted...
I'll try and get a look at that this weekend... As I've definitely created auth realms successfully before... Albeit not as complex as yours :)
@billjamzz I managed to get this working with the code as is, by changing the 'properties' value from a string to a hash, like so:
authrealm { 'ZumaRealm2z':
ensure => present,
portbase => '8000',
asadminuser => 'admin',
user => 'vagrant',
#classname => 'com.j2.core.zuma.security.ZumaRealm',
classname => 'com.sun.enterprise.security.auth.realm.ldap.LDAPRealm',
#properties => "search-filter=sAMAccountname\=%s:search-bind-password=password:jaas-context=zumaRealm:base-dn=DC\=j2global,DC\=com:directory=ldap\://example.com\:389:group-search-filter=member\=%d:search-bind-dn=j2global\password",
properties => {
'search-filter' => 'sAMAccountname=%s',
'search-bind-password' => 'password',
'jaas-context' => 'zumaRealm',
'base-dn' => 'DC=j2global,DC=com',
'directory' => 'ldap://example.com:389',
'group-search-filter' => 'member=%d',
'search-bind-dn' => 'j2global\password'
}
So this is probably a documentation issue rather than a functionality one :)
Let me know if the above works for you...
Cheers Gavin
that worked, thank you!
Cool, cheers for confirming. I'll try and get the docs updated to better explain the options...
Closes #47 On 10 Mar 2015 17:55, "billjamzz" notifications@github.com wrote:
that worked, thank you!
— Reply to this email directly or view it on GitHub https://github.com/fatmcgav/fatmcgav-glassfish/issues/47#issuecomment-78109919 .
same command run at command line works fine.
It seems like its not honoring the --classname when run through puppet.
Manifest:
tried various levels of '\' too.