Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for LookupUserDN (0.18 sec)

  1. cmd/site-replication.go

    	// Extract the username and lookup DN and groups in LDAP.
    	ldapUser, isLDAPSTS := claims.Lookup(ldapUserN)
    	if isLDAPSTS {
    		// Need to lookup the groups from LDAP.
    		_, ldapGroups, err := globalIAMSys.LDAPConfig.LookupUserDN(ldapUser)
    		if err != nil {
    			return fmt.Errorf("unable to query LDAP server for %s: %w", ldapUser, err)
    		}
    
    		cred.Groups = ldapGroups
    	}
    
    	// Set these credentials to IAM.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
Back to top