Skip to content

Commit

Permalink
Tolerate DerefAliases requests w/o falling over
Browse files Browse the repository at this point in the history
  • Loading branch information
ned committed Dec 11, 2014
1 parent c43d537 commit 469fe5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server_search.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ func HandleSearchRequest(req *ber.Packet, controls *[]Control, messageID uint64,

if server.EnforceLDAP {
if searchReq.DerefAliases != NeverDerefAliases { // [-a {never|always|search|find}
// Server DerefAliases not supported: RFC4511 4.5.1.3
return NewError(LDAPResultOperationsError, errors.New("Server DerefAliases not supported"))
// TODO: Server DerefAliases not supported: RFC4511 4.5.1.3
}
if searchReq.TimeLimit > 0 {
// TODO: Server TimeLimit not implemented
Expand Down

0 comments on commit 469fe5a

Please sign in to comment.