summaryrefslogtreecommitdiffstats
path: root/server/providers
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix an internal error when cache_credentials=FALSESumit Bose2009-11-251-1/+4
|
* Get TGT in a child process.Jakub Hrozek2009-11-258-164/+1060
| | | | | | | To avoid blocking in a synchronous call, the TGT is saved in a separate process Fixes: #277
* Split helpers for child processesJakub Hrozek2009-11-257-174/+261
| | | | | Moves several functions out of providers/krb5 hierarchy into a separate module so it can be shared by the ldap child.
* In IPA, the realm is always the domain uppercased.Simo Sorce2009-11-251-2/+7
|
* Fix internal options numbers testSimo Sorce2009-11-251-12/+24
| | | | | | Unfortunately since we changed the defines to an enum the preprocessor test stopped working. Turn tests into runtime tests that will abort the process.
* Really check return value from pam_set_itemSumit Bose2009-11-231-3/+3
|
* Read KDC info from file instead from environmentSumit Bose2009-11-238-44/+357
| | | | | | Then name or IP adress of the KDC is written into the pubconf directory into a file named kdcinfo.REALM. The locator plugin will then read this file and pass the data to the kerberos libraries.
* Speed up user requests while offlineStephen Gallagher2009-11-232-37/+77
| | | | | | | | | This adds a new boolean option to sss_dp_send_acct_req() called fast_reply. If we make a request to the backends and we are currently offline, this option will determine whether we should immediately return from the cache (acceptable for NSS requests) or potentially wait for an online check to complete (required for PAM requests).
* Make backend request type a bitfieldStephen Gallagher2009-11-233-5/+5
|
* Add ldap_pwd_policy optionSumit Bose2009-11-234-45/+92
|
* Add initial failover support for ldap and ipaSimo Sorce2009-11-2019-68/+845
| | | | | | | The retun values are still not directly used with ldap libraries that still do their own name resolution, but this patch introduces a very basic framework to have a multiple providers in one domain use and share a single failover service if they want to.
* Raise some timeoutsSimo Sorce2009-11-201-2/+2
| | | | | When using high debug levels or valgrind the code maybe slow enough that these timeouts were too strict.
* Filter by id range before actually storing entries.Simo Sorce2009-11-202-15/+86
| | | | This way we do not need to check for id ranges on every search.
* Enhance check for remote hostsSumit Bose2009-11-202-55/+97
|
* Add ipa_authSumit Bose2009-11-204-1/+350
| | | | | | | | To support IPA DS to Kerberos password migration a seperate authentication target is added. It calls the Kerberos authentication target and in the case of a 'Preauthentication Error' the LDAP authentication target. On success the Kerberos target is called again to request the TGT.
* Improve handling of ccache filesSumit Bose2009-11-203-202/+597
| | | | | | | - save current ccache file to sysdb - use the saved ccache file if the user has running processes - create an empty ccache if offline - return enviroment variables if offline
* Better behavior on cleanupSimo Sorce2009-11-204-20/+44
| | | | | | | | | | | | With the previous code in domains with many users and enumeration enable we would eventually end up making thousands of individual searches for entries in the clean-up process. Change the code to do a full enumeration before a cleanup so we do one single big search to update all entries and only then search for entries to purge. This also fixes the fact that the cleanup task was running at every enumeration instead of running every "ldap_purge_cache_timeout" seconds.
* Validate Kerberos credentials with local keytabSumit Bose2009-11-207-39/+252
|
* Failover fixes and additionsSimo Sorce2009-11-182-6/+24
|
* Store initgr expire time on initgr callSimo Sorce2009-11-181-6/+17
|
* Fix option name krb5_changepw_principalSumit Bose2009-11-132-2/+2
|
* Make 'permit' the default for the access targetSumit Bose2009-11-121-13/+4
|
* Fix double free case.Simo Sorce2009-11-121-1/+3
|
* Fixes for proxy providerSumit Bose2009-11-121-6/+23
| | | | | - use the correct private data for each PAM task - make proxy_pam_target a mandatory option for auth, chpass and access
* Fix inconsistent use of krb5_ccname_templateSumit Bose2009-11-122-2/+2
|
* Try to fix offline loginsSimo Sorce2009-11-121-12/+6
|
* Add support for host, source host and user categorySumit Bose2009-11-121-8/+54
| | | | | | | This patch add support for the host, source host and user category 'all'. All other category values are ignored so far. With the patch the interpretation of an empty memberUser and empty sourceHost and externalHost is changed to 'not applicable'.
* Add cleanup taskSimo Sorce2009-11-107-156/+912
|
* Refactor delete functions and add a fewSimo Sorce2009-11-101-20/+17
| | | | | | Refactor user/group delete functions so that they can be used without a transaction (they autostart an operation). Add user and group search function where a subfilter can be specified.
* Add check for access-time rules to ipa_access.Sumit Bose2009-11-103-0/+73
|
* Simplify krb5 child handlerSumit Bose2009-11-101-17/+18
| | | | | | | | Currently the Kerberos child handler evaluates the siginfo_t structure to wait for a specific child. This scheme is prone to error, especially when there are more than one child process active, and can produce missleading debug message. This patch simplifies the scheme as it waits for any child.
* Fix tevent_req error checking.Simo Sorce2009-11-0910-183/+72
| | | | When possible using a macro that correctly deals with tstate
* Fix enumerationsSimo Sorce2009-11-091-2/+6
| | | | | The counter was not set so we were storing only the first user for each anumeration.
* IPA time rules parsing routinesJakub Hrozek2009-11-092-0/+1242
|
* Check return, zero free hostent, adhere to styleSimo Sorce2009-11-091-8/+11
|
* Fix buildSimo Sorce2009-11-071-4/+8
|
* added access module of IPA providerSumit Bose2009-11-073-2/+1681
|
* Add fail over utility functionsMartin Nagy2009-11-062-0/+649
| | | | | | | | These functions should be used by providers to centrally manage lists of servers. Servers are grouped into services and each service has it's own list of servers. If, however, you will try to add a same server into two different services, they will share a common structure. This means that a host will only be resolved once.
* Check is ccache structure is initialized before calling krb5_cc_destroySumit Bose2009-11-061-8/+16
|
* Split async helpers in multiple filesSimo Sorce2009-11-065-3285/+3383
| | | | | | The size of sdap_async.c was unmanageable. This patch splits it into a generic file with common infrastructure calls, a file that handles connection calls and a file for id related calls.
* Reorganize ldap id provider filesSimo Sorce2009-11-064-547/+583
| | | | Split enum task in a separate file.
* Unify code to use the generic search interfaceSimo Sorce2009-11-061-593/+473
| | | | | | | This code removes redundancies in the code. both users and groups enumeration code use the same search generic search function now. Also the code to save users and groups have been unified across all callers.
* Fix and enhance initgroups callSimo Sorce2009-11-061-170/+637
| | | | | | | | This call was failing and was defective because it didn't properly handle the various different schemas we support. Now the function does 2 things: - Updates the user entry to make sure it is still valid - Retrieves every group the user is member of
* Unify parse routines, use maps in generic searchesSimo Sorce2009-11-064-130/+77
| | | | | This remove redundant code and also allows the generic search to be used to use maps to convert attributes.
* Store the original memberof attributes if anySimo Sorce2009-11-061-7/+30
| | | | | Also change the interface of sdap_save_user_send() so that it can be more easily reused like it was done for sdap_save_group_send().
* Make useful function more broadly available.Simo Sorce2009-11-063-30/+30
|
* add replacements for missing Kerberos callsSumit Bose2009-11-054-46/+17
|
* Rename sdap_id_map to sdap_attr_mapSimo Sorce2009-11-035-21/+70
| | | | | | 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.
* Make debug message less irritating.Sumit Bose2009-11-021-2/+2
| | | | | | The 'Unable to load' debug message is now only shown when the backend target is given explicitly in the config file. I the other case we let the caller decided how to handle this error condition.
* set ipa_hostname if not given in config fileSumit Bose2009-11-021-0/+20
|