summaryrefslogtreecommitdiff
path: root/src/providers/ipa/ipa_auth.c
AgeCommit message (Collapse)AuthorFilesLines
2013-09-24Include header file in implementation module.Lukas Slebodnik1-0/+1
Declarations of public functions was in header files, but header files was not included in implementation file.
2013-06-07LDAP: sdap_id_ctx might contain several connectionsJakub Hrozek1-1/+2
With some LDAP server implementations, one server might provide different "views" of the identites on different ports. One example is the Active Directory Global catalog. The provider would contact different view depending on which operation it is performing and against which SSSD domain. At the same time, these views run on the same server, which means the same server options, enumeration, cleanup or Kerberos service should be used. So instead of using several different failover ports or several instances of sdap_id_ctx, this patch introduces a new "struct sdap_id_conn_ctx" that contains the connection cache to the particular view and an instance of "struct sdap_options" that contains the URI. No functional changes are present in this patch, currently all providers use a single connection. Multiple connections will be used later in the upcoming patches.
2013-04-02Making the authtok structure really opaque.Lukas Slebodnik1-1/+1
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-03-19Use common error facility instead of sdap_resultSimo Sorce1-11/+13
Simplifies and consolidates error reporting for ldap authentication paths. Adds 3 new error codes: ERR_CHPASS_DENIED - Used when password constraints deny password changes ERR_ACCOUNT_EXPIRED - Account is expired ERR_PASSWORD_EXPIRED - Password is expired
2013-01-21Add be_req_get_data() helper funciton.Simo Sorce1-1/+2
In preparation for making struct be_req opaque.
2013-01-21Add be_req_get_be_ctx() helper.Simo Sorce1-10/+12
In preparation for making be_req opaque
2013-01-21Introduce be_req_terminate() helperSimo Sorce1-11/+6
Call it everywhere instead of directly dereferencing be_req->fn This is in preparation of making be_req opaque.
2013-01-21Remove sysdb as a be context structure memberSimo Sorce1-1/+1
The sysdb context is already available through the 'domain' structure.
2013-01-15Add domain to sysdb_search_user_by_name()Simo Sorce1-0/+1
Also remove unused sysdb_search_domuser_by_name()
2013-01-10Change pam data auth tokens.Simo Sorce1-5/+1
Use the new authtok abstraction and interfaces throught the code.
2012-10-26krb5_auth_send: check for sub-domainsSumit Bose1-6/+0
If there is an authentication request for a user from a sub-domain a temporary sysdb context is generated to allow lookups in the corresponding sub-tree in the cache.
2012-04-24Basic support for subdomains in auth providerJan Zeleny1-0/+6
2012-02-06Make password migration code use the IPA config retrieval codeJan Zeleny1-57/+14
2011-11-29IPA migration fixesJakub Hrozek1-97/+131
* use the id connection for looking up the migration flag * force TLS on the password based authentication connection https://fedorahosted.org/sssd/ticket/924
2011-11-29Provide means of forcing TLS and GSSAPI enabled/disabled for sdap connectionsJakub Hrozek1-1/+1
2011-08-15sysdb refactoring: deleted domain variables in sysdb APIJan Zeleny1-1/+0
The patch also updates code using modified functions. Tests have also been adjusted.
2011-02-28Use realm for basedn instead of IPA domainJakub Hrozek1-6/+6
https://fedorahosted.org/sssd/ticket/807
2011-01-17Add timeout parameter to sdap_get_generic_send()Sumit Bose1-1/+3
2010-12-07ldap: add checks to determine if USN features are available.Simo Sorce1-1/+1
2010-09-15Store rootdse supported features in sdap_handlerSumit Bose1-2/+2
2010-09-07Cleaned some dead assignmentsJan Zeleny1-1/+1
Two needless assignments were deleted, two were complemented with code checking function results. Ticket: #582
2010-06-10Avoid potential NULL dereferenceStephen Gallagher1-3/+5
https://fedorahosted.org/sssd/ticket/506
2010-05-16New version of IPA auth and password migrationSumit Bose1-176/+328
The current version modified some global structures to be able to use Kerberos and LDAP authentication during the IPA password migration. This new version only uses tevent requests. Additionally the ipaMigrationEnabled attribute is read from the IPA server to see if password migration is allowed or not.
2010-02-18Rename server/ directory to src/Stephen Gallagher1-0/+313
Also update BUILD.txt