Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for IsErrorWithCode (0.06 seconds)

  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
    		}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Jul 12 01:04:53 GMT 2024
    - 12.4K bytes
    - Click Count (1)
Back to Top