user not found
This commit is contained in:
@@ -387,8 +387,9 @@ func (cli *Client) findBasicUserDetails(cn conn, username string, attrs []string
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if len(entries) != 1 {
|
||||
if len(entries) == 0 {
|
||||
// We didn't find the user.
|
||||
fmt.Println("user not found")
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user