summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Make it clear the time here is an absolute endtime. Don't set the alarm if ↵Jeremy Allison2011-08-191-15/+35
| | | | the LDAP timeout is zero.
* Always remove the alarm before changing the handler, not the other way around.Jeremy Allison2011-08-191-1/+1
|
* Remove old_handler as alarms can't be nested. Use SIG_IGN instead.Jeremy Allison2011-08-191-4/+2
|
* Change got_alarm from bool to the correct type of SIG_ATOMIC_T.Jeremy Allison2011-08-191-3/+3
|
* If "ldap timeout" is non-zero, set the local search timeout toJeremy Allison2011-08-191-19/+36
| | | | | | | | | be one second longer than the remote search timeout (which is set to the "ldap timeout" value). This allows the remote search timeout to fire in preference. Allow lp_ldap_timeout() to be zero. Don't set the any local alarm if so.
* Re-arrange the optimization to reduce tdb fcntl calls if smbd is notIra Cooper2011-08-201-1/+5
| | | | | | | | clustered. procid_is_me() is much cheaper to test and can optimize up to 50% of the calls to serverid_exists(). Volker please check. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Aug 20 01:15:07 CEST 2011 on sn-devel-104
* s3:passdb/py_passdb.c - restore Python >= 2.4 compatibilityMatthias Dieter Wallnöfer2011-08-191-0/+7
| | | | | Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Fri Aug 19 21:03:44 CEST 2011 on sn-devel-104
* ldb:ldb_controls.c - cosmetic indentation fixMatthias Dieter Wallnöfer2011-08-191-5/+4
|
* ldb - two cosmetic fixesMatthias Dieter Wallnöfer2011-08-192-4/+2
| | | | | @ldb.h: Removes an invalid comment line @pyldb.c: Fixes indentation
* Revert "s3-messaging: IDMAP_ messages belongs to the Winbind range"Simo Sorce2011-08-191-4/+4
| | | | | | | | | | This reverts commit 102f39ae3e7df26faf81595c8e0120b2e2a45bbd. These messages are handled by smbd not winbind, and could potentially be of general interest. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Fri Aug 19 16:16:05 CEST 2011 on sn-devel-104
* s3-passdb pdb_samba4 handles PDB_PWHISTORY alreadyAndrew Bartlett2011-08-191-1/+0
| | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Aug 19 10:40:16 CEST 2011 on sn-devel-104
* s3_upgrade: Set the administrator password on upgradeAmitay Isaacs2011-08-191-2/+22
| | | | | | | | In the upgrade process, set the administrator password from the existing root or administrator account. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Fix the get/set routines for pw_history for samuAmitay Isaacs2011-08-191-2/+2
| | | | | | | | Return pw_history with current string length (which is a multiple of PW_HISTORY_ENTRY_LEN) and same thing for setting the pw_history. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3_upgrade: Do not add administrator and root accounts from s3 to s4Amitay Isaacs2011-08-191-0/+2
| | | | | | | Need to copy the password from s3 for administrator/root to s4. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* python-samba3: Secrets file loaded from private dir, not lib dirAmitay Isaacs2011-08-192-2/+8
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Display username when reporting error on add_sam_account.Amitay Isaacs2011-08-191-1/+2
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Use pdb_get_nt_passwd() to get nt passwd.Amitay Isaacs2011-08-191-1/+1
| | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3upgrade: Add idmap migration, users/groups importAmitay Isaacs2011-08-191-40/+193
| | | | | | | | Added users/groups import from s3 using python wrapper for passdb. Fix idmap entries for users/groups when migrating from s3 idmap. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* provision: Add idmap database handle to the result of provisionAmitay Isaacs2011-08-191-0/+2
| | | | | | | It is required in s3_upgrade script to migrate idmap database from s3 to s4. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* samba3-python: Add methods to get any entry (user/group) and its sid from idmapAmitay Isaacs2011-08-191-0/+14
| | | | | | | This is required in upgrade_s3 script to migrate idmap database from s3 to s4 Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* py_security: Fix comparison between two dom_sid objectsAmitay Isaacs2011-08-191-1/+9
| | | | | | | | dom_sid_compare() function can return values other than -1, 0, 1. Python requires compare function to return value from [-1, 0, 1]. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Fix call for search_aliases(). It returns bool and not NTSTATUS.Amitay Isaacs2011-08-191-4/+1
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Return list of sids from python wrapper enum_group_membersAmitay Isaacs2011-08-191-5/+9
| | | | | | | | Instead of returning rids as the C api does, return sids, so it is similar to enum_aliasmem and can be used easily in s3_upgrade. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Make arguments for python wrapper enum_group_mapping() optionalAmitay Isaacs2011-08-191-5/+10
| | | | | | | Set the defaults, if no arguments are provided. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Added python wrapper for passdb methodsAmitay Isaacs2011-08-191-21/+831
| | | | | | | | | | | | | Added following methods - uid_to_sid, gid_to_sid, sid_to_id, new_rid - get_trusteddom_pw, set_trusteddom_pw, del_trusteddom_pw, enum_trusteddoms - get_trusted_domain, get_trusted_domain_by_sid, set_trusted_domain, del_trusted_domain, enum_trusted_domains - get_secret, set_secret, delete_secret Updated documentation for all methods Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Python wrapper for passdbAmitay Isaacs2011-08-191-8/+1283
| | | | | | | | | | | | | | | | | | | - Added Groupmap python wrapper - Added passdb methods getgrsid, getgrgid, getgrnam create_dom_group, delete_dom_group add_group_mapping_entry, update_group_mapping_entry, delete_group_mapping_entry enum_group_mapping, enum_group_members add_groupmem, del_groupmem create_alias, delete_alias get_aliasinfo, set_aliasinfo add_aliasmem, del_aliasmem, enum_aliasmem get_account_policy, set_account_policy search_groups, search_aliases Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-passdb: Replace SMB_MALLOC_ARRAY()/SAFE_FREE() with talloc equivalents.Amitay Isaacs2011-08-194-16/+16
| | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* Fix bug #8370 - vfs_chown_fsp broken -- returns in the wrong directoryJeremy Allison2011-08-192-5/+18
| | | | | | | Ensure we always use vfs_ChDir() to keep the singleton cache coherent. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Aug 19 00:43:05 CEST 2011 on sn-devel-104
* credentials: Rename library to samba-credentials to avoid name clashes.Jelmer Vernooij2011-08-1819-34/+34
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Aug 18 22:16:38 CEST 2011 on sn-devel-104
* smb_common: Fix include paths.Jelmer Vernooij2011-08-181-5/+5
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Aug 18 16:54:01 CEST 2011 on sn-devel-104
* cli-raw: Add public libsmbclient-raw library.Jelmer Vernooij2011-08-188-12/+24
|
* libcliraw: Install more header files.Jelmer Vernooij2011-08-184-4/+4
|
* smb_common: Install some more headers.Jelmer Vernooij2011-08-182-2/+3
|
* libcliraw: Install request.h and signing.h.Jelmer Vernooij2011-08-181-1/+2
|
* smb_composite: Remove unnecessary include of signing header.Jelmer Vernooij2011-08-181-1/+0
|
* smb_composite: Integrate prototypes in header file.Jelmer Vernooij2011-08-183-4/+69
|
* Use public pytalloc header file.Jelmer Vernooij2011-08-140-0/+0
|
* s3/ldap: don't continue if we couldn't get the domain info on startupBjörn Jacke2011-08-181-7/+4
| | | | | | | | | while some things work without the domain info, some important things don't, which is highly irritating. As even calls like EnumTrustDom fail and thus clients' domain logins fail we are sufficiently broken to refuse to go on. Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Thu Aug 18 12:48:37 CEST 2011 on sn-devel-104
* s4-test: use dbcheck on more of our selftest databasesAndrew Tridgell2011-08-181-2/+3
| | | | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Aug 18 02:58:55 CEST 2011 on sn-devel-104
* s4-test: only check one database in quickcheckAndrew Tridgell2011-08-181-1/+1
|
* s4-dsdb: fixed deletion of backlinks for fl2000 DCsAndrew Tridgell2011-08-181-18/+13
| | | | | | | | | when in FL 2000 we were not correctly deleting backlinks as we uses dsdb_find_dn_by_guid() which doesn't find deleted objects. Modules should use dsdb_module_dn_by_guid() which prevents going to the top level, and finds deleted objects Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dsdb: added comments and fixed backlink check in repl_meta_dataAndrew Tridgell2011-08-181-2/+17
| | | | | | | | added comments explaining the backlink deletion code, plus fix a use of a bitwise operation in a boolean expression, and avoid calling dsdb_functional_level() inside a loop Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-dirsync: use dsdb_module_dn_by_guid() not dsdb_find_dn_by_guid() in modulesAndrew Tridgell2011-08-181-1/+1
| | | | | | this prevents us going to the top level of the module stack Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: changed samba-tool user delete to use samdb instead of Net()Andrew Tridgell2011-08-181-9/+17
| | | | | this makes it possible to use with -H, so you can delete users on remote DCs or against local databases
* s4-samdb: added deleteuser() to samdbAndrew Tridgell2011-08-181-0/+23
| | | | This is similar to deletegroup()
* s4-test: prevent the utable test from crashingAndrew Tridgell2011-08-181-3/+5
|
* Adapt del_sid_from_array to Samba coding styleVolker Lendecke2011-08-171-1/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Aug 17 16:46:24 CEST 2011 on sn-devel-104
* Fix a typoVolker Lendecke2011-08-171-1/+1
|
* s3: Next step to fix MIT trustsVolker Lendecke2011-08-171-0/+4
| | | | | | | | aa3f10c was not complete in the sense that it did not fully cover some conditions that led to invalid domains in the winbind parent Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Aug 17 13:59:06 CEST 2011 on sn-devel-104
* s3: Increase a debug level in ads_find_dcVolker Lendecke2011-08-171-1/+2
| | | | | This message can happen with AD trusts that winbind can not cope with. The message is not really clear and not worth spamming syslog always.