mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Remove Success output from homepage when using AD Auth.
This commit is contained in:
		@@ -18,9 +18,9 @@ ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3);
 | 
			
		||||
function authenticate($username, $password) {
 | 
			
		||||
    global $config, $ds;
 | 
			
		||||
 | 
			
		||||
    if ($username && $ds) {
 | 
			
		||||
    if ($ds) {
 | 
			
		||||
        // bind with sAMAccountName instead of full LDAP DN
 | 
			
		||||
        if (ldap_bind($ds, "{$username}@{$config['auth_ad_domain']}", $password)) {
 | 
			
		||||
        if ($username && ldap_bind($ds, "{$username}@{$config['auth_ad_domain']}", $password)) {
 | 
			
		||||
            // group membership in one of the configured groups is required
 | 
			
		||||
            if (isset($config['auth_ad_require_groupmembership']) &&
 | 
			
		||||
                $config['auth_ad_require_groupmembership'] > 0) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user