gforge-commits
[Top][All Lists]
Advanced

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

[Gforge-commits] gforge/utils/ldap sql2ldif.pl,1.11,1.12


From: lo-lan-do
Subject: [Gforge-commits] gforge/utils/ldap sql2ldif.pl,1.11,1.12
Date: Sun, 16 May 2004 11:55:29 -0500

Update of /cvsroot/gforge/gforge/utils/ldap
In directory db.perdue.net:/tmp/cvs-serv19357/utils/ldap

Modified Files:
        sql2ldif.pl 
Log Message:
The big SCM pluginification plugin: removed lots of code (moved it
into gforge-plugin-scmcvs), added hooks, added the SCMPlugin class,
various tweaks here and there.


Index: sql2ldif.pl
===================================================================
RCS file: /cvsroot/gforge/gforge/utils/ldap/sql2ldif.pl,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- sql2ldif.pl 10 Jan 2004 22:14:05 -0000      1.11
+++ sql2ldif.pl 16 May 2004 16:54:56 -0000      1.12
@@ -16,12 +16,35 @@
 $chroot="/var/lib/gforge/chroot";
 &db_connect;
 
+$scm_username = "gforge_scm" ;
+
 # dump_header();
 
 # if (!($#ARGV+1)) {
 #      exit;
 # }
 
+print "dn: uid=$scm_username,ou=People,$sys_ldap_base_dn
+uid: $scm_username
+cn: Gforge SCM user
+objectClass: account
+objectClass: posixAccount
+objectClass: top
+objectClass: shadowAccount
+objectClass: debGforgeAccount
+userPassword: {crypt}x
+shadowLastChange: 10879
+shadowMax: 99999
+shadowWarning: 7
+loginShell: /bin/false
+debGforgeCvsShell: /bin/false
+uidNumber: $scm_uid
+gidNumber: $scm_uid
+homeDirectory: $chroot/svnroot
+gecos: Gforge SCM user
+
+" ;
+
 #
 #  Dump user entries (ou=People)
 #
@@ -118,6 +141,7 @@
        while(my ($username) = $rel->fetchrow()) {
                print "memberUid: $username\n";
        }
+       print "memberUid: $scm_username\n" ;
        print "\n";
 }
 
@@ -217,6 +241,7 @@
        while(my ($username) = $rel->fetchrow()) {
                print "memberUid: $username\n";
        }
+       print "memberUid: $scm_username\n" ;
        print "\n";
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]