summaryrefslogtreecommitdiff
path: root/src/responder/autofs/autofssrv_cmd.c
AgeCommit message (Collapse)AuthorFilesLines
2013-05-02Remove unused TALLOC_CTX from responder_get_domain()Sumit Bose1-1/+1
Recent refactoring removed the need to copy the domain info data of sub-domains because the related objects will not be removed from memory anymore.
2013-03-01autofs: fix invalid header 'number of entries' in packetPavel Březina1-1/+5
https://fedorahosted.org/sssd/ticket/1739 Pointer to packet body may change while filling packet with autofs mount points. As a consequence, we sometimes wrote the number of entries into invalid body and we recieved an arbitrary number on the client side. If the number was 0, there were some skipped entries. If the number was greater than 0, everything worked correctly, because we iterate through the cached entries until we reach packet length - we don't compare to the number.
2013-02-10Add function get_next_domain()Simo Sorce1-4/+4
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()
2013-01-23Check that strings do not go beyond the end of the packet body in autofs and ↵Jan Cholasta1-3/+3
SSH requests. This fixes CVE-2013-0220. https://fedorahosted.org/sssd/ticket/1781
2013-01-15Add domain argument to sysdb autofs functionsSimo Sorce1-2/+2
2012-12-18AUTOFS: remove all maps from hash if request for auto.master comes inJakub Hrozek1-3/+57
https://fedorahosted.org/sssd/ticket/1592 When a request for auto.master comes in, we need to remove all the maps from the lookup hash table. We can't simply delete the maps, because another request might be processing them, so instead the maps are removed from the hash table, effectively becoming orphaned. The maps will get freed when the timed destructor is invoked.
2012-12-18AUTOFS: allow removing entries from hash tableJakub Hrozek1-0/+27
There is a timed desctructor in the autofs responder that, when the entry timeout passes, removes the autofs map from the hash table while the map is freed. This patch adds a hash delete callback so that if the map is removed from the hash table with hash_delete, its hash table pointer will be invalidated. Later, when the entry is being freed, the destructor won't attempt to remove it from the hash table.
2012-10-01Add new option default_domain_suffixSumit Bose1-1/+2
2012-06-12Make re_expression and full_name_format per domain optionsStef Walter1-2/+2
* 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-05-03AUTOFS: remove unused assignmentsJakub Hrozek1-4/+9
Also changes setautomntent_send so that is only return NULL in case the tevent_req creation fails.
2012-04-24Modified responder_get_domain()Jan Zeleny1-1/+1
Now it checks for subdomains as well as for the domain itself
2012-02-29Remove sysdb_get_ctx_from_list()Sumit Bose1-2/+2
2012-02-27AUTOFS: speed up the client by requesting multiple entries at onceJakub Hrozek1-34/+78
https://fedorahosted.org/sssd/ticket/1166
2012-02-23AUTOFS: Invoke implicit setautomntent if neededJakub Hrozek1-45/+154
https://fedorahosted.org/sssd/ticket/1167
2012-02-13Allocate setent structure on state, not on the client contextJakub Hrozek1-2/+2
https://fedorahosted.org/sssd/ticket/1189
2012-02-13Remove setent structure when callback is calledJakub Hrozek1-1/+1
2012-02-05AUTOFS: responderJakub Hrozek1-0/+1239