Recommendations for an LDAP library to use with ActiveDirectory?

1,472 views
Skip to first unread message

Eric Johnson

unread,
May 27, 2014, 2:47:01 PM5/27/14
to golan...@googlegroups.com
I started with a search http://go-search.org/search?q=ldap.

From that, following the myriad options, looking at the GitHub graph, and examining the various API docs, I hit upon

... as the most likely stable and full featured version.

However, when I use it, I get back an error:

*ldap.LDAPError(LDAP Result Code 201 "ErrorNetwork": Invalid packet format)

Which suggests that there's a bug in this library. Or perhaps just incompatible with my company's particular AD server?

Since debugging the code, or trying out several other libraries might all be time-consuming tasks, I thought I'd check here first.

Eric.


Skip Tavakkolian

unread,
May 27, 2014, 3:00:31 PM5/27/14
to Eric Johnson, golang-nuts
I've used and am impressed by James McKaskill's implementation of LDAP and Kerberos for AD auth.



--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anton Maltsev

unread,
Apr 17, 2015, 1:09:37 PM4/17/15
to golan...@googlegroups.com, er...@tibco.com
James implementation is good cause of Kerberos and AD, but it is only searching meanwhile https://github.com/mavricknz/ldap has full CRUD implemented for LDAP.

вторник, 27 мая 2014 г., 22:00:31 UTC+3 пользователь Skip написал:

John Weldon

unread,
Apr 17, 2015, 1:30:50 PM4/17/15
to Anton Maltsev, Go Lang, er...@tibco.com
Hi Anton, Eric, Gophers;


I've tried to consolidate the various go-ldap libraries into one: 

...which shares ancestry with mavricknz's repo and includes some bugfixes and enhancements.

You can include it by using gopkg.in/ldap.v1


There are many other forks from mmitton's original repo.
This version is used every day in a production environment, has had some community involvement in adding functionality and in fixing bugs.
This version also uses gopkg.in to provide stable API's for consumers.


I welcome pull requests and consolidation of other derivatives of mmitton/ldap into this one too.


Cheers,



--
John Weldon

Anton Maltsev

unread,
Apr 17, 2015, 1:53:06 PM4/17/15
to johnw...@gmail.com, Go Lang, er...@tibco.com
Hi John,

It looks good, you doing great! Thank you.
I'm wokring on pretty similar idea, but I didn't found adding LDAP objects, my goal is to combine simple connection, TLS, opnened connection via SASL tunnel, i.e. SSL + supporting AD.

Cheers,
Anton
--
Kind regards,
Maltsev Anton
mailto: anton....@gmail.com
cell phone: +7(950) 0290018
skype: anton.maltsev
Reply all
Reply to author
Forward
0 new messages