summaryrefslogtreecommitdiffstats
path: root/source3/passdb
Commit message (Collapse)AuthorAgeFilesLines
...
* Implement pdb_ads_[add|del]_groupmemVolker Lendecke2009-06-091-11/+69
|
* Implement pdb_ads_delete_dom_groupVolker Lendecke2009-06-091-1/+47
|
* Implement pdb_ads_enum_group_membersVolker Lendecke2009-06-081-3/+57
|
* Fix some nonempty blank linesVolker Lendecke2009-06-081-34/+34
|
* Fix two 64-bit warningsVolker Lendecke2009-06-081-2/+2
|
* Implement pdb_[add|del]aliasmemVolker Lendecke2009-06-081-2/+99
|
* Do not use a variable format stringVolker Lendecke2009-06-081-1/+1
|
* Implement pdb_ads_enum_aliasmemVolker Lendecke2009-06-081-3/+86
|
* Pass a talloc_ctx to pdb_enum_aliasmemVolker Lendecke2009-06-083-5/+9
|
* Implement pdb_ads_delete_aliasVolker Lendecke2009-06-081-1/+44
|
* Implement pdb_ads_create_dom_group()Volker Lendecke2009-06-081-1/+69
|
* More pdb_ads stuffVolker Lendecke2009-06-071-6/+108
|
* Make "net sam list" work for groups, aliases and builtinsVolker Lendecke2009-06-071-7/+58
|
* Return full info in pdb_ads_search_users()Volker Lendecke2009-06-071-5/+17
|
* s3-samr: fix return code of _samr_LookupRids when run with pdb_ldap.Günther Deschner2009-06-071-0/+5
| | | | | | | | | when _samr_LookupRids is called with no rids, it needs to return NT_STATUS_NONE_MAPPED (not NT_STATUS_NO_MEMORY). Found by RPC-SAMR torture test. Guenther
* s3/passdb: Fix debug message: 'net setmaxrid' does not exist.Karolin Seeger2009-06-061-2/+2
| | | | | | This is aiming bug #6351. Karolin
* Add an early prototyp of pdb_ads.c.Volker Lendecke2009-06-061-0/+1284
| | | | | | | | | The purpose of this module is to connect to a locally running samba4 ldap server for an alternative "Franky" setup. Right now it contains a couple of gross hacks: For example it just takes the s4-chosed RID directly as uid/gid... Checking in tldap and pdb_ads now, I think 3777 insertions are enough for a start...
* Fix some nonempty blank linesVolker Lendecke2009-05-311-52/+52
|
* s3-passdb: fix uninitialized variable in local_password_change().Günther Deschner2009-05-291-1/+1
| | | | Guenther
* Consolidate user create/delete paths in smbpasswdSimo Sorce2009-05-291-147/+179
| | | | | | | | | | | | This patch changes the way smbpasswd behaves when adding/deleting users. smbpasswd now calls pdb_create_user/pdb_delete_user, this means that if add/delete user scripts are configured then they are used to create or delete unix users as well. If the scripts are not defined the behavioris unchanged. This also allow to use smbpasswd -a/-x with ldapsam:editposix to allow automatic creation/deletion of users. Signed-off-by: Günther Deschner <gd@samba.org>
* util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.Günther Deschner2009-05-291-20/+0
| | | | Guenther
* TALLOC_ZERO_P->talloc_zeroVolker Lendecke2009-05-281-1/+2
|
* Do not segfault in pdb_search_destructor if no real search was startedVolker Lendecke2009-05-281-1/+2
|
* s3: zero an uninitialized arrayMarc VanHeyningen2009-05-271-1/+4
| | | | | | | Invalid pointers were being dereferenced in lookup_sids causing occasional seg faults. Signed-off-by: Tim Prouty <tprouty@samba.org>
* Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke2009-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces struct stat_ex { dev_t st_ex_dev; ino_t st_ex_ino; mode_t st_ex_mode; nlink_t st_ex_nlink; uid_t st_ex_uid; gid_t st_ex_gid; dev_t st_ex_rdev; off_t st_ex_size; struct timespec st_ex_atime; struct timespec st_ex_mtime; struct timespec st_ex_ctime; struct timespec st_ex_btime; /* birthtime */ blksize_t st_ex_blksize; blkcnt_t st_ex_blocks; }; typedef struct stat_ex SMB_STRUCT_STAT; It is really large because due to the friendly libc headers playing macro tricks with fields like st_ino, so I renamed them to st_ex_xxx. Why this change? To support birthtime, we already have quite a few #ifdef's at places where it does not really belong. With a stat struct that we control, we can consolidate the nanosecond timestamps and the birthtime deep in the VFS stat calls. At this moment it is triggered by a request to support the birthtime field for GPFS. GPFS does not extend the system level struct stat, but instead has a separate call that gets us the additional information beyond posix. Without being able to do that within the VFS stat calls, that support would have to be scattered around the main smbd code. It will very likely break all the onefs modules, but I think the changes will be reasonably easy to do.
* Move smb_create_user() in samsyncSimo Sorce2009-05-161-60/+0
| | | | | It is not used anywhere else, so make it also static and remove it from proto.h
* s3: Fallback to the legacy sid_to_(uid|gid) instead of returning NULL.Aravind Srinivasan2009-05-122-26/+4
| | | | This is very similar to be1dfff02d562e42a7847bd02fed8538630d3f41
* Fix the last few format arg missmatches I missed.Jeremy Allison2009-05-121-4/+4
| | | | Jeremy.
* Fix bug 6157Volker Lendecke2009-05-121-1/+1
| | | | | This patch picks the alphabetically smallest one of the multi-value attribute "uid". This fixes a regression against 3.0 and also becomes deterministic.
* Fix a bunch of compiler warnings about wrong format types.Jeremy Allison2009-05-113-10/+10
| | | | | Should make Solaris 10 builds look cleaner. Jeremy.
* s3/ldap: also handle DirX return codesBjörn Jacke2009-05-081-0/+2
|
* s3-ldap: fix more callers of smbldap_dn_talloc() that were passing a NULL ↵Günther Deschner2009-05-052-2/+2
| | | | | | context. Guenther
* s3-ldapsam: Fix Bug #6313: ldapsam_update_sam_account() crashes while doing ↵Günther Deschner2009-05-051-1/+1
| | | | | | talloc_free on malloced memory. Guenther
* Rework Samba3 to use new libcli/auth code (partial)Andrew Bartlett2009-04-144-1/+4
| | | | | | | | | | | This commit is mostly to cope with the removal of SamOemHash (replaced by arcfour_crypt()) and other collisions (such as changed function arguments compared to Samba3). We still provide creds_hash3 until Samba3 uses the credentials code in netlogon server Andrew Bartlett
* Convert Samba3 to use the common lib/util/charset APIAndrew Bartlett2009-04-142-15/+15
| | | | | | | | | | | | This removes calls to push_*_allocate() and pull_*_allocate(), as well as convert_string_allocate, as they are not in the common API To allow transition to a common charcnv in future, provide Samba4-like strupper functions in source3/lib/charcnv.c (the actual implementation remains distinct, but the API is now shared) Andrew Bartlett
* s3:smbldap Remove smbldap_get_dnAndrew Bartlett2009-04-062-29/+18
| | | | | | This removes one more caller to pull_utf8_allocate() Signed-off-by: Günther Deschner <gd@samba.org>
* Allow pdbedit to change a user rid/sid. Based on a fix from Alexander ↵Jeremy Allison2009-04-011-3/+57
| | | | | | Zagrebin <alexz@visp.ru>. Jeremy.
* s3-passdb: add smb_create_user().Günther Deschner2009-04-011-0/+59
| | | | Guenther
* s3: fix the fix for bug #6195 - dont let smbd child processes panicMichael Adam2009-04-011-2/+16
| | | | | | | | | | | This patch makes sure the original and temporary TDBs are closed _before_ the rename. Originally, the open TDB was renamed, and so the name passdb.tdb.tmp stayed around in the db context. Hence upon client connect, the smbd children died because reinit_after_fork() calling tdb_reopen_all() would try to reopen passdb.tdb.tmp which existed no longer... Michael
* Fix the problem of 3.0.x passdb databases being versionJeremy Allison2009-03-271-5/+43
| | | | | | | 3 but using a different hash calculation than 3.2.x passwd databases (also version 3). Introduces a minor version number. Jeremy.
* Fix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb ↵Jeremy Allison2009-03-271-1/+2
| | | | | | | | | | correctly. For the clustering case. Clustered setups should have only ever used the unsigned version of TDB_DATA in the first place so they can't be in this mess :-). Just do the normal upgrade in the clustered case. Jeremy.
* Fix bug 6097Volker Lendecke2009-03-241-1/+1
| | | | | | | A client sent a SID with authority 0 and 0 sub-authorities. W2k3 replies with NT_STATUS_INVALID_SID, even if other SIDs in the list are valid. Thanks to Pavel <wylda@volny.cz> for the bug report!
* Fix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb ↵Jeremy Allison2009-03-181-14/+201
| | | | | | | | | correctly. This is a really nasty one to fix as in order to successfully update the passdb.tdb we must do the equivalent of a tdbbackup to move to the new hash values before we do the upgrade. Jeremy.
* Missing break in conversion function prevents tdb password database update.Alexander Zagrebin2009-03-171-0/+1
|
* s3 pdb_wbc_sam: LookupRids should return sAMAccountName, not NT4 namesDan Sledz2009-03-121-5/+7
| | | | Also fix an incorrect TALLOC_FREE
* Shape up pdb_search a bit by making it a talloc ctx with a destructorVolker Lendecke2009-03-074-57/+46
|
* s3 passdb: Add back some useful debug statementsTim Prouty2009-03-031-18/+24
| | | | Originally removed in be1dfff02d562e42a7847bd02fed8538630d3f41
* It appears that the first time we see a uid/gid that winbind can't map,Dan Sledz2009-03-021-14/+22
| | | | | | | | | | we end up returning the null sid instead of falling back to the legacy code. Next time through the code we'll hit the negative cache and do the right thing, but we still fail the first time. If we fail the winbind id to sid mapping, call the legacy version. This catches the case where we don't have a negative cache entry for the mapping. This is better than returning the NULL sid to the caller.
* Fix an incompatible pointer passed to winbind_get_groupsVolker Lendecke2009-02-251-1/+3
| | | | | | | | | | | | This is the same bug that was fixed in other places of the code a few times already: A C compiler ONLY does automatic type conversions during an assignment. Passing down a pointer to type A to a function taking type B as an argument does NOT do any automatic type conversions. If required, I can dig up the relevant portions of the C standard.
* s3: Rename auth_onefs_wb and pdb_onefs_samDan Sledz2009-02-241-58/+73
| | | | | | | auth_onefs_wb.c -> auth_wbc.c pdb_onefs_sam.c -> pdb_wbc_sam.c No changes to functionality