|
|
@ -18,8 +18,8 @@ pub fn launch_ldap_connector() { |
|
|
|
loop { |
|
|
|
if CONFIG._enable_ldap() { |
|
|
|
match sync_from_ldap(&conn) { |
|
|
|
Ok(_) => println!("Sucessfully synced LDAP users"), |
|
|
|
Err(_) => println!("Couldn't sync from LDAP, check LDAP config"), |
|
|
|
_ => {} |
|
|
|
} |
|
|
|
} |
|
|
|
sleep(interval); |
|
|
|