Bug#296494: webmin-ldap-useradmin cannot create new user(no structural object class)

2005-03-04 Thread Matthijs Mohlmann
Hi,
I've created a patch for fixing this problem.
Regards,
Matthijs Mohlmann
--- ldap-useradmin/save_user.cgi.orig	2005-03-04 23:02:11.547390992 +
+++ ldap-useradmin/save_user.cgi	2005-03-04 23:02:34.210945608 +
@@ -274,7 +274,7 @@
 		$shadow = &shadow_fields();

 		# Add to the ldap database
-		@classes = ( "posixAccount", "shadowAccount" );
+		@classes = ( "person", "posixAccount", "shadowAccount" );

 		push(@classes, split(' ',$config{'other_class'}));
 		push(@classes, $samba_class) if ($in{'samba'});
@@ -285,6 +285,7 @@
 		$rv = $ldap->add($newdn, attr =>
 [ "cn" => $real,
 			  "uid" => $user,
+"sn" => $user,
 			  "uidNumber" => $uid,
 			  "loginShell" => $shell,
 			  "homeDirectory" => $home,


signature.asc
Description: OpenPGP digital signature


Bug#296494: webmin-ldap-useradmin cannot create new user(no structural object class)

2005-02-22 Thread gary ng
Package: webmin-ldap-useradmin
Version: 1.160-3
Distribution: testing
Severity: grave

The webmin module(both this and the latest one from
webmin.com) is just not compatible with debian's ldap
schema setup making this module not usable, thus the
grave severity.

The problem is that inetOrgPerson is not included in
the class which is a must for the ldap scheme to work.
In order to make this module work in debian, the
following change is needed (in
/usr/share/webmin/save_user.cgi) :

add inetOrgPerson to the object class needed
add 'sn' attribute as that is a must for inetOrgPerson

After the above changes, this module can create users
as expected. Though it is still not compatible with
debian's standard behaviour of each user has its own group.



__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]