Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetNonEligibleUserDistNames (0.21 sec)

  1. internal/config/identity/ldap/ldap.go

    		if baseDN.Parsed.AncestorOf(gdn) {
    			return true
    		}
    	}
    	return false
    }
    
    // GetNonEligibleUserDistNames - find user accounts (DNs) that are no longer
    // present in the LDAP server or do not meet filter criteria anymore
    func (l *Config) GetNonEligibleUserDistNames(userDistNames []string) ([]string, error) {
    	conn, err := l.LDAP.Connect()
    	if err != nil {
    		return nil, err
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  2. cmd/iam.go

    		if !sys.LDAPConfig.IsLDAPUserDN(parentUser) {
    			continue
    		}
    
    		allDistNames = append(allDistNames, parentUser)
    	}
    
    	expiredUsers, err := sys.LDAPConfig.GetNonEligibleUserDistNames(allDistNames)
    	if err != nil {
    		// Log and return on error - perhaps it'll work the next time.
    		iamLogIf(GlobalContext, err)
    		return
    	}
    
    	// We ignore any errors
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
Back to top