summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_proto.h
AgeCommit message (Collapse)AuthorFilesLines
2010-04-08s3: Remove the separate "child" argument from setup_domain_child()Volker Lendecke1-2/+1
2010-03-31s3: Make check_info3_in_group staticVolker Lendecke1-2/+0
2010-03-31s3-winbind: Make append_auth_data() staticVolker Lendecke1-4/+0
2010-03-10s3: Fix a long-standing problem with recycled PIDsVolker Lendecke1-8/+0
When a samba server process dies hard, it has no chance to clean up its entries in locking.tdb, brlock.tdb, connections.tdb and sessionid.tdb. For locking.tdb and brlock.tdb Samba is robust by checking every time we read an entry from the database if the corresponding process still exists. If it does not exist anymore, the entry is deleted. This is not 100% failsafe though: On systems with a limited PID space there is a non-zero chance that between the smbd's death and the fresh access, the PID is recycled by another long-running process. This renders all files that had been locked by the killed smbd potentially unusable until the new process also dies. This patch is supposed to fix the problem the following way: Every process ID in every database is augmented by a random 64-bit number that is stored in a serverid.tdb. Whenever we need to check if a process still exists we know its PID and the 64-bit number. We look up the PID in serverid.tdb and compare the 64-bit number. If it's the same, the process still is a valid smbd holding the lock. If it is different, a new smbd has taken over. I believe this is safe against an smbd that has died hard and the PID has been taken over by a non-samba process. This process would not have registered itself with a fresh 64-bit number in serverid.tdb, so the old one still exists in serverid.tdb. We protect against this case by the parent smbd taking care of deregistering PIDs from serverid.tdb and the fact that serverid.tdb is CLEAR_IF_FIRST. CLEAR_IF_FIRST does not work in a cluster, so the automatic cleanup does not work when all smbds are restarted. For this, "net serverid wipe" has to be run before smbd starts up. As a convenience, "net serverid wipedbs" also cleans up sessionid.tdb and connections.tdb. While there, this also cleans up overloading connections.tdb with all the process entries just for messaging_send_all(). Volker
2010-02-28s3: Remove unused count_all_current_connections()Volker Lendecke1-1/+0
2010-02-09s3: Don't invalidate cache for uninitialized domains.Bo Yang1-0/+1
Signed-off-by: Bo Yang <boyang@samba.org>
2010-01-24s3: Add wbinfo --ccache-saveVolker Lendecke1-0/+3
With this command you can give winbind your password for later use by the automatic ntlm_auth
2010-01-02s3: Make free_domain_list() staticVolker Lendecke1-1/+0
2010-01-02s3: Introduce domain_is_forest_root() helper functionVolker Lendecke1-0/+1
Hopefully this makes the flag tests a bit more understandable
2009-12-26s3: Replace IS_DOMAIN_OFFLINE by a functionVolker Lendecke1-0/+1
2009-12-26s3: winbindd_cli_state->getgrent_state is no longer usedVolker Lendecke1-1/+0
2009-12-23s3: Remove some unused codeVolker Lendecke1-17/+0
2009-12-23s3: Remove unused sendto_child()Volker Lendecke1-2/+0
2009-12-21s3:winbind: Add a lower-cost alternative to wbinfo -t: wbinfo --ping-dcVolker Lendecke1-0/+7
This just does a NULL RPC call through an existing NETLOGON connection. If someone knows an operation that "just works" and does not return NOT_SUPPORTED, please tell me :-)
2009-12-21s3: Shrink winbindd_proto.h a bitVolker Lendecke1-71/+0
2009-12-21s3: Remove unused get_sam_group_entriesVolker Lendecke1-1/+0
2009-12-21s3: Remove unused winbindd_dual_getsidaliasesVolker Lendecke1-2/+0
2009-12-21s3: Remove unused winbindd_dual_getuserdomgroupsVolker Lendecke1-2/+0
2009-12-21s3: Remove unused winbindd_dual_getdcnameVolker Lendecke1-2/+0
2009-12-21s3: Remove unused winbindd_dual_lookupnameVolker Lendecke1-2/+0
2009-12-21s3: Remove unused winbindd_dual_lookupsidVolker Lendecke1-2/+0
2009-12-21s3: Remove some unused dual functionsVolker Lendecke1-8/+0
2009-12-21s3: Remove unused do_asyncVolker Lendecke1-6/+0
2009-12-21s3: Remove unused winbindd_gid2sid_asyncVolker Lendecke1-3/+0
2009-12-21s3: Remove unused winbindd_uid2sid_asyncVolker Lendecke1-3/+0
2009-12-21s3: Remove unused winbindd_sid2gid_asyncVolker Lendecke1-3/+0
2009-12-21s3: Remove unused winbindd_sid2uid_asyncVolker Lendecke1-3/+0
2009-12-21s3: Remove unused query_user_asyncVolker Lendecke1-10/+0
2009-12-21s3: Remove unused winbindd_getsidaliases_asyncVolker Lendecke1-8/+0
2009-12-21s3: Remove unused winbindd_lookupname_asyncVolker Lendecke1-7/+0
2009-12-21s3: Remove unused winbindd_lookupsid_asyncVolker Lendecke1-6/+0
2009-10-17s3:winbind: Move fillup_pw_field() as static to wb_fill_pwent.cVolker Lendecke1-8/+0
2009-10-13s3-winbindd: add wbint_ChangeMachineAccount implementation.Günther Deschner1-0/+7
Guenther
2009-09-28s3:winbind: Make check_info3_in_group, sanitize its memory handlingVolker Lendecke1-0/+2
2009-09-28s3:winbind: Make "check_request_flags" publically availableVolker Lendecke1-0/+1
2009-09-28s3:winbind: Sanitize the args for find_auth_domain: It only needs the flagsVolker Lendecke1-2/+2
2009-09-28s3:winbind: Make append_data publically available as append_auth_dataVolker Lendecke1-0/+4
2009-09-22s3-winbindd: add cm_connect_lsa_tcp().Günther Deschner1-0/+3
Guenther
2009-09-17s3-winbindd: add and use winbindd_lookup_names().Günther Deschner1-0/+7
Guenther
2009-09-17s3-winbindd: add and use winbindd_lookup_sids().Günther Deschner1-0/+9
Guenther
2009-09-07s3:winbind: Convert WINBINDD_SET_HWM to the new APIVolker Lendecke1-0/+7
2009-09-07s3:winbind: Convert WINBINDD_REMOVE_MAPPING to the new APIVolker Lendecke1-0/+7
2009-09-07s3:winbind: Convert WINBINDD_SET_MAPPING to the new APIVolker Lendecke1-0/+7
2009-09-07s3:winbind: Convert WINBINDD_CHECK_MACHACC to the new APIVolker Lendecke1-0/+6
2009-09-05s3:winbind: Make the pam_auth subfunctions staticVolker Lendecke1-9/+0
2009-08-30w3:winbind: Convert WINBINDD_ALLOCATE_GID to the new APIVolker Lendecke1-0/+7
2009-08-30w3:winbind: Convert WINBINDD_ALLOCATE_UID to the new APIVolker Lendecke1-0/+7
2009-08-29s3:winbind: Convert WINBINDD_LIST_GROUPS to the new APIVolker Lendecke1-0/+8
2009-08-29s3:winbind: Convert WINBINDD_LIST_USERS to the new APIVolker Lendecke1-0/+7
2009-08-29s3:winbind: Convert the getgrent functions to the new APIVolker Lendecke1-0/+19