summaryrefslogtreecommitdiff
path: root/source3/include/passdb.h
AgeCommit message (Collapse)AuthorFilesLines
2013-04-09PASSDB: add support to set and enumerate UPN suffixes associated with our forestAlexander Bokovoy1-1/+17
Samba PDC may manage a forest containing DNS domains in addition to the primary one. Information about them is advertised via netr_DsRGetForestTrustInformation when trusted_domain_name is NULL, according to MS-NRPC and MS-LSAD, and via netr_GetForestTrustInformation. This changeset only expands PASSDB API; how suffixes are maintained is left to specific PDB modules. Set function is added so that suffixes could be managed through 'net' and other Samba utilities, if possible. One possible implementation is available for ipasam module in FreeIPA: http://git.fedorahosted.org/cgit/freeipa.git/commit/?id=cc56723151c9ebf58d891e85617319d861af14a4 Reviewed-by: Andreas Schneider <asn@samba.org>
2012-12-03s3:passdb: factor pdb_sid_to_id_unix_users_and_groups() out of ↵Michael Adam1-0/+3
pdb_default_sid_to_id() The special treatment of the "Unix User" and "Unix Group" pseudo domains can be reused. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2012-09-07s3-passdb: wrap secrets.tdb accessors used by PDB modulesAlexander Bokovoy1-0/+11
PDB modules store domain sid and guid in secrets.tdb to cooperate with other parts of smbd. If PDB module is built outside Samba source code it has to be linked against internal libsecrets. Wrap required secrets_* calls to avoid direct linking. libpdb is linked against libsecrets by itself and this is enough.
2012-05-23s3-passdb: add unixid_from_uid/unixid_from_gid/unixid_from_both APIAlexander Bokovoy1-0/+5
struct unixid is defined in idmap.idl and therefore to use it one would need generated headers from librpc/gen_ndr. Not all of these files are installed and available as public headers. Also, they pull in some support headers which requires them to be available via specific locations like <librpc/gen_ndr/*> or <libcli/util>. Instead of pulling the headers to get structure and enum definitions, introduce three simple helpers to fill in 'struct unixid' based on the type of id. This is sufficient for PASSDB users and does not require exposing generated headers or code.
2012-05-02s3-passdb: Change pdb_sid_to_id() to return struct unixidAndrew Bartlett1-3/+3
This will make it easier to consistantly pass a struct unixid all the way up and down the idmap stack, and allow ID_TYPE_BOTH to be handled correctly. Andrew Bartlett Signed-off-by: Michael Adam <obnox@samba.org>
2012-04-19s3-passdb: Remove unused sampass->pass_must_change_timeAndrew Bartlett1-3/+0
There is no need to call pdb_set_pass_must_change_time() because nothing ever consults that value. It is always calculated from the domain policy. Also, this means we no longer store the value in LDAP. The value would only ever be set when migrating from tdbsam or smbpasswd, not on password changes, so would become incorrect over time. Andrew Bartlett
2012-01-09s3-passdb: remove a forward declaration.Günther Deschner1-7/+6
Guenther
2011-11-16Fix bug #8561 - Password change settings not fully observed.Jeremy Allison1-0/+1
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Nov 16 00:22:41 CET 2011 on sn-devel-104
2011-10-28s3-passdb: use tevent_context in passdb.Günther Deschner1-2/+3
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Oct 28 13:09:47 CEST 2011 on sn-devel-104
2011-10-18pdb-interface: Do not use unid_t hereSimo Sorce1-2/+2
This interface needs to be publicly available, unid_t here is not really useful and makes it harder to use it as unid_t is not a public union. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Tue Oct 18 20:57:16 CEST 2011 on sn-devel-104
2011-10-14s3-passdb: remove fstring from pdb_set_user_sid_from_string().Günther Deschner1-1/+1
Guenther
2011-10-14s3-passdb: add {LM|NT}_HASH_LEN defines in passdb.h.Günther Deschner1-0/+8
Guenther
2011-10-14s3-passdb: use uintX_t at least in headers.Günther Deschner1-4/+4
Guenther
2011-10-14s3-passdb: move passdb prototypes into passdb.hGünther Deschner1-1/+285
Guenther
2011-10-14s3-passdb: move group mapping headers into passdb.hGünther Deschner1-1/+87
Guenther
2011-10-12s3-group-mapping: Remove fstrings from GROUP_MAP.Simo Sorce1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Oct 12 19:28:12 CEST 2011 on sn-devel-104
2011-09-26s3-passdb: Cleanup use of fstring and move to talloc.Simo Sorce1-2/+2
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-08-31s3-pdb_ipa: Add supprted encryption types to struct pdb_trusted_domainSumit Bose1-0/+1
Signed-off-by: Günther Deschner <gd@samba.org>
2011-08-31s3-pdb_ipa: Add posix offset to struct pdb_trusted_domainSumit Bose1-0/+1
Signed-off-by: Günther Deschner <gd@samba.org>
2011-07-31s3-passdb: add dummy calls to control global (replicated) secrets.Günther Deschner1-2/+18
Guenther
2011-03-30s3-passdb: move some passdb defines to passdb.hGünther Deschner1-0/+29
Guenther
2011-03-30s3: include ../librpc/gen_ndr/lsa.h where needed.Günther Deschner1-0/+2
Guenther
2011-03-30s3-passdb: add machine_sid.h and lookup_sid.hGünther Deschner1-0/+2
Guenther
2011-03-30s3-passdb: move mapping.h into passdb.h, its needed here.Günther Deschner1-0/+2
Guenther
2011-03-30s3-passdb: move passdb headers to passdb/proto.h.Günther Deschner1-0/+2
Guenther
2011-02-22s3:auth: change num_groups to from size_t to uint32_tStefan Metzmacher1-1/+1
This will help with the change from UNIX_USER_TOKEN to security_unix_token metze
2011-02-17s3-passdb: add PDB_CAP_TRUSTED_DOMAINS_EX.Günther Deschner1-2/+3
Guenther
2011-02-16s3-lsa: Implement lsaRSetForestTrustInformationSumit Bose1-0/+1
Signed-off-by: Günther Deschner <gd@samba.org>
2011-02-16s3-ipasam: add ipasam_get_trusted_domain_by_sid()Sumit Bose1-0/+4
Signed-off-by: Günther Deschner <gd@samba.org>
2011-02-16s3-passdb: add {get,set,del,enum}_trusted_domain callsSumit Bose1-0/+26
Signed-off-by: Günther Deschner <gd@samba.org>
2011-02-15s3: Add "code_page" to struct samuVolker Lendecke1-0/+2
2011-02-15s3: Add "country_code" to struct samuVolker Lendecke1-0/+3
2011-02-09s3: move some stuff out of smb.h to better locations.Günther Deschner1-0/+2
Guenther
2010-08-05s3-secrets: only include secrets.h when needed.Günther Deschner1-0/+9
Guenther
2010-05-21s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett1-25/+25
This matches the structure that new code is being written to, and removes one more of the old-style named structures, and the need to know that is is just an alias for struct dom_sid. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-21s3:passdb Remove use of uint8 uint16 and uint32 in favour of C99 typesAndrew Bartlett1-30/+30
Signed-off-by: Günther Deschner <gd@samba.org>
2010-05-08s3: move BASE_RID to main includes.h (in preparation to separate passdb).Günther Deschner1-2/+0
Guenther
2010-03-16s3: Remove a typedefVolker Lendecke1-2/+2
2009-11-26s3-passdb: move some defines out of rpc headers (they really belong to passdb).Günther Deschner1-0/+15
Guenther
2009-11-14s3:passdb: bump interface VERSION 18->19 (removed uid_to_rid)Michael Adam1-1/+2
Michael
2009-11-14s3:passdb: remove the uid_to_rid method - we only need uid_to_sidMichael Adam1-2/+0
Michael
2009-07-14s3-account_policy: add pdb_policy_type enum.Günther Deschner1-2/+20
Guenther
2009-07-05Actually increase PASSDB_INTERFACE_VERSION to 18 :-)Volker Lendecke1-1/+1
2009-07-04Add pdb_get_domain_infoVolker Lendecke1-0/+11
2009-07-04Make pdb_ads return an additional flagVolker Lendecke1-0/+1
2009-06-28Turn the pdb_rid_algorithm into a capabilities call that returns flagsVolker Lendecke1-1/+4
2009-06-08Pass a talloc_ctx to pdb_enum_aliasmemVolker Lendecke1-2/+2
2009-05-28Fix some nonempty blank linesVolker Lendecke1-17/+17
2009-03-07Shape up pdb_search a bit by making it a talloc ctx with a destructorVolker Lendecke1-1/+0
2008-12-29s3:passdb: add SAMU_BUFFER_V4 with no changesStefan Metzmacher1-1/+3
The upgrade is required because of the followin TDBSAM_VERSION upgrade. metze