diff options
author | Samuel Stauffer <samuel@descolada.com> | 2014-03-19 23:13:31 +0100 |
---|---|---|
committer | Samuel Stauffer <samuel@descolada.com> | 2014-03-19 23:13:31 +0100 |
commit | 5023af85baebfd0fb8b00d23be19a17f49e02028 (patch) | |
tree | a77d7b9b0b754842af325eb204b430722333de30 /bind.go | |
parent | Don't capitalize function arguments (diff) | |
download | ldap-5023af85baebfd0fb8b00d23be19a17f49e02028.tar ldap-5023af85baebfd0fb8b00d23be19a17f49e02028.tar.gz ldap-5023af85baebfd0fb8b00d23be19a17f49e02028.tar.bz2 ldap-5023af85baebfd0fb8b00d23be19a17f49e02028.tar.lz ldap-5023af85baebfd0fb8b00d23be19a17f49e02028.tar.xz ldap-5023af85baebfd0fb8b00d23be19a17f49e02028.tar.zst ldap-5023af85baebfd0fb8b00d23be19a17f49e02028.zip |
Diffstat (limited to 'bind.go')
-rw-r--r-- | bind.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -14,11 +14,11 @@ func (l *Conn) Bind(username, password string) error { messageID := l.nextMessageID() packet := ber.Encode(ber.ClassUniversal, ber.TypeConstructed, ber.TagSequence, nil, "LDAP Request") - packet.AppendChild(ber.NewInteger(ber.ClassUniversal, ber.TypePrimative, ber.TagInteger, messageID, "MessageID")) + packet.AppendChild(ber.NewInteger(ber.ClassUniversal, ber.TypePrimitive, ber.TagInteger, messageID, "MessageID")) bindRequest := ber.Encode(ber.ClassApplication, ber.TypeConstructed, ApplicationBindRequest, nil, "Bind Request") - bindRequest.AppendChild(ber.NewInteger(ber.ClassUniversal, ber.TypePrimative, ber.TagInteger, 3, "Version")) - bindRequest.AppendChild(ber.NewString(ber.ClassUniversal, ber.TypePrimative, ber.TagOctetString, username, "User Name")) - bindRequest.AppendChild(ber.NewString(ber.ClassContext, ber.TypePrimative, 0, password, "Password")) + bindRequest.AppendChild(ber.NewInteger(ber.ClassUniversal, ber.TypePrimitive, ber.TagInteger, 3, "Version")) + bindRequest.AppendChild(ber.NewString(ber.ClassUniversal, ber.TypePrimitive, ber.TagOctetString, username, "User Name")) + bindRequest.AppendChild(ber.NewString(ber.ClassContext, ber.TypePrimitive, 0, password, "Password")) packet.AppendChild(bindRequest) if l.Debug { |