Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SearchForUserGroups (0.11 sec)

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

    	// Lookup user DN
    	lookupRes, err := l.LDAP.LookupUsername(conn, username)
    	if err != nil {
    		errRet := fmt.Errorf("Unable to find user DN: %w", err)
    		return nil, nil, errRet
    	}
    
    	groups, err := l.LDAP.SearchForUserGroups(conn, username, lookupRes.ActualDN)
    	if err != nil {
    		return nil, nil, err
    	}
    
    	return lookupRes, groups, nil
    }
    
    // GetValidatedDNForUsername checks if the given username exists in the LDAP directory.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 12 01:04:53 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top