1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 05:09:42 +02:00

Prep 5.11.3

This commit is contained in:
Harvey Kandola 2024-02-16 10:53:02 -05:00
parent 69940cb7f1
commit f2ba294be8
47 changed files with 169 additions and 3090 deletions

View file

@ -1,7 +1,8 @@
package ldap
import (
"fmt"
"log"
ber "github.com/go-asn1-ber/asn1-ber"
)
@ -62,6 +63,7 @@ func NewAddRequest(dn string, controls []Control) *AddRequest {
DN: dn,
Controls: controls,
}
}
// Add performs the given AddRequest
@ -83,7 +85,7 @@ func (l *Conn) Add(addRequest *AddRequest) error {
return err
}
} else {
return fmt.Errorf("ldap: unexpected response: %d", packet.Children[1].Tag)
log.Printf("Unexpected Response: %d", packet.Children[1].Tag)
}
return nil
}