tapmodo / node-ldif

Nodejs LDIF (LDAP Data Interchange Format) parser based on RFC2849
9 stars 7 forks source link

The library will not create the JSON if I request the root DN #6

Open cosminghitea opened 6 years ago

cosminghitea commented 6 years ago

Hello,

The problem is this library don't take in consideration if a user what to search the top of the ldap server. I will show you the message that I receive when I use the ldapsearch: image And the error from this library: image Somehow this is not covered in this library.

To reproduce this error use this command to search and put the data into a file: image Then using the library take the data from the ldif and try to make it a JSON.

cosminghitea commented 6 years ago

I added a solution in the pull request: https://github.com/tapmodo/node-ldif/pull/7