summaryrefslogtreecommitdiff
path: root/src/util/sss_ldap.c
AgeCommit message (Collapse)AuthorFilesLines
2013-05-02add sss_ldap_encode_ndr_uint32Pavel Březina1-0/+15
Converts uint32 to a string value that is suitable for octed string attributes.
2013-03-19Use common error facility instead of sdap_resultSimo Sorce1-6/+3
Simplifies and consolidates error reporting for ldap authentication paths. Adds 3 new error codes: ERR_CHPASS_DENIED - Used when password constraints deny password changes ERR_ACCOUNT_EXPIRED - Account is expired ERR_PASSWORD_EXPIRED - Password is expired
2012-08-21Unbreak build on RHEL5: replace ldap_destroy() with ldap_unbind_ext()Pavel Březina1-1/+1
ldap_destroy() is not present in RHEL5
2012-08-21Close LDAP connection when unable to install TLSPavel Březina1-13/+13
We were not closing LDAP connection when using SSL with invalid certificate. https://fedorahosted.org/sssd/ticket/1490
2012-01-14Log fixes for sdap_call_conn_cbStephen Gallagher1-1/+2
2011-12-16Use of uninitialized value in sss_ldap_dn_in_search_basesPavel Březina1-3/+3
https://fedorahosted.org/sssd/ticket/1112
2011-12-14Added sss_ldap_dn_in_search_bases()Pavel Březina1-0/+124
2011-12-07Always attempt to connect in sdap_async_sys_connect_doneJakub Hrozek1-18/+6
This syncs up with Samba commit 50e30afa608dfdeae8a260730ead9761ed424dad
2011-09-06sss_ldap_err2string() - ldap_err2string() to sss_ldap_err2string()Pavel Březina1-3/+3
https://fedorahosted.org/sssd/ticket/986
2011-09-06sss_ldap_err2string() - function createdPavel Březina1-0/+12
https://fedorahosted.org/sssd/ticket/986
2011-08-15Handle timeout during sss_ldap_init_sendJakub Hrozek1-1/+35
In some cases, where there would be no response from the LDAP server, there would be no R/W events on the LDAP fd, so sdap_async_sys_connect_done would never be called. This patch adds a tevent timer that cancels the connection after SDAP_NETWORK_TIMEOUT seconds.
2011-08-11Allow the O_NONBLOCK flag to be reset correctlyRalf Haferkamp1-14/+0
sssd set the O_NONBLOCK flag on the LDAP socket twice. First in set_fd_flags_and_opts(). And the second time in sdap_async_sys_connect_send() after storing a backup in the local state structure. The backup is later used to restore the original flags (after connect() succeeded). As NONBLOCK was already set before it didn't correctly reset that flag. https://fedorahosted.org/sssd/ticket/952
2011-07-11Move IP adress escaping from the LDAP namespaceJakub Hrozek1-8/+0
2011-07-05Call ldap_install_tls() on ldaps connectionsSumit Bose1-0/+15
2011-07-01Do not access state after tevent_req_done() is called.Sumit Bose1-10/+16
2011-07-01Do not attempt to close() a file descriptor < 0Stephen Gallagher1-1/+3
Coverity 10886
2011-06-30Use ldap_init_fd() instead of ldap_initialize() if availableSumit Bose1-0/+336
2011-06-02Add a utility function to escape IPv6 address for use in URIsJakub Hrozek1-0/+8
2011-04-08Don't pass NULL to printf for TLS errorsJakub Hrozek1-0/+18
https://fedorahosted.org/sssd/ticket/643
2010-02-18Rename server/ directory to src/Stephen Gallagher1-0/+70
Also update BUILD.txt