Git Product home page Git Product logo

ldap's People

Contributors

cmccarthy1 avatar jlucid avatar sshanks-kx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ldap's Issues

Document error codes

search/etc can report error codes (e.g. 5i for timeout).
Document/reference error codes.

QHOME shouldnt be required to build package

Building package is failing to build on my build box
CMake Error at cmake_install.cmake:62 (FILE):
file INSTALL given no DESTINATION

I dont have q installed on my build box & dont need it to build

ldap_initialize addition

https://www.openldap.org/software/man.cgi?query=ldap_initialize&sektion=3&apropos=0&manpath=OpenLDAP+2.4-Release

int ldap_initialize(ldp, uri)
LDAP **ldp;
char *uri;

ldap_initialize() acts like ldap_init(), but it returns an integer
indicating either success or the failure reason, and it allows to
specify details for the connection in the schema portion of the URI.
The uri parameter may be a comma- or whitespace-separated list of URIs
containing only the schema, the host, and the port fields. Apart from
ldap, other (non-standard) recognized values of the schema field are
ldaps (LDAP over TLS), ldapi (LDAP over IPC), and cldap (connectionless
LDAP). If other fields are present, the behavior is undefined.

search result when max limit hit

User may do a search with a sizelimit which is more than the servers size limit.
Therefore the user may get the result without knowing that it was actually truncated.
Proving result code along with the results should aid this.

Add more details to dll to lib conversion to doc

Ref: "Converting msys2 provided libldap.dll to libldap.lib for use with Visual Studio" section on README.md

@@@ It's worth mentioning that you need to run dll2lib.bat from a VS command prompt (it uses a couple of tools on the MSVS path). Or you could check ERRORLEVEL in the .bat file after the calls to dumpbin and lib:

Add to readme interface use cases

Not just for user permission/group validation, but can be used to consume & analyse data stored (e.g. whats the employee retention, which user machines are due for refresh, etc).

getOption on LDAP_OPT_API_INFO can cause crash

Caused a problem on a ubuntu 18 box - works ok on centos7 with default libldap

\l ldap.q
\c 25 2000

globalSession:1i
.ldap.init[globalSession;enlist $"ldap://localhost:389"] .ldap.setOption[globalSession;LDAP_OPT_PROTOCOL_VERSION;3]
.ldap.getOption[globalSession;`LDAP_OPT_API_INFO]

Travis build

Add .travis.yml file for travis builds/releases.

Extra protection on kdbldap_init

It might be work checking that the sess idx isn't already in use by
calling getSession(idx) and returning a error is it doesn't return NULL.
Alternatively, rather than having the user specifying the sess idx to
kdbldap_init(), you could generate a unique value, e.g. use a session counter
that gets incremented every time a session is added (but is not decremented
on session remove)

Discover supported bind mechanisms

Discover what the possible values are for 'mechanism' can be in the following call - ldap_sasl_bind(LDAP *ld, const char *dn, const char *mechanism,

Ref: https://www.openldap.org/software/man.cgi?query=ldap_sasl_bind_s&sektion=3&apropos=0&manpath=OpenLDAP+2.4-Release

Simple bind uses 'LDAP_SASL_SIMPLE'

"...he mechs parameter should contain
a space-separated list of candidate mechanisms to use. If this
parameter is NULL or empty the library will query the
supportedSASLMechanisms attribute from the server's rootDSE for the
list of SASL mechanisms the server supports."

Docs should be included with release

New docs folder wont currently be added to a release build - should be included in the future while docs are there.
.travis.yml example area
e.g.
elif [[ $TRAVIS_OS_NAME == "windows" ]]; then
7z a -tzip $FILE_NAME README.md install.bat LICENSE q examples;
elif [[ $TRAVIS_OS_NAME == "linux" || $TRAVIS_OS_NAME == "osx" ]]; then
tar -zcvf $FILE_NAME README.md install.sh LICENSE q examples;

Ability to get secondary error info (e.g. from 3rd party sasl lib)

running ldapsearch can often print 'additional info' on error e.g.

[root@7f7b9d2027ca qinstall]# LD_LIBRARY_PATH=/usr/lib/:$LD_LIBRARY_PATH ldapsearch -H ldap://simon.edt.org  -D 'dc=edt,dc=org' -Y GSSAPI -N 1 
SASL/GSSAPI authentication started
ldap_sasl_interactive_bind: Local error (-2)
	additional info: SASL(-1): generic failure: GSSAPI Error: Unspecified GSS failure.  Minor code may provide more information (Server ldap/[email protected] not found in Kerberos database)

currently, for -2 error, running
.ldap.err2string[-2i]
gives
"Local error"
as per first line of the ldapsearch error, but would be helpful to be able to get what ldapsearch shows for its 'additional info'.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.