Lane, Ryan:
Yeah, this is a feature I've wanted to add, but I
never had time (other
features have always risen to the top of the list).
I'll take patches for this... I'll also try to
get to it the next time I
start working on the plugin again.
for the moment i used the following rather ugly patch. if i have some time,
i'll see if i can come up with something a bit nicer...
- river.
--- LdapAuthentication.php Fri Oct 26 10:49:01 2007
+++ LdapAuthentication.php.new Fri Oct 26 10:49:49 2007
@@ -833,6 +833,11 @@
$this->printDebug( "Adding user", NONSENSITIVE );
if ( @ldap_add( $ldapconn, $userdn, $values ) ) {
$this->printDebug( "Successfully added user",
NONSENSITIVE );
+ # Put the user into some groups
+ $v = array();
+ $v["uniquemember"] = $userdn;
+ ldap_mod_add($ldapconn,
"cn=confluence-users,ou=group,dc=sso,dc=ts,dc=wikimedia,dc=org", $v);
+ ldap_mod_add($ldapconn,
"cn=jira-users,ou=group,dc=sso,dc=ts,dc=wikimedia,dc=org", $v);
@ldap_unbind();
return true;
} else {