summaryrefslogtreecommitdiffstats
path: root/server
Commit message (Collapse)AuthorAgeFilesLines
* added more flexible handling of client protocolSumit Bose2009-05-154-2/+63
| | | | | - allow different protocol versions for PAM and NSS - support more than one protocol version in the responder
* Manpage generationJakub Hrozek2009-05-147-3/+240
| | | | | | | | | Provides a set of make rules for generating UNIX manual pages from DocBook 4.5 source as well as sample manpage for sss_useradd. Automatic generation of manual pages during "make" process is tunable with config parameter "--with-manpages". To rebuild the man pages separately, use the "make doc" target. Before building, the manpages are validated using a DTD schema.
* Update configure rules for LDB and POPTStephen Gallagher2009-05-142-4/+9
| | | | | | We need to ensure that configure fails with an error if the popt development libraries are not present or if ldb module support is not available.
* More useful error message when adding user/group that already existsJakub Hrozek2009-05-142-2/+18
| | | | Fixes: RHBZ #498462
* Check for valid ID range, domains overlapJakub Hrozek2009-05-141-0/+36
|
* added check for NULL valuesSumit Bose2009-05-143-9/+8
| | | | | - allow unspecified value in struct pam_data to be NULL - check if domain structure is initialized in pam_reply
* Fix warnings in monitor.c and confdb.cStephen Gallagher2009-05-122-7/+13
|
* Separate confdb API from confdb setupStephen Gallagher2009-05-118-374/+458
| | | | | | | Refactoring the confdb so that the setup code can be linked separately from the access API. This is being done so that our plugins do not need to link against the collection and ini_config libraries.
* Chdir to / when daemonizingJakub Hrozek2009-05-081-0/+11
|
* Use tevent for shutdown signals, remove old pidfile, make sssd single-instance.Jakub Hrozek2009-05-082-1/+79
| | | | | | | | Use tevent signal handling facilities for handlong SIGTERM and SIGINT in the monitor. Remove pidfile on SIGTERM and SIGINT. Make sssd single-instance by checking if we suceeded in signaling the process in the pidfile.
* redirect stderr to /dev/null in initscriptJakub Hrozek2009-05-081-1/+1
|
* Fix some more return paths using uninitalized retSimo Sorce2009-05-061-3/+3
|
* Fixes for porting SSSD to Debian-based platformsStephen Gallagher2009-05-045-5/+7
|
* Fix configuration corruption issueStephen Gallagher2009-04-291-2/+20
| | | | | | | | | | In the event that the configuration was corrupt the first time the SSSD is started, it would write in the special data for attributes and indexes, but it would fail before writing the version. Subsequent reloads (even with correct configuration files) would fail, since they would try again to write the attributes and indexes and fail since they were already present.
* Fix use of uninitialized return variableSimo Sorce2009-04-291-5/+5
|
* Add debug param to the tools, fix lock/unlock in sss_usermodJakub Hrozek2009-04-286-3/+31
|
* Invoke shadow-utils in sss_ toolsJakub Hrozek2009-04-2811-48/+643
| | | | | Make shadow-utils base path configurable Use default values for params, allow configuring them
* handle other pam calls when offlineSumit Bose2009-04-281-0/+10
|
* Use different attribute for cached passwords change timeSumit Bose2009-04-281-2/+2
|
* enable offline handling for native LDAP backendSumit Bose2009-04-281-4/+48
|
* change PAM timeout the match NSS timeSumit Bose2009-04-282-3/+1
|
* Use different attribute for cached passwordsSimo Sorce2009-04-272-3/+5
| | | | | | | This fixes a bug with legacy backends where the cached password would be cleared on a user update. Using a different attribute we make sure a userPassword coming from the remote backend does not interfere with a cachedPassword (and vice versa).
* Release version 0.3.3sssd-0_3_3Stephen Gallagher2009-04-271-1/+1
|
* Eliminate segfault on NSS and PAM responder startup.Stephen Gallagher2009-04-271-0/+4
| | | | | | | | If the data provider is not yet available when NSS and PAM start, they will generate a segmentation fault when trying to configure their automatic reconnection to the Data Provider. I've now added code in sss_dp_init() to detect whether the dp_ctx is NULL and return EIO.
* Stress testJakub Hrozek2009-04-273-1/+333
|
* enable uid/gid generation againSumit Bose2009-04-271-3/+6
|
* handle pam acct_mgmt, setcred and open/close_session before user bind in ↵Sumit Bose2009-04-271-0/+17
| | | | ldap backend
* fix for pam proxy chauthtokSumit Bose2009-04-274-9/+22
| | | | | | | | | | When a user from a domain served by the proxy backend changes his password with passwd the passwd command asks for the old password, but it is not validated by the pam_chauthtok call in the proxy backend, because it is running as root. If the request is coming the unpriviledged socket we now call pam_authenticate explicitly before pam_chauthtok.
* removed length of unused element from packet size calculationSumit Bose2009-04-231-1/+1
| | | | | | The domain name is no longer send as an element on its own, but if set as a member of the response array. If the user was not found pd->domain is NULL and strlen will seg-fault.
* fixes for user and group creation in LOCAL domainSumit Bose2009-04-232-1/+20
| | | | | - added range check for supplied UIDs and GIDs - initialize pc_gid to 0 to trigger gid generation
* fix for a seq fault when pam_reply_delay is called.Sumit Bose2009-04-221-2/+2
| | | | see https://fedorahosted.org/sssd/ticket/25
* sssd 0.3.2sssd-0_3_2Jakub Hrozek2009-04-201-1/+1
|
* Force user check and discover user's domainSimo Sorce2009-04-176-297/+593
| | | | | | | | | | | Force a user lookup against the users domain provider. If a user domain is not specified search though all non fully qualifying domains. Perform authentication against the corrent domain auth backend, based on the user's domain found in the lookup if one was not specified. Also move the NSS-DP functions in COMMON-DP as they are reused by the PAM responder too now.
* Avoid unnecessary reloads of config.ldbSimo Sorce2009-04-161-4/+37
| | | | | | Add code to check if the file has changed since the last update was performed. Avoid dumping and reloading the config ldb if the modification time of the configuration file has not changed at all.
* Fix by_id enumeration with multiple domainsSimo Sorce2009-04-161-0/+10
| | | | | | We need to stop parsing domains as soon as a caaandidate is found and let the callback search additional domains if the id is not found. Should fix ticket #21
* Add common function to retrieve comma sep. listsSimo Sorce2009-04-144-106/+179
| | | | | | Also convert all places where we were using custom code to parse config arguments. And fix a copy&paste error in nss_get_config
* Make reconnection to the Data Provider a global settingStephen Gallagher2009-04-146-10/+12
| | | | | | | Previously, every DP client was allowed to set its own "retries" option. This option was ambiguous, and useless. All DP clients will now use a global option set in the services config called "reconnection_retries"
* Replace the example sssd.conf file with the one used in FedoraStephen Gallagher2009-04-141-32/+71
| | | | | Also remove the [services/infopipe] section, since we're not shipping InfoPipe yet, and that would be confusing.
* Add reconnection code between the NSS responder and the Data providerStephen Gallagher2009-04-141-1/+52
|
* Bump up to 0.3.1sssd-0_3_1Simo Sorce2009-04-131-1/+1
|
* Fix a couple of segfaults and timeout checksSimo Sorce2009-04-135-51/+34
|
* Set version to 0.3.0Simo Sorce2009-04-131-1/+1
|
* Add a LSB header to the initscriptSumit Bose2009-04-131-0/+14
|
* Fix segfaults when passing an unknown domainSimo Sorce2009-04-131-9/+20
| | | | | Also setting dctx->domain to NULL is a recipe for segfaults :-) Assign dctx->domain only when dom actually holds a domain pointer.
* Implement credentials caching in pam responder.Simo Sorce2009-04-1314-209/+576
| | | | | | | Implement credentials caching in pam responder. Currently works only for the proxy backend. Also cleanup pam responder code and mode common code in data provider. (the data provider should never include responder private headers)
* Always pass full domain infoSimo Sorce2009-04-1310-116/+174
| | | | | Change sysdb to always passwd sss_domain_info, not just the domain name. This way domain specific options can always be honored at the db level.
* Allow configuration of the SSSD through /etc/sssd/sssd.confStephen Gallagher2009-04-1311-274/+686
| | | | | | | | | | | | | | | | | | | The SSSD now links with the ini_config and collection libraries in the common directory. The monitor will track changes to the /etc/sssd/sssd.conf file using inotify on platforms that support it, or polled every 5 seconds on platforms that do not. At startup or modification of the conf file, the monitor will purge the existing confdb and reread it completely from the conf file, to ensure that there are no lingering entries. It does this in a transaction, so there should be no race condition with the client services. A new option has been added to the startup options for the SSSD. It is now possible to specify an alternate config file with the -c <file> at the command line.
* Redesign the the monitor's configuration to enable live reloadsStephen Gallagher2009-04-102-150/+618
| | | | Fixes requested during code review
* Make the monitor address a compile-time optionStephen Gallagher2009-04-091-20/+10
| | | | | | Previously it was runtime-selectable in the confdb, but this is not a sensible approach, as if it were to change during runtime, it would cause problems communicating with the child services.
* Serialize requests vs backends.Simo Sorce2009-04-091-544/+702
| | | | | | | This way we do not waste resources starting searching for users/groups in multiple backends when the first one has the answer. Also prevents possible race conditions where a user named the same way is found in multiple backends and the wrong one is returned.