Users using the Tequila login are invited to migrate to gitlab.epfl.ch. This instance will close for Tequila users by May 2020.

Commit cc166dac authored by Florian Vessaz's avatar Florian Vessaz

gitlab_sync.pl: Initialize GnuGeneration::LDAP

parent 03e81387
......@@ -11,5 +11,20 @@ unless (defined $token) {
die "gitlab_token missing in configuration file";
}
my $gl = GnuGeneration::GitLab->new(token => $token);
my $ldap_admin_dn = config->{ldap_admin_dn};
unless (defined $ldap_admin_dn) {
die "ldap_admin_dn missing in configuration file";
}
my $ldap_admin_password = config->{ldap_admin_password};
unless (defined $ldap_admin_password) {
die "ldap_admin_password missing in configuration file";
}
GnuGeneration::LDAP->credentials(
dn => $ldap_admin_dn,
password => $ldap_admin_password);
my $gl = GnuGeneration::GitLab->new(
token => $token,
verbose => 1);
$gl->update;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment