summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-05-27Add SID related requests to the LDAP providerSumit Bose1-5/+230
The patch adds support for BE_REQ_BY_SECID and BE_REQ_USER_AND_GROUP to the LDAP provider. Since the AD and the IPA provider use the same code they support those request now as well. Besides allowing that users and groups can be searched by the SID as well the new request allows to search users and groups in one run, i.e. if there is not user matching the search criteria groups are searched as well.
2013-05-27IPA: read user and group SIDSumit Bose1-2/+2
To allow mapping of SIDs to names or POSIX IDs and back the related attributes must be read from the FreeIPA directory server.
2013-05-27Handle SID strings in sdap_attrs_get_sid_str() as wellSumit Bose1-9/+20
This patch add a basic check if the SID returned by the LDAP server is in a string representation. If not it is assumed that a binary SID was returned by the LDAP server which is converted into a string representation which is returned to the caller.
2013-05-27IPA: Always initialize ID mappingSumit Bose1-4/+10
Because we now always want to store SIDs in the IPA provider, we also need to always initialize the ID mapping context.
2013-05-23Add a domain config attribute for realmdStef Walter3-2/+14
realmd needs to be able to tag various domains with basic info when it configures a domain.
2013-05-23Add 'description' attribute to SSSDConfig APIStephen Gallagher2-1/+4
It was mentioned in the manpages, but not accepted by the API
2013-05-23Adding option to disable retrieving large AD groups.Lukas Slebodnik11-13/+74
This commit adds new option ldap_disable_range_retrieval with default value FALSE. If this option is enabled, large groups(>1500) will not be retrieved and behaviour will be similar like was before commit ae8d047122c "LDAP: Handle very large Active Directory groups" https://fedorahosted.org/sssd/ticket/1823
2013-05-23Removing unused functions.Lukas Slebodnik2-36/+0
This patch remove unused functions sdap_parse_user and sdap_parse_group
2013-05-23pysss_nss_idmap: do not treat strings as sequencesSumit Bose1-1/+1
The current PySequence_Check() also catches single strings with the effect that the string is split into characters which are send as arguments to SSSD individually. With this patch only tuples and lists are treated as sequences.
2013-05-23Remove old hash support from example specStephen Gallagher1-1/+0
SSSD 1.10 and later will no longer support RHEL 5, so we should be using the native hash algorithm on the newer versions of RPM by default.
2013-05-23Adding script to create a SRPMLukas Slebodnik1-0/+120
Recommended way to create SRPM is to run make (prerelease-)srpm. But in previous case make file have to be generated, therefore configure script should not fail. (all sssd required dependencies have to be installed) Script make_srpm.sh can be runned without running configure, script can be runned only from git repository. https://fedorahosted.org/sssd/ticket/1927
2013-05-22Fix return code for AD subdomain requestSumit Bose1-1/+3
2013-05-21Check NSCD configuration fileOndrej Kos6-7/+177
https://fedorahosted.org/sssd/ticket/1785 nscd.conf file is now checked for the presence of caching settings for databases controlled by SSSD. Syslog warning is now written only if NSCD is running with interfering configuration or if configuration file couldn't be loaded. New configure option added to support non-standard locations --with-nscd-conf=PATH (defaultly set to /etc/nscd.conf) This is just a workaround until the following bugzilla is resolved: https://bugzilla.redhat.com/show_bug.cgi?id=963908
2013-05-21Move nscd.c from tools to utilOndrej Kos4-9/+9
Preparation for the following patch which will include the nscd.c in the monitor code due to newly introduced function for checking the nscd configuration file.
2013-05-21DB: Fix segfault when configuration file cannot be parsedOndrej Kos1-0/+1
https://fedorahosted.org/sssd/ticket/1934
2013-05-20Remove unneeded parameter of setup_child and namespace itJakub Hrozek5-5/+5
setup_child() was accepting a parameter it didn't use. Also the function name was too generic, so I added a sdap prefix.
2013-05-20Fixing critical format string issues.Lukas Slebodnik22-36/+61
--missing arguments. --format '%s', but argument is integer. --wrong format string, examle: '%\n'
2013-05-15Fix segfault in AD Subdomains ModuleLukas Slebodnik1-0/+2
In function ad_subdomains_get_netlogon_done: If variable "reply_count" is zero then variable "reply" will not be initialized. Therefore we should not continue.
2013-05-14Rename SAFEALIGN macros.Michal Zidek4-95/+114
https://fedorahosted.org/sssd/ticket/1772 SAFEALIGN macros have been renamed in this patch to make it easy to pick the right macro when data is copied from byte buffer to a variable or vice versa. The renamed macros are placed in new header file to avoid code duplication (the old ones were defined in two files, one for the client code and one for the rest of sssd).
2013-05-14man: Note that IPA updates are secured with GSS-TSIGJakub Hrozek1-1/+2
2013-05-14man: Clarify the AD site discovery documentationJakub Hrozek1-1/+3
https://fedorahosted.org/sssd/ticket/1909
2013-05-14Fix segfault in DYNDNSOndrej Kos1-1/+1
Added missing variable in DEBUG macro call.
2013-05-14Always update cached upn if enterprise principals are usedSumit Bose1-3/+4
Instead of continuing to use the initial upn if enterprise principals are used if should always be replaced. The enterprise principal is stored in the credential cache and without knowing it the ccache_for_princ() calls to determine the location of the credential cache will fail. Fixes https://fedorahosted.org/sssd/ticket/1921
2013-05-14Fix broken build with selinux.Lukas Slebodnik2-2/+4
Header file selinux/selinux.h was removed in commit 245cc346 from file ipa_selinux.c, because it breaks build without selinux. But new error was introduced. This patch fixes compilation with selinux and include header file selinux/selinux.h only if both macros exist HAVE_SELINUX and HAVE_SELINUX_LOGIN_DIR. Now ipa_selinux.c should be correctly built with and without selinux.
2013-05-13Re-add a useful DEBUG messageJakub Hrozek1-0/+2
In commit 46222e5191473f9a46aec581273eb2eef22e23be we removed a very similar DEBUG message while moving the whole piece of code to the idmap library. But it turned out that the DEBUG message was useful while testing the functionality, so this patch adds it back.
2013-05-13Fixes compilation without selinux.Lukas Slebodnik1-1/+0
Compilation fail if ./configure is called with arguments --with-selinux --with-semanage and selinux header files are not installed. We didn't not catch this in fedora, because krb5-devel depends on libselinux-devel, but other distribution can package it differently. And API from selinux.h is not used in file ipa_selinux.c
2013-05-13Add support for tuples and unicode pysss_nss_idmap.soSumit Bose1-20/+39
https://fedorahosted.org/sssd/ticket/1905 https://fedorahosted.org/sssd/ticket/1914 This patch allows tuples as well as lists as input and adds support for Unicode objects as input and always returns the results as Unicode objects.
2013-05-13LDAP: Always initialize idmap objectJakub Hrozek1-5/+3
https://fedorahosted.org/sssd/ticket/1922 Since we always store the SID now, we need to always initialize the ID mapping object in LDAP provider as well. Some users might want to configure the LDAP provider with ID mapping, not the AD provider itself.
2013-05-13man: Clarify that AD dyndns updates are secured using GSS-TSIGJakub Hrozek1-1/+4
https://fedorahosted.org/sssd/ticket/1910
2013-05-13Enable the AD dynamic DNS updates by defaultJakub Hrozek2-2/+2
https://fedorahosted.org/sssd/ticket/1915
2013-05-13tests: Do not set cwd twiceJakub Hrozek1-1/+0
The tests_set_cwd() function was called twice in the dyndns unit test.
2013-05-13Fix a typo in sssd-ad man pageJakub Hrozek1-1/+1
s/IPA/AD/
2013-05-10sudo responder: search rules for subdomains in parent domain subtreePavel Březina1-0/+5
https://fedorahosted.org/sssd/ticket/1912 SUDO rules are stored under cn=ipa.domain,cn=sysdb tree but sobdomains users are in cn=sub.domain,cn=sysdb. When we search for rules for subdomain users we have to switch domain context to parent.
2013-05-10Fix missing initialization in Python bindings for libsss_nss_idmapSumit Bose1-1/+1
If sss_nss_getsidbyid() fails free() will try to work on an uninitialized value.
2013-05-10Add missing \n to debug stringSumit Bose1-1/+1
2013-05-07SSH: Do not skip domains with use_fully_qualified_names in host key requestsJan Cholasta1-6/+0
2013-05-07SSH: Use separate field for domain name in client requestsJan Cholasta6-64/+97
Instead of appending @domain to names when the --domain option of sss_ssh_* is used, put domain name in a separate field in client requests.
2013-05-07SSH: Fix parsing of names from client requestsJan Cholasta3-3/+30
Try to parse names in the form user@domain first, as that's what sss_ssh_* send in requests when the --domain option is used. Do not parse host names using domain-specific regular expression.
2013-05-07UTIL: Add function sss_names_init_from_argsJan Cholasta2-41/+73
This function allows initializing sss_names_ctx using a regular expression and fully qualified format string specified in its arguments.
2013-05-07Actually use the index parameter in resolv_get_sockaddr_address_indexJakub Hrozek2-6/+10
2013-05-07AD: read flat name and SID of the AD domainSumit Bose7-0/+602
For various features either the flat/short/NetBIOS domain name or the domain SID is needed. Since the responders already try to do a subdomain lookup when and known domain name is encountered I added a subdomain lookup to the AD provider which currently only reads the SID from the base DN and the NetBIOS name from a reply of a LDAP ping. The results are written to the cache to have them available even if SSSD is started in offline mode. Looking up trusted domains can be added later. Since all the needed responder code is already available from the corresponding work for the IPA provider this patch fixes https://fedorahosted.org/sssd/ticket/1468
2013-05-06Fix minor typosYuri Chornoivan3-3/+3
2013-05-03Update the version for the 1.10 beta2 releaseJakub Hrozek1-1/+1
2013-05-03Updating the translations for the 1.10 beta1 releaseJakub Hrozek37-16635/+18716
2013-05-03Only check UPN if enterprise principals are not usedJakub Hrozek1-0/+5
If enterprise principals are enabled (which is the default in the AD provider), then the returned UPN might be slightly different from the one SSSD constructs before attempting the login. This patch makes SSSD only check if the principal is the same when the enterprise principals are disabled.
2013-05-03AD: Always initialize ID mappingJakub Hrozek1-5/+3
Because we now always store SIDs in the LDAP provider, we also need to always initialize the ID mapping context even if ID mapping itself is off.
2013-05-03Active Directory dynamic DNS updatesJakub Hrozek8-0/+403
https://fedorahosted.org/sssd/ticket/1504 Implements dynamic DNS updates for the AD provider. By default, the updates also update the reverse zone and run periodically every 24 hours.
2013-05-03Split out the common code from timed DNS updatesJakub Hrozek3-60/+133
2013-05-03dyndns: new option dyndns_authJakub Hrozek10-21/+100
This options is mostly provided for future expansion. Currently it is undocumented and both IPA and AD dynamic DNS updates default to GSS-TSIG. Allowed values are GSS-TSIG and none.
2013-05-03dyndns: new option dyndns_force_tcpJakub Hrozek9-9/+45
https://fedorahosted.org/sssd/ticket/1831 Adds a new option that can be used to force nsupdate to only use TCP to communicate with the DNS server.