outposts/ldap: return user info when user can't search
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		| @ -9,7 +9,8 @@ import ( | ||||
|  | ||||
| func AKAttrsToLDAP(attrs interface{}) []*ldap.EntryAttribute { | ||||
| 	attrList := []*ldap.EntryAttribute{} | ||||
| 	for attrKey, attrValue := range attrs.(map[string]interface{}) { | ||||
| 	a := attrs.(*map[string]interface{}) | ||||
| 	for attrKey, attrValue := range *a { | ||||
| 		entry := &ldap.EntryAttribute{Name: attrKey} | ||||
| 		switch t := attrValue.(type) { | ||||
| 		case []string: | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Jens Langhammer
					Jens Langhammer