ispman/bin ispman.ldifupdate,1.5,1.6

Joerg Delker <[email protected]> Thu, 07 Jun 2007 14:23:15 +0000
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/bin
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv31910

Modified Files:
	ispman.ldifupdate 
Log Message:
commented check for replacing organizationalUnit OCs with ispmanBranch
this is nonsense in the first place and breaks with PAB DIT


Index: ispman.ldifupdate
===================================================================
RCS file: /cvsroot/ispman/ispman/bin/ispman.ldifupdate,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- ispman.ldifupdate	21 Oct 2006 20:45:04 -0000	1.5
+++ ispman.ldifupdate	7 Jun 2007 14:23:13 -0000	1.6
@@ -1,4 +1,5 @@
 #!/usr/bin/perl
+use lib qw(/usr/share/ispman/lib /usr/share/ispman/ /etc/ispman);
 package ISPMan;
 
 # Script to update LDIF data
@@ -174,11 +175,11 @@
 
     # if entry starts with "ou=" replace
     # objectclasses top, organizationalunit with ispmanBranch
-    if ( $entry->dn() =~ m/^ou=/ && $oc[0] ne "ispmanBranch" ) {
-        $msg .= "replacing objectclass: -> \"ispmanBranch\"\n";
-        $entry->replace( "objectclass", "ispmanBranch" );
-
-    }
+    #if ( $entry->dn() =~ m/^ou=/ && $oc[0] ne "ispmanBranch" ) {
+    #    $msg .= "replacing objectclass: -> \"ispmanBranch\"\n";
+    #    $entry->replace( "objectclass", "ispmanBranch" );
+    #
+    #}
 
     # check oc for ispmanDomain
     if ( grep /^ispmanDomain$/, @oc ) {


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/