[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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 +0000
+++ ldap-useradmin/save_user.cgi	2005-03-04 23:02:34.210945608 +0000
@@ -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,

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: