hello,
i'd like to enable creation of LDAP users from MediaWiki, but i need new LDAP users to become members of some existing LDAP (not MediaWiki) groups. it would be nice if this was possible :) (or maybe it is already, but i missed the option.)
- river.
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.
V/r,
Ryan Lane
-----Original Message----- From: mediawiki-enterprise-bounces@lists.wikimedia.org [mailto:mediawiki-enterprise-bounces@lists.wikimedia.org] On Behalf Of River Tarnell Sent: Thursday, October 25, 2007 10:44 AM To: mediawiki-enterprise@lists.wikimedia.org Subject: [Mediawiki-enterprise] feature request: put new users into LDAPgroups
hello,
i'd like to enable creation of LDAP users from MediaWiki, but i need new LDAP users to become members of some existing LDAP (not MediaWiki) groups. it would be nice if this was possible :) (or maybe it is already, but i missed the option.)
- river.
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 {
mediawiki-enterprise@lists.wikimedia.org