summaryrefslogtreecommitdiffstats
path: root/src/providers/dp_auth_util.c
Commit message (Collapse)AuthorAgeFilesLines
* providers: Fix types passed to dbus varargs functionsStef Walter2014-03-141-10/+23
| | | | | | | | | | | | | | | | | | | | Fix some incorrect types passed to dbus_message_get_args(), dbus_message_append_args() or functions accepting similar varargs and types. In particular sizeof(bool) != sizeof(dbus_bool_t) on most platforms. This probably only worked because the compiler was aligning stack variables and so writing off the end of one of them wasn't the end of the world. In addition fix cases where int != int32_t != uint32_t. Although these will work on many common platforms, assuming these are interchangeable is not cross platform safe. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> (cherry picked from commit 5bad17538eab85ce69e0355cd25b52b4a473cc36)
* Making the authtok structure really opaque.Lukas Slebodnik2013-04-021-8/+8
| | | | | | | | | | | | | | | | | | | | Definition of structure sss_auth_token was removed from header file authtok.h and there left only declaration of this structure. Therefore only way how to use this structure is to use accessory function from same header file. To creating new empty authotok can only be used newly created function sss_authtok_new(). TALLOC context was removed from copy and setter functions, because pointer to stuct sss_auth_token is used as a memory context. All declaration of struct sss_auth_token variables was replaced with pointer to this structure and related changes was made in source code. Function copy_pam_data can copy from argument src which was dynamically allocated with function create_pam_data() or zero initialized struct pam_data allocated on stack. https://fedorahosted.org/sssd/ticket/1830
* Change pam data auth tokens.Simo Sorce2013-01-101-28/+48
| | | | Use the new authtok abstraction and interfaces throught the code.
* Basic support for subdomains in auth providerJan Zeleny2012-04-241-0/+2
|
* Fix unchecked return values of pam_add_responseJakub Hrozek2011-04-081-1/+4
| | | | https://fedorahosted.org/sssd/ticket/798
* Copy pam data from DBus messageSumit Bose2010-05-271-41/+67
| | | | | | | | Instead of just using references to the pam data inside of the DBus message the data is copied. New the DBus message can be freed at any time and the pam data is part of the memory hierarchy. Additionally it is possible to overwrite the authentication tokens in the DBus message, because it is not used elsewhere.
* Make data provider id_callback publicStephen Gallagher2010-05-271-2/+2
|
* Revert "Copy pam data from DBus message"Stephen Gallagher2010-05-201-67/+41
| | | | This reverts commit 2faf73eef14d66aeb345ffa38d0f53670fa8a9a1.
* Copy pam data from DBus messageSumit Bose2010-05-201-41/+67
| | | | | | | | Instead of just using references to the pam data inside of the DBus message the data is copied. New the DBus message can be freed at any time and the pam data is part of the memory hierarchy. Additionally it is possible to overwrite the authentication tokens in the DBus message, because it is not used elsewhere.
* Split pam_data utilities into a separate fileSumit Bose2010-05-071-35/+0
|
* Fix a series of memory leaks in the SBUSStephen Gallagher2010-03-171-1/+5
|
* Properly handle dbus send attempts on a closed connectionStephen Gallagher2010-03-151-22/+1
| | | | | | | | 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.
* Remove unnecessary domain parameter from PAM requestsStephen Gallagher2010-02-221-21/+1
| | | | | | If we're sending a message to the backend, we already know which domain the request is targeting. Carrying this information is not useful and confuses the interface.
* Remove unnecessary "domain" parameter from DP registrationStephen Gallagher2010-02-221-4/+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.
* Remove unneeded items from struct pam_dataSumit Bose2010-02-191-6/+0
|
* Rename server/ directory to src/Stephen Gallagher2010-02-181-0/+414
Also update BUILD.txt