summaryrefslogtreecommitdiff
path: root/src/providers/dp_auth_util.c
AgeCommit message (Collapse)AuthorFilesLines
2013-04-02Making the authtok structure really opaque.Lukas Slebodnik1-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
2013-01-10Change pam data auth tokens.Simo Sorce1-28/+48
Use the new authtok abstraction and interfaces throught the code.
2012-04-24Basic support for subdomains in auth providerJan Zeleny1-0/+2
2011-04-08Fix unchecked return values of pam_add_responseJakub Hrozek1-1/+4
https://fedorahosted.org/sssd/ticket/798
2010-05-27Copy pam data from DBus messageSumit Bose1-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.
2010-05-27Make data provider id_callback publicStephen Gallagher1-2/+2
2010-05-20Revert "Copy pam data from DBus message"Stephen Gallagher1-67/+41
This reverts commit 2faf73eef14d66aeb345ffa38d0f53670fa8a9a1.
2010-05-20Copy pam data from DBus messageSumit Bose1-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.
2010-05-07Split pam_data utilities into a separate fileSumit Bose1-35/+0
2010-03-17Fix a series of memory leaks in the SBUSStephen Gallagher1-1/+5
2010-03-15Properly handle dbus send attempts on a closed connectionStephen Gallagher1-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.
2010-02-22Remove unnecessary domain parameter from PAM requestsStephen Gallagher1-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.
2010-02-22Remove unnecessary "domain" parameter from DP registrationStephen Gallagher1-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.
2010-02-19Remove unneeded items from struct pam_dataSumit Bose1-6/+0
2010-02-18Rename server/ directory to src/Stephen Gallagher1-0/+414
Also update BUILD.txt