summaryrefslogtreecommitdiff
path: root/src/responder
AgeCommit message (Collapse)AuthorFilesLines
2010-06-10Check the correct variable for NULL after creating timerStephen Gallagher1-1/+1
In several places, we were creating a new timer and assigning it to the tev variable, but then we were checking for NULL from the te variable (which, incidentally, is guaranteed never to be NULL in this situation) https://fedorahosted.org/sssd/ticket/523
2010-06-06Remove dead code from the PAM responderJakub Hrozek2-13/+0
2010-05-26Add support for delayed kinit if offlineSumit Bose1-1/+1
If the configuration option krb5_store_password_if_offline is set to true and the backend is offline the plain text user password is stored and used to request a TGT if the backend becomes online. If available the Linux kernel key retention service is used.
2010-04-16Use SO_PEERCRED on the PAM socketSumit Bose2-1/+55
This is the second attempt to let the PAM client and the PAM responder exchange their credentials, i.e. uid, gid and pid. Because this approach does not require any message interchange between the client and the server the protocol version number is not changed. On the client side the connection is terminated it the responder is not run by root. On the server side the effective uid and gid and the pid of the client are available for future use. The following additional changes are made by this patch: - the checks of the ownership and the permissions on the PAM sockets are enhanced - internal error codes are introduced on the client side to generate more specific log messages if an error occurs
2010-04-16Revert "Add better checks on PAM socket"Sumit Bose2-140/+1
This reverts commit 5a88e963744e5da453e88b5c36499f04712df097.
2010-04-12sysydb: Finally stop using a common event contextSimo Sorce1-1/+1
This commit completes the migration to a synchronous sysdb
2010-04-12sysdb: remove remaining traces of sysdb_handleSimo Sorce1-1/+0
2010-04-12sysdb: convert sysdb_initgroupsSimo Sorce1-222/+117
2010-04-12Adjust fill_pwent and fill_grentSimo Sorce1-13/+13
fill_pwent should return the number of users actually processed. Otherwise in case of a recoverable error we may end up skipping a large chunk of users. fill_grent doesn't need to distinguish between number of entries and number of groups to process since we started adding memberuid. Remove remnants that are not useful anymore.
2010-04-12sysdb: convert sysdb_enumgrentSimo Sorce1-161/+106
2010-04-12sysdb: convert sysdb_enumpwentSimo Sorce1-172/+116
2010-04-12sysdb: convert sysdb_get_user_attrSimo Sorce1-57/+39
2010-04-12sysdb: convert sysdb_getgrgidSimo Sorce1-193/+109
2010-04-12sysdb: convert sysdb_getgrnamSimo Sorce1-223/+134
2010-04-12sysdb: convert sysdb_getpwuidSimo Sorce1-198/+107
2010-04-12sysdb: convert sysdb_getpwnamSimo Sorce3-448/+309
2010-04-12Remove remaining use of sysdb_transaction_sendSimo Sorce2-232/+32
2010-04-12sysdb: convert sysdb_cache_authSimo Sorce1-47/+39
2010-04-12sysdb: convert sysdb_set_entry/user/group_attrSimo Sorce2-45/+7
2010-03-25Fix warnings from -Wmissing-field-initializersSumit Bose2-18/+18
This patch removes some tab-indentations from pamsrv.c, too.
2010-03-17Fix a series of memory leaks in the SBUSStephen Gallagher2-7/+6
2010-03-17Fixes for client communicationSumit Bose2-9/+17
- catch all errors of send() and recv(), not only EAGAIN - check if send() or recv() return EWOULDBLOCK or EINTR - remove unused parameter from client_send() and client_recv() - fix a debugging message
2010-03-15Fixed buffer alignment in exchange_credentials().George McCollister1-3/+7
buf needs to be 32 bit aligned on ARM. Also made the fix on the server side. Signed-off-by: George McCollister <George.McCollister@gmail.com>
2010-03-15Properly handle dbus send attempts on a closed connectionStephen Gallagher2-44/+15
dbus_connection_send_with_reply() will report success and return a NULL pending_reply when the connection is not open for communication. This patch creates a new wrapper around dbus_connection_send_with_reply() to properly detect this condition and report it as an error.
2010-03-11Add better checks on PAM socketSumit Bose2-1/+136
- check if the public socket belongs to root and has 0666 permissions - use a SCM_CREDENTIALS message if available
2010-03-08Make filter_users and filter_groups also per-domainJakub Hrozek1-13/+109
Fixes: #290
2010-03-08Reopen logs when SIGHUP is caughtJakub Hrozek2-0/+2
Upon receiving SIGHUP, the monitor signals all services to reopen their debug logs. It is also possible to signal individual services to reopen their particular files. Fixes: #332
2010-03-08Fixed alignment problems in nss client/serverGeorge McCollister1-6/+5
I fixed a handful of alignment problems in sss_client and nss responder. Enumerating group and passwd with getgrent and getpwent now works correctly on ARM. Signed-off-by: George McCollister <georgem@novatech-llc.com>
2010-03-04Add forgotten \n in DEBUG statementsMartin Nagy5-9/+9
Logs from confdb with missing '\n' in the DEBUG statements annoyed me so I decided to fix them. I also made a quick grep through the code and found other places so I fixed them too.
2010-03-04Eliminate monitor reconfigStephen Gallagher2-27/+0
We disabled live reconfiguration a long time ago with the intent of fixing it so that it wasn't completely broken, but we've decided that live updates are too delicate to handle all cases gracefully. For the forseeable future, we will rely on process restart for updating the configuration. Furthermore, we had not completely disabled live updates. It would still attempt to run if we sent a SIGHUP. This has also been eliminated.
2010-02-23Store lastLogin attribute when authenticating onlineJakub Hrozek1-0/+5
2010-02-22Remove unnecessary "domain" parameter from DP registrationStephen Gallagher3-3/+3
This was a holdover from when the DP and the providers were unique processes. The NSS and PAM registrations do not need to send the domain, as it is not ambiguous which one they are talking to.
2010-02-19Remove unneeded items from struct pam_dataSumit Bose1-18/+0
2010-02-18Rename server/ directory to src/Stephen Gallagher16-0/+7801
Also update BUILD.txt