summaryrefslogtreecommitdiff
path: root/src/util/usertools.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-07-22Fix warnings: uninitialized variableLukas Slebodnik1-1/+1
2013-07-19IPA: warn if full_name_format is customized in server modeJakub Hrozek1-1/+1
https://fedorahosted.org/sssd/ticket/2009 If the IPA server mode is on and the SSSD is running on the IPA server, then the server's extdom plugin calls getpwnam_r to read info about trusted users from the AD server and return them to the clients that called the extended operation. The SSSD returns the subdomain users fully-qualified, ie "user@domain" by default. The format of the fully qualified name is configurable. However, the extdom plugin returns the user name without the domain component. With this patch, when ipa_server_mode is on, warn if the full_name_format is set to a non-default value. That would prompt the admin to change the format if he changed it to something exotic.
2013-06-07New utility function sss_get_domain_nameJakub Hrozek1-0/+17
Instead of copying a block of code that checks whether domain is a subdomain and uses only name of FQDN as appropriate, wrap the logic into a function.
2013-05-30Allow flat name in the FQname formatJakub Hrozek1-11/+66
https://fedorahosted.org/sssd/ticket/1648 Adds another expansion in the printf format that allows the user to use the domain flat name in the format.
2013-05-30Check the validity of FQname format prior to using itJakub Hrozek1-3/+43
Adds a sanity check of the fqname pattern. Fails if the username pattern is not specified at all and warns if the domain pattern is not specified.
2013-05-30Add utility functions for formatting fully-qualified namesJakub Hrozek1-0/+25
Instead of using printf-like functions directly, provide two wrappers that would encapsulate formatting the fully-qualified names. No functional change is present in this patch.
2013-05-07UTIL: Add function sss_names_init_from_argsJan Cholasta1-41/+66
This function allows initializing sss_names_ctx using a regular expression and fully qualified format string specified in its arguments.
2013-04-03Check for correct variable nameJakub Hrozek1-1/+1
https://fedorahosted.org/sssd/ticket/1864
2013-02-10Change the way domains are linked.Simo Sorce1-14/+6
- Use a double-linked list for domains and subdomains. - Never remove a subdomain, simply mark it as disabled if it becomes unused. - Rework the way subdomains are refreshed. Now sysdb_update_subdomains() actually updates the current subdomains and marks as disabled the ones not found in the sysdb or add new ones found. It never removes them. Removal of missing domains from sysdb is deferred to the providers, which will perform it at refresh time, for the ipa provider that is done by ipa_subdomains_write_mappings() now. sysdb_update_subdomains() is then used to update the memory hierarchy of the subdomains. - Removes sysdb_get_subdomains() - Removes copy_subdomain() - Add sysdb_subdomain_delete()
2013-02-10Add function get_next_domain()Simo Sorce1-2/+2
Use this function instead of explicitly calling domain->next This function allows to get the next primary domain or to descend into the subdomains and replaces also get_next_dom_or_subdom()
2012-11-22Handle compiling FQDN regular expression with old pcre gracefullyJakub Hrozek1-0/+9
https://fedorahosted.org/sssd/ticket/1661
2012-10-26sss_parse_name_for_domains: always return the canonical domain nameSumit Bose1-2/+7
Domains may have a flat or short name to save some keystrokes when typing fully qualified user names. Internally sssd will always use the canonical name to allow consistent processing.
2012-10-01Use flat name for master domain as wellSumit Bose1-1/+2
2012-10-01Add new option default_domain_suffixSumit Bose1-11/+41
2012-09-20Add provider specific default regular expressionsSumit Bose1-0/+62
Fixes https://fedorahosted.org/sssd/ticket/1524
2012-09-04Check flat names when searching for sub-domains as wellSumit Bose1-1/+3
2012-08-23Consolidation of functions that make realm upper-caseOndrej Kos1-0/+21
2012-06-21Fix re_expression matching with subdomainsJan Zeleny1-15/+19
This patch fixes an issue which resulted in a need to initialize responder with data from local domain, otherwise it would not correctly detect requests for subdomains. Similar situation can occur if new subdomain is added at runtime. The solution is to ask for a list of subdomains in case there is a candidate domain identified in the process of matching re_expressions with given name.
2012-06-21UTILS: Fix segfault due to sss_parse_name_for_domainsStephen Gallagher1-7/+10
The recent fixes for per-domain parsing can cause a segfault in the netgroup processing if the domain isn't set to NULL when it's parsed as "any domain". https://fedorahosted.org/sssd/ticket/1383
2012-06-13sss_names_init: Report correct error code if allocation failedJakub Hrozek1-1/+4
2012-06-12Make re_expression and full_name_format per domain optionsStef Walter1-7/+138
* Allows different user/domain qualified names for different domains. For example Domain\User or user@domain. * The global re_expression and full_name_format options remain as defaults for the domains. * Subdomains get the re_expression and full_name_format of their parent domain. https://bugzilla.redhat.com/show_bug.cgi?id=811663
2012-03-29Add sss_get_cased_name_list utility functionJakub Hrozek1-0/+37
2011-12-21sss_get_cased_name utility functionJakub Hrozek1-0/+9
2010-02-18Rename server/ directory to src/Stephen Gallagher1-0/+175
Also update BUILD.txt