I'm writing an application which among other things, has to connect to a
LDAP server.
I'm very new to LDAP and for now, still trying to 'bind' to the server. The
array of
bytes I send to the server is:
[sent to server]
0x30 0x0C -- sequence, 12 bytes long
0x02 0x01 0x00 -- integer, 1 byte long, value 0 (message ID)
0x60 0x07 -- application 0, bind request, 7 bytes long
0x02 0x01 0x00 -- integer, 1 byte long, value 2 (LDAP version)
0x04 0x00 -- octet string, null (login)
0x00 0x00 -- octet string, null (password)
[--------------]
what the server sends back is:
[received from server]
0x30 0x0C
0x02 0x01 0x00
0x61 0x07 -- application 1
^^ ^^^
0x0A 0x01 0x00 -- error code == 16 (0x0A) which stands for
"noSuchAttribute"
^^
0x04 0x00
0x00 0x00
[--------------------]
I understand that the server is replying 'noSuchAttribute', what's that
mean!?
I believe I'm doing something completely wrong, but what!?!?! Can someone
help me on this?
Thanks,
Julio M Santos
_____________________________
MagicWeb Communications, Inc.
Sunnyvale CA 94086 - USA