www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - D LDAP library?

reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
Hello, got a question today from a user - is there an LDAP library for 
D? Thanks! -- Andrei
Aug 11 2014
parent reply "dnewbie" <run3 myopera.com> writes:
On Tuesday, 12 August 2014 at 00:36:17 UTC, Andrei Alexandrescu 
wrote:
 Hello, got a question today from a user - is there an LDAP 
 library for D? Thanks! -- Andrei
There is a raw binding to openldap c library. http://d.darktech.org/bindings/ldap.zip
Aug 11 2014
parent reply "Daniel Oliveira" <doliveirabrz gmail.com> writes:
On Tuesday, 12 August 2014 at 04:17:52 UTC, dnewbie wrote:
 On Tuesday, 12 August 2014 at 00:36:17 UTC, Andrei Alexandrescu 
 wrote:
 Hello, got a question today from a user - is there an LDAP 
 library for D? Thanks! -- Andrei
There is a raw binding to openldap c library. http://d.darktech.org/bindings/ldap.zip
Andrei, Yeah, I already know about these LDAP/OpenLDAP library (which is also most funded/written by Novell/Suse engineers), however that is all C based and I was thinking about it writing/rewriting all in D to be in 'D'Best or 'D'Smart code, adding a few extra features (such as thread polls) and things like that. Thanks, -Daniel
Aug 13 2014
next sibling parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
On 8/13/14, 12:46 AM, Daniel Oliveira wrote:
 On Tuesday, 12 August 2014 at 04:17:52 UTC, dnewbie wrote:
 On Tuesday, 12 August 2014 at 00:36:17 UTC, Andrei Alexandrescu wrote:
 Hello, got a question today from a user - is there an LDAP library
 for D? Thanks! -- Andrei
There is a raw binding to openldap c library. http://d.darktech.org/bindings/ldap.zip
Andrei, Yeah, I already know about these LDAP/OpenLDAP library (which is also most funded/written by Novell/Suse engineers), however that is all C based and I was thinking about it writing/rewriting all in D to be in 'D'Best or 'D'Smart code, adding a few extra features (such as thread polls) and things like that. Thanks, -Daniel
That would be a great candidate for std.net! -- Andrei
Aug 13 2014
parent "Daniel Oliveira" <doliveirabrz gmail.com> writes:
On Wednesday, 13 August 2014 at 14:11:28 UTC, Andrei Alexandrescu 
wrote:
 On 8/13/14, 12:46 AM, Daniel Oliveira wrote:
 On Tuesday, 12 August 2014 at 04:17:52 UTC, dnewbie wrote:
 On Tuesday, 12 August 2014 at 00:36:17 UTC, Andrei 
 Alexandrescu wrote:
 Hello, got a question today from a user - is there an LDAP 
 library
 for D? Thanks! -- Andrei
There is a raw binding to openldap c library. http://d.darktech.org/bindings/ldap.zip
Andrei, Yeah, I already know about these LDAP/OpenLDAP library (which is also most funded/written by Novell/Suse engineers), however that is all C based and I was thinking about it writing/rewriting all in D to be in 'D'Best or 'D'Smart code, adding a few extra features (such as thread polls) and things like that. Thanks, -Daniel
That would be a great candidate for std.net! -- Andrei
Andrei, Please, do we have any docs on the standards needed when writing new libraries for/in D? Also, do we have a doc with all the language statements, samples I could use when writing the new libraries, for example socket programming/statements with D and things like that? Thanks, -Daniel
Aug 13 2014
prev sibling parent reply "Sean Kelly" <sean invisibleduck.org> writes:
On Wednesday, 13 August 2014 at 07:46:08 UTC, Daniel Oliveira
wrote:
 On Tuesday, 12 August 2014 at 04:17:52 UTC, dnewbie wrote:
 On Tuesday, 12 August 2014 at 00:36:17 UTC, Andrei 
 Alexandrescu wrote:
 Hello, got a question today from a user - is there an LDAP 
 library for D? Thanks! -- Andrei
There is a raw binding to openldap c library. http://d.darktech.org/bindings/ldap.zip
Andrei, Yeah, I already know about these LDAP/OpenLDAP library (which is also most funded/written by Novell/Suse engineers), however that is all C based and I was thinking about it writing/rewriting all in D to be in 'D'Best or 'D'Smart code, adding a few extra features (such as thread polls) and things like that.
That would be great. My biggest issue with OpenLDAP is that there's no facility to use it with an event-based network model. There's some internal function to get the file descriptor for a connection, but you can't actually use it. Ideally, such a library would optionally let you do the event handling yourself and just call API routines to process message chunks on each event callback.
Aug 13 2014
parent "Daniel Oliveira" <doliveirabrz gmail.com> writes:
On Wednesday, 13 August 2014 at 18:34:34 UTC, Sean Kelly wrote:
 On Wednesday, 13 August 2014 at 07:46:08 UTC, Daniel Oliveira
 wrote:
 On Tuesday, 12 August 2014 at 04:17:52 UTC, dnewbie wrote:
 On Tuesday, 12 August 2014 at 00:36:17 UTC, Andrei 
 Alexandrescu wrote:
 Hello, got a question today from a user - is there an LDAP 
 library for D? Thanks! -- Andrei
There is a raw binding to openldap c library. http://d.darktech.org/bindings/ldap.zip
Andrei, Yeah, I already know about these LDAP/OpenLDAP library (which is also most funded/written by Novell/Suse engineers), however that is all C based and I was thinking about it writing/rewriting all in D to be in 'D'Best or 'D'Smart code, adding a few extra features (such as thread polls) and things like that.
That would be great. My biggest issue with OpenLDAP is that there's no facility to use it with an event-based network model. There's some internal function to get the file descriptor for a connection, but you can't actually use it. Ideally, such a library would optionally let you do the event handling yourself and just call API routines to process message chunks on each event callback.
Sean, Yep, I totally agree with you. -Daniel
Aug 13 2014