Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsErrorWithCode (0.09 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) {
    				ndn, err := ldap.ParseDN(dn)
    				if err != nil {
    					return nil, err
    				}
    				nonExistentUsers = append(nonExistentUsers, ndn.String())
    				continue
    			}
    			return nil, err
    		}
    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