Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    			filter,
    			[]string{}, // only need DN, so pass no attributes here
    			nil,
    		)
    
    		searchResult, err := conn.Search(searchRequest)
    		if err != nil {
    			// Object does not exist error?
    			if ldap.IsErrorWithCode(err, 32) {
    				nonExistentUsers = append(nonExistentUsers, dn)
    				continue
    			}
    			return nil, err
    		}
    		if len(searchResult.Entries) == 0 {
    			// DN was not found - this means this user account is
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 9.9K bytes
    - Viewed (0)
Back to top