Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for LookupUsername (0.08 sec)

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

    		return nil, nil, err
    	}
    	defer conn.Close()
    
    	// Bind to the lookup user account
    	if err = l.LDAP.LookupBind(conn); err != nil {
    		return nil, nil, err
    	}
    
    	// 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)
    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