Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for GetValidatedDNForUsername (0.56 sec)

  1. cmd/admin-handlers-idp-ldap.go

    				return
    			}
    			targetUser = requestorParentUser
    		}
    		targetGroups = requestorGroups
    
    		// Deny if the target user is not LDAP
    		foundResult, err := globalIAMSys.LDAPConfig.GetValidatedDNForUsername(targetUser)
    		if err != nil {
    			writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    			return
    		}
    		if foundResult == nil {
    			err := errors.New("Specified user does not exist on LDAP server")
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Aug 08 02:46:04 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  2. internal/config/identity/ldap/ldap.go

    		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.
    // The given username could be just the short "login" username or the full DN.
    //
    // When the username/DN is found, the full DN returned by the **server** is
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Jul 12 01:04:53 UTC 2024
    - 12.4K bytes
    - Viewed (1)
Back to top