summaryrefslogtreecommitdiffstats
path: root/source3/utils/net_groupmap.c
Commit message (Collapse)AuthorAgeFilesLines
* Typo: sucessfully -> successfullyJelmer Vernooij2014-04-131-1/+1
| | | | | | | Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Change-Id: I23258edf9c197081c882ba85dedf833292e56e4e Reviewed-on: https://gerrit.samba.org/219 Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3: rename sid_check_is_in_our_domain() to sid_check_is_in_our_sam()Michael Adam2012-07-121-1/+1
| | | | | | | | | This does not check whether the given sid is in our domain, but but whether it belongs to the local sam, which is a different thing on a domain member server. Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Jul 12 18:36:02 CEST 2012 on sn-devel-104
* Fix bug #8687 - net memberships usage info is wrongJeremy Allison2012-01-061-1/+1
| | | | | | | Typo in usage. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Jan 6 00:30:20 CET 2012 on sn-devel-104
* s3-group-mapping: Remove fstrings from GROUP_MAP.Simo Sorce2011-10-121-60/+130
| | | | | | | 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
* s3-lib Replace StrnCaseCmp() with strncasecmp_m()Andrew Bartlett2011-05-181-16/+16
| | | | | | | strncasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* s3-lib Replace StrCaseCmp() with strcasecmp_m()Andrew Bartlett2011-05-181-1/+1
| | | | | | | strcasecmp_m() never needs to call to talloc, and via next_codepoint() still has an ASCII fast-path bypassing iconv() calls. Andrew Bartlett
* Fix warning messages caused by addition of null check in fstrcpy macro.Jeremy Allison2011-05-041-5/+5
|
* s3-passdb: add passdb.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-includes: only include system/passwd.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: Fix Coverity ID 1402: PASS_BY_VALUEVolker Lendecke2011-03-161-11/+11
| | | | | | | There's no point in passing GROUP_MAP on the stack Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Mar 16 21:58:08 CET 2011 on sn-devel-104
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-0/+1
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett2010-05-211-14/+14
| | | | | | | | | | 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>
* s3-rpc_misc: clean out include/rpc_misc.h.Günther Deschner2010-05-181-2/+2
| | | | | | | Well known rids don't really belong into an rpc header, just use the ones defined in security.idl. Guenther
* s3: Use global_sid_Builtin in net_groupmap_membershipsVolker Lendecke2010-01-231-4/+3
|
* s3 net: Fix compile warningsKai Blin2010-01-191-16/+28
|
* s3 net/i18n: Use only one spelling for "Usage:"Kai Blin2010-01-191-1/+1
|
* s3/net: split up some printable stings to ease i18nBjörn Jacke2010-01-181-15/+15
| | | | | | If we put strings like "Usage:" into separate _() macros and not the whole "Usage:..." string we can cover much more messages by only one single translation. The drawback is that the message in the sources looks less pretty.
* s3: Replace most calls to sid_append_rid() by sid_compose()Volker Lendecke2010-01-101-6/+3
|
* s3 net: Remove uid==0 check from net groupmapKai Blin2009-07-301-7/+0
|
* s3 net: i18n support for net group and net groupmapKai Blin2009-07-301-124/+153
|
* Turn the pdb_rid_algorithm into a capabilities call that returns flagsVolker Lendecke2009-06-281-6/+6
|
* Pass a talloc_ctx to pdb_enum_aliasmemVolker Lendecke2009-06-081-1/+2
|
* Fix a bunch of compiler warnings about wrong format types.Jeremy Allison2009-05-111-1/+1
| | | | | Should make Solaris 10 builds look cleaner. Jeremy.
* Fix bug 6336: "net groupmap set" segfaultsVolker Lendecke2009-05-071-2/+4
|
* net: Rename functable3 to functable, get rid of old functablesKai Blin2008-06-101-2/+2
| | | | (This used to be commit bb7c5fc4ec77db4073d3beccf12af12910b6bd07)
* net: Make "net groupmap" use functable3Kai Blin2008-06-101-51/+138
| | | | (This used to be commit c328b3e30b17866f4a0fd344d01efca826215cbc)
* net: The top level help function for net cmd is always net_cmd_usageKai Blin2008-05-201-4/+4
| | | | (This used to be commit f7d0903a58b0b0fc248a613937a101f15baa5311)
* net: Use true/false instead of True/False.Kai Blin2008-05-201-9/+9
| | | | (This used to be commit a8b567aac3b0e39cfe67fb97167b10312ca5e73a)
* net: more whitespace cleanupKai Blin2008-05-101-41/+41
| | | | (This used to be commit ef0184d580500734fc7af51e1c790b075180a3d0)
* net: Remove globalsKai Blin2008-05-101-28/+27
| | | | (This used to be commit 1e9319cf88b65a2a8d4f5099a1fe5297e405ed2e)
* s/sid_to_string/sid_to_fstring/Volker Lendecke2007-12-151-1/+1
| | | | | least surprise for callers (This used to be commit eb523ba77697346a365589101aac379febecd546)
* Replace sid_string_static with sid_string_tosVolker Lendecke2007-12-151-7/+7
| | | | | In utils/ I was a bit lazy... (This used to be commit 60e830b0f4571bd5d9039f2edd199534f2a4c341)
* Move param helper routines to one place.Günther Deschner2007-11-301-31/+0
| | | | | Guenther (This used to be commit 6bf2c8038c4bc7a52b7f260209ade0bdeb95c685)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-5/+5
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r23323: merged ldb changes from 3.0.26Andrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 7c9a5c2a3f012a06e9550dc0de7df460c2fd943b)
* r18271: Big change:Gerald Carter2007-10-101-2/+2
| | | | | | | | | | | | * autogenerate lsa ndr code * rename 'enum SID_NAME_USE' to 'enum lsa_SidType' * merge a log more security descriptor functions from gen_ndr/ndr_security.c in SAMBA_4_0 The most embarassing thing is the "#define strlen_m strlen" We need a real implementation in SAMBA_3_0 which I'll work on after this code is in. (This used to be commit 3da9f80c28b1e75ef6d46d38fbb81ade6b9fa951)
* r17669: Remove RID algorithm support from unmapped users and groupsGerald Carter2007-10-101-2/+9
| | | | | when using smbpasswd (This used to be commit dde552336c732ddd6076a6a32575a37cb51aa94c)
* r17554: CleanupVolker Lendecke2007-10-101-42/+43
| | | | (This used to be commit 761cbd52f0cff6b864c506ec03c94039b6101ef9)
* r17496: net groupmap add could add uninitialized sid_name_typeJeremy Allison2007-10-101-10/+27
| | | | | | entries to the group mapping db. Ensure this can't happen. Jeremy. (This used to be commit 2ba0d93d53868c8b28dccf91dfa26e86817da511)
* r17468: To minimize the diff later on, pre-commit some changes ↵Volker Lendecke2007-10-101-3/+3
| | | | | | | | | independently: Change internal mapping.c functions to return NTSTATUS instead of BOOL. Volker (This used to be commit 4ebfc30a28a6f48613098176c5acdfdafbd2941a)
* r17465: Get rid of add_initial_entry. In the two places it was called in it ↵Volker Lendecke2007-10-101-33/+33
| | | | | | | | | seemed a bit pointless to me. Volker (This used to be commit 244b25ae49d3c635fc54498dbee29f5b649ea1fa)
* r17463: A bit of cleanup work:Volker Lendecke2007-10-101-6/+6
| | | | | | | | | | | | | Remove some unused code: pdb_find_alias is not used anymore, and nobody I think has ever used the pdb_nop operations for group mapping. smbpasswd and tdb use the default ones and ldap has its own. Make the functions pdb_getgr* return NTSTATUS instead of BOOL. Nobody right now really makes use of it, but it feels wrong to throw away information so early. Volker (This used to be commit f9856f6490fe44fdba97ea86062237d8c74d4bdc)
* r17451: Change pdb_getgrsid not to take a DOM_SID but a const DOM_SID * as anVolker Lendecke2007-10-101-3/+3
| | | | | | | argument. Volker (This used to be commit 873a5a1211d185fd50e7167d88cbc869f70dfd3f)
* r14403: * modifies create_local_nt_token() to create a BUILTIN\AdministratorsGerald Carter2007-10-101-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | group IFF sid_to_gid(S-1-5-32-544) fails and 'winbind nested groups = yes' * Add a SID domain to the group mapping enumeration passdb call to fix the checks for local and builtin groups. The SID can be NULL if you want the old semantics for internal maintenance. I only updated the tdb group mapping code. * remove any group mapping from the tdb that have a gid of -1 for better consistency with pdb_ldap.c. The fixes the problem with calling add_group_map() in the tdb code for unmapped groups which might have had a record present. * Ensure that we distinguish between groups in the BUILTIN and local machine domains via getgrnam() Other wise BUILTIN\Administrators & SERVER\Administrators would resolve to the same gid. * Doesn't strip the global_sam_name() from groups in the local machine's domain (this is required to work with 'winbind default domain' code) Still todo. * Fix fallback Administrators membership for root and domain Admins if nested groups = no or winbindd is not running * issues with "su - user -c 'groups'" command * There are a few outstanding issues with BUILTIN\Users that Windows apparently tends to assume. I worked around this presently with a manual group mapping but I do not think this is a good solution. So I'll probably add some similar as I did for Administrators. (This used to be commit 612979476aef62e8e8eef632fa6be7d30282bb83)
* r13648: Duh.Tim Potter2007-10-101-1/+1
| | | | (This used to be commit 48cd81074e5a7cbba5892eedd62fff4ce0d826b5)
* r13494: Merge the stuff I've done in head the last days.Volker Lendecke2007-10-101-2/+2
| | | | | Volker (This used to be commit bb40e544de68f01a6e774753f508e69373b39899)
* r13316: Let the carnage begin....Gerald Carter2007-10-101-10/+28
| | | | | Sync with trunk as off r13315 (This used to be commit 17e63ac4ed8325c0d44fe62b2442449f3298559f)
* r12986: Use d_fprintf(stderr, ...) for any error message in net.Lars Müller2007-10-101-39/+39
| | | | | | | | | All 'usage' messages are still printed to stdout. Fix some compiler warnings for system() calls where we didn't used the return code. Add appropriate error messages and return with the error code we got from system() or NT_STATUS_UNSUCCESSFUL. (This used to be commit f650e3bdafc4c6bcd7eb4bcf8b6b885b979919eb)