| Newsgroups |
gmane.comp.isp.ispman.cvs |
| Message-ID |
<[email protected]> |
Update of /cvsroot/ispman/ispman/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3536/scripts
Modified Files:
ldifupdate
Log Message:
fixed bug #891748 (deleting user without mailbox)
this bug was actually just a side effect from some bogus LDAP attributes (see bug comments)
notice: run ldifupdate to fix your LDAP data
Index: ldifupdate
===================================================================
RCS file: /cvsroot/ispman/ispman/scripts/ldifupdate,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- ldifupdate 1 Feb 2004 15:56:12 -0000 1.5
+++ ldifupdate 7 Feb 2004 14:57:56 -0000 1.6
@@ -278,6 +278,18 @@
ldif_action("add","uid",$uid);
}
+ # checking for bogus mailHost
+ if ($entry->get_value("mailHost") eq "undefined"){
+ $msg.="deleting mailhost: undefined\n";
+ ldif_action("delete","mailhost","undefined");
+ }
+
+ # checking for bogus fileHost
+ if ($entry->get_value("fileHost") eq "undefined"){
+ $msg.="deleting filehost: undefined\n";
+ ldif_action("delete","filehost","undefined");
+ }
+
} else {
# check other entries here
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn