packages/ssoinabox-webui/root/usr/local/share/ssoinabox/bin/ldap-groups-to-dbm
changeset 2 700d61d93b1b
parent 0 3906ca745819
equal deleted inserted replaced
1:6918cfc6fd6b 2:700d61d93b1b
    17 $ldap->bind($config->{'ldap_manager'}->{'dn'}, password => $config->{'ldap_manager'}->{'password'})
    17 $ldap->bind($config->{'ldap_manager'}->{'dn'}, password => $config->{'ldap_manager'}->{'password'})
    18 	or die "Failed to bind to LDAP: $!";
    18 	or die "Failed to bind to LDAP: $!";
    19 
    19 
    20 # search for POSIX groups
    20 # search for POSIX groups
    21 my $lr = $ldap->search(
    21 my $lr = $ldap->search(
    22 		base => 'dc=lan,dc=xx0r,dc=info'
    22 		base => $config->{'LDAP_BASEDN'}
    23 		, filter => '(objectClass=posixGroup)'
    23 		, filter => '(objectClass=posixGroup)'
    24 	);
    24 	);
    25 
    25 
    26 die "Failed to search LDAP..." if ( $lr->code );
    26 die "Failed to search LDAP..." if ( $lr->code );
    27 
    27