summaryrefslogtreecommitdiff
path: root/source3/winbindd
AgeCommit message (Collapse)AuthorFilesLines
2009-07-29s3:winbind: use transaction in idmap_tdb2_allocate_id_action().Michael Adam1-1/+1
This uses the new dbwrap_trans_change_uint32_atomic() instead of dbwrap_change_uint32_atomic(). Now all db write operations in idmap_tdb2.c are using transactions. Michael
2009-07-29s3:dbwrap: change dbwrap_change_uint32_atomic() to return NTSTATUS not uint32_t.Michael Adam2-8/+7
Michael
2009-07-29s3:winbind: in idmap_tdb2_sid_to_id(), use transaction wrapped stores.Michael Adam1-9/+15
When a mapping is not found, then the idmap script is called (if defined). When this gives a reply for the desired sid, this reply is stored in the db. This patch wraps theses two store operations into a transaction by re-using the idmap_tdb2_set_mapping_action() function previously defined for idmap_tdb2_set_mapping(). Michael
2009-07-29s3:winbind: in idmap_tdb2_id_to_sid(), use transaction wrapped stores.Michael Adam1-9/+12
When a mapping is not found, then the idmap script is called (if defined). When this gives a reply for the desired id, this reply is stored in the db. This patch wraps theses two store operations into a transaction by re-using the idmap_tdb2_set_mapping_action() function previously defined for idmap_tdb2_set_mapping(). Michael
2009-07-29s3:winbind: use transaction wrapper in idmap_tdb2_allocate_id()Michael Adam1-43/+69
Michael
2009-07-29s3:winbind: use transaction wrapper in idmap_tdb2_set_mapping()Michael Adam1-49/+55
Michael
2009-07-28Remove a duplicate prototypeVolker Lendecke1-1/+0
2009-07-28Added prefer_ipv4 bool parameter to resolve_name().Jeremy Allison1-2/+2
W2K3 DC's can have IPv6 addresses but won't serve krb5/ldap or cldap on those addresses. Make sure when we're asking for DC's we prefer IPv4. If you have an IPv6-only network this prioritizing code will be a no-op. And if you have a mixed network then you need to prioritize IPv4 due to W2K3 DC's. Jeremy.
2009-07-27Fix a typoVolker Lendecke1-1/+1
2009-07-27Fix a valgrind error in winbindVolker Lendecke1-1/+2
When looking for idle clients, we dereferenced state->response. As this is dynamically allocated now, the proper test is whether state->response exists at all. This is the case when an async operation is in process at that moment.
2009-07-27Fix some nonempty blank linesVolker Lendecke1-105/+103
2009-07-25Fix a winbind memleakVolker Lendecke1-0/+1
2009-07-18s3: compile warning and upn handlingBo Yang2-1/+7
Signed-off-by: Bo Yang <boyang@samba.org>
2009-07-18s3: don't do this, upper callbacks will check itBo Yang1-4/+0
Signed-off-by: Bo Yang <boyang@samba.org>
2009-07-15Make gencache more stableVolker Lendecke1-0/+2
This provides a compromise between stability and performance: gencache is a persistent database these days that for performance reasons can not use tdb transactions for all writes. This patch splits up gencache into gencache.tdb and gencache_notrans.tdb. gencache_notrans is used with CLEAR_IF_FIRST, writes to it don't use transactions. By default every 5 minutes and when a program exits, all entries from _notrans.tdb are transferred to gencache.tdb in one transaction.
2009-07-14s3-account_policy: add pdb_policy_type enum.Günther Deschner1-5/+5
Guenther
2009-07-13libds: merge the UF<->ACB flag mapping functions.Günther Deschner1-1/+1
Guenther
2009-07-09Make escape_ldap_string take a talloc contextVolker Lendecke1-3/+3
2009-06-18Fix bug 4699: Remove pidfile on clean shutdownVolker Lendecke1-0/+4
2009-06-14Remove "winbindd_request" and "winbindd_response" from winbindd_cli_stateVolker Lendecke3-11/+15
This shrinks the memory footprint of an idle client by 5592 bytes to 60 bytes on my 32-bit box.
2009-06-14Make winbindd_cli_state->response a pointer instead of a struct memberVolker Lendecke14-240/+246
Same comment as in baa6084378e530b: This is just a preparatory checkin. Volker
2009-06-14Remove an unused struct member in winbindd_cli_stateVolker Lendecke1-1/+0
2009-06-14Fix an error message: We get the errno in "err"Volker Lendecke1-1/+1
2009-06-14winbind: replace process_loop() by tevent_loop_once()Volker Lendecke1-68/+5
2009-06-14Make rescan_trusted_domains a timed eventVolker Lendecke3-26/+20
2009-06-14Do not store the listening fdeVolker Lendecke1-15/+11
2009-06-14Avoid scanning the client list when a client exitsVolker Lendecke2-20/+6
2009-06-14Do not use "finished" in winbind childVolker Lendecke1-10/+8
2009-06-14Remove unused init_child_connection()Volker Lendecke2-139/+0
2009-06-14Convert winbindd_domain_info to wb_domain_request_sendVolker Lendecke1-59/+75
2009-06-14Add winbindd_dual_ping to all childrenVolker Lendecke5-0/+20
2009-06-14Convert async_domain_request to wb_domain_request_sendVolker Lendecke1-20/+22
2009-06-14Add async wb_pingVolker Lendecke3-0/+62
2009-06-14Add an async wb request loopVolker Lendecke2-0/+63
2009-06-14Add wb_domain_request_send/recvVolker Lendecke2-0/+190
2009-06-14Remove some unused codeVolker Lendecke4-264/+0
2009-06-14Convert the winbind parent->child communication to wb_reqtransVolker Lendecke6-239/+166
2009-06-14Convert the main winbind client communication to wb_reqtrans.cVolker Lendecke2-125/+65
2009-06-14Make winbindd_cli_state->request a pointer instead of a struct memberVolker Lendecke14-423/+426
In itself, this is pretty pointless. But in the next steps I'll convert the winbind internal communication to wb_reqtrans which allocates the request properly. This minimizes the later diff. Volker
2009-06-08Pass a talloc_ctx to pdb_enum_aliasmemVolker Lendecke1-2/+2
2009-06-08s3-winbindd: workaround alias enumeration in expand_groups().Günther Deschner1-3/+16
alias enumeration in NSS is not done properly done atm and needs to be fixed. Guenther
2009-06-06s3-winbindd: add some debug statements while tracking down a bug.Günther Deschner2-2/+20
Guenther
2009-05-28s3-winbindd: fix remaining callers of sid_binstring().Günther Deschner2-4/+4
Guenther
2009-05-28Make sid_binstring & friends take a talloc contextVolker Lendecke2-12/+10
2009-05-28s3:idmap_ldap: filter out of range mappings in default idmap configMichael Adam1-16/+55
This fixes bug #6417 Michael
2009-05-27s3: Allow child processes to exit gracefully if we are out of fdsMarc VanHeyningen2-4/+6
When we run out of file descriptors for some reason, every new connection forks a child that immediately panics causing smbd to coredump. This seems unnecessarily harsh; with this code change we now catch that error and merely log a message about it and exit without the core dump. Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-05-27s3:idmap: fix a comment typoMichael Adam1-1/+1
Michael
2009-05-27s3:idmap_tdb2: filter out of range mappings in default idmap configMichael Adam1-12/+49
This fixes bug #6416 Michael
2009-05-27s3:idmap_tdb: add an entry debug statment to idmap_tdb_db_init()Michael Adam1-0/+2
Michael
2009-05-27s3:idmap_tdb: filter out of range mappings in default idmap configMichael Adam1-16/+57
This fixes bug #6415 Michael