summaryrefslogtreecommitdiffstats
path: root/server/providers/ldap/sdap.c
Commit message (Collapse)AuthorAgeFilesLines
* Unify parse routines, use maps in generic searchesSimo Sorce2009-11-061-121/+58
| | | | | This remove redundant code and also allows the generic search to be used to use maps to convert attributes.
* Make useful function more broadly available.Simo Sorce2009-11-061-0/+27
|
* Rename sdap_id_map to sdap_attr_mapSimo Sorce2009-11-031-5/+5
| | | | | | Also start adding some infrastructure to use the USN counter when available. In particular add a place to add generic attrs mapping, ie attributes that are neither user nor group specific.
* Fix segfault when SASL is not used at allSimo Sorce2009-10-301-0/+2
|
* Add support to get rootDSE from the LDAP server.Simo Sorce2009-10-291-3/+37
| | | | | | | | | | | | Also fic sdap_get_generic_send() to be a bit more "generic" :-) Also figs bugs within it. This patch allow us 2 good things. A) we check that the server effectively supports GSSAPI auth before we try to use it. B) against IPA it substantially cuts delays when the server is offline because it uses a 5 second async timeout on the connection and doesn't try to do a slow synchronous kinit+sasl_bind if the server is not even available.
* added generic LDAP search sdap_get_generic_send/_recvSumit Bose2009-10-221-0/+85
|
* Move ldap provider configuration into its own fileSimo Sorce2009-10-141-183/+29
|
* Make options parser available to all providersSimo Sorce2009-10-141-204/+51
|
* add a replacement if ldap_control_create is missingSumit Bose2009-10-131-1/+0
|
* Differentiate between search and network timeoutsSimo Sorce2009-10-091-2/+3
| | | | | | Network timeouts are used in quick operations like bind. Search timeout is used for operations that can "legally" require more time. Change defaults to 6 and 60 seconds respectively.
* Fix long timeout on ldap operationSimo Sorce2009-10-011-2/+2
| | | | | Always use the network timeout defined in the options. But raise defaults to 60 seconds or enumerations can easily fail.
* Initial implementation of sasl bind supportSimo Sorce2009-10-011-1/+8
| | | | | | Inits krb5 credentials, if sasl mech is GSSAPI. Tested with GSSAPI and host keytab as well as user credentials. Updates also manpages with the new options.
* add new config options ldap_tls_cacert and ldap_tls_cacertdirSumit Bose2009-09-251-1/+59
|
* Upgrade confdb to version 2Stephen Gallagher2009-09-251-58/+58
| | | | | This converts a great many configuration options to the new standard format.
* Revert "Use syslog for logging error conditions in SSSD"Stephen Gallagher2009-09-231-33/+33
| | | | | | | | This reverts commit 8c50bd085c0efe5fde354deee2c8118887aae29d. Amended: commit 1016af2b1b97ad4290ccce8fa462cc7e3c191b2e also made use of the SYSLOG_ERROR() macro, so those portions of that code also needed to be reverted.
* Use syslog for logging error conditions in SSSDJakub Hrozek2009-09-211-33/+33
| | | | | This is just a band-aid until ELAPI is fully functional and ready to use.
* Turn ldap driver options into multitypeSimo Sorce2009-09-141-70/+184
| | | | | | | | | | This patch makes basic options multiype, the init function assigns a type from the initialization array, and processes values fetched from confdb accordingly. 4 types are supported so far: string, number, blob and boolean Also convert defines into enums where appropriate. Add fetch functions that check the requested type.
* Complete the removal of "legacy" option.Simo Sorce2009-09-111-3/+3
| | | | | | | | | The code was still dependent on it for the ldap driver. Changed the driver code to depend on the schema type. Fix defaults for user and groups trees. ATM if you use the rfc2307bis schema you have to put users and groups in 2 separate trees (what people does by default anyway. If this limitation will turn to be too hard, we will change this later.
* Make enumeration an independent taskSimo Sorce2009-08-271-6/+16
| | | | | | Always immediately return to DP, and update users/groups in the background. Also implements an optimization to retrieve only changed/new users/groups by filtering using the modifyTimestamp after the first query.
* Initial support for multiple schema typesSimo Sorce2009-08-271-7/+39
|
* some UPN handling fixesSumit Bose2009-08-241-1/+7
| | | | | | - making the realm part upper case is now optional and done in the LDAP backend - using a username@realm UPN is now optional
* enable usage of defaultBindDnSumit Bose2009-08-191-0/+1
|
* fixed the default value for tls_reqcertSumit Bose2009-07-101-1/+1
|
* Implement the ldap identity module.Simo Sorce2009-07-081-27/+42
| | | | This uses and exapands the async helpers.
* Add async helper functionsSimo Sorce2009-07-081-0/+367
These functions use the tevent_req async model, where a pair of _send/_recv functions pilot requests, with additional helpers like _done functions, and where needed multiple stage helpers.