summaryrefslogtreecommitdiff
path: root/source3/utils/profiles.c
AgeCommit message (Collapse)AuthorFilesLines
2021-09-10profiles: don't ignore unknown optionsRalph Boehme1-0/+5
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14828 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2021-05-25s3:utils: Migrate profiles to new cmdline option parserAndreas Schneider1-6/+20
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-01-28s3:utils: Use C99 initializer for poptOption in profilesAndreas Schneider1-3/+24
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2018-12-11profiles: Use dom_sid_str_bufVolker Lendecke1-10/+19
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-03-24lib: load_case_tables() -> smb_init_locale()Volker Lendecke1-1/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2014-12-03s3:utils/profiles fix a use after freeChristian Ambach1-3/+3
path is a talloc-child of subkeys, so subkeys should not be freed before calling verbose_output Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Wed Dec 3 00:43:19 CET 2014 on sn-devel-104
2014-05-28s3/profiles: improve copy_registry_tree() errorsDavid Disseldorp1-4/+5
The current error logic doesn't distinguish between a NULL source security descriptor and ENOMEM. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed May 28 20:18:21 CEST 2014 on sn-devel-104
2014-05-28s3/profiles: replace dup_sec_desc() usageDavid Disseldorp1-2/+8
Use security_descriptor_copy() instead, which is also provided by libcli. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2014-04-02s3:utils: avoid argv related const warningsStefan Metzmacher1-2/+2
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2011-03-30s3-includes: only include system/filesys.h when needed.Günther Deschner1-0/+1
Guenther
2010-11-02s3-debug Impove setup_logging() to specify logging to stderrAndrew Bartlett1-3/+1
This change improves the setup_logging() API so that callers which wish to set up logging to stderr can simply ask for it, rather than directly modify the dbf global variable. Andrew Bartlett
2010-10-12libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett1-1/+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
2010-09-25s3: Fix bug 7470Volker Lendecke1-1/+2
S_IREAD and S_IWRITE are not standard. Thanks to Joachim Schmitz <schmitz@hp.com> for reporting!
2010-09-21s3:registry: move regio.h from include/ to registry/Michael Adam1-1/+1
2010-09-20s3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions.Günther Deschner1-4/+5
Guenther
2010-08-05s3-popt: Only include popt-common.h when needed.Andreas Schneider1-0/+1
2010-05-25s3:registry: move reg_objects.h to registry/ and use it only where neededMichael Adam1-1/+1
Every place outside of registry/ where this is used, should probably be changed to use pure reg_api.c code.
2010-05-25s3:profiles: use regval_ctr_init() instead of direct allocationMichael Adam1-1/+2
2010-05-25s3:registry: adapt callers of regval_ctr_addvalue to uint8 * instead of char *Michael Adam1-1/+1
2010-05-21s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett1-2/+2
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-20s3-utils: remove trailing whitespace from profiles utility.Günther Deschner1-16/+16
Guenther
2010-05-18s3-secdesc: remove "typedef struct security_descriptor SEC_DESC".Günther Deschner1-2/+2
Guenther
2010-05-18s3-secdesc: remove "typedef struct security_acl SEC_ACL".Günther Deschner1-1/+1
Guenther
2010-05-18s3-registry: only include registry headers when really needed.Günther Deschner1-0/+1
Guenther
2009-04-27s3:registry: replace typedef REGVAL_CTR by struct regval_ctr.Michael Adam1-3/+3
This paves the way for hiding the typedef and the implementation from the surface. Michael
2009-02-26s3:profiles: use regsubkey_ctr_init() instead of using talloc directly.Michael Adam1-1/+3
Michael
2009-02-26s3:registry: replace typedef "REGSUBKEY_CTR" by "struct regsubkey_ctr"Michael Adam1-3/+3
This paves the way for hiding the typedef and the implementation from the surface. Michael
2009-02-23More warning fixes for Solaris.Jeremy Allison1-15/+15
Jeremy.
2008-12-31Fix all warnings in source3 with gcc4.3.Jeremy Allison1-1/+1
Jeremy.
2007-12-15Replace sid_string_static with sid_string_tosVolker Lendecke1-8/+8
In utils/ I was a bit lazy... (This used to be commit 60e830b0f4571bd5d9039f2edd199534f2a4c341)
2007-12-03Getting to the home stretch for elimination of pstrings...Jeremy Allison1-24/+39
Jeremy. (This used to be commit 041163551194102ca67fef52c57d87020a1d09bc)
2007-10-19Fix the popt / bool issues. Some places we used BOOLJeremy Allison1-1/+1
where we meant int. Fix this. Thanks to metze for pointing this out. Jeremy. (This used to be commit 793a9d24a163cb6cf5a3a0aa5ae30e9f8cf4744a)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-4/+4
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)
2007-10-15Correctly free memory in regfio pathsAlexander Bokovoy1-1/+4
(This used to be commit 97f9a90b823887e808cca96eca7a041f121e6111)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell1-2/+1
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r21540: Fix Bug #3713 and readd reporting what the profiles tool does (whenGünther Deschner1-4/+56
called with the -v option). Patch from William Jojo <jojowil@hvcc.edu>. Guenther (This used to be commit 5889f588ee9bee6ceb6e6d517f6e69e42d55a574)
2007-10-10r18745: Use the Samba4 data structures for security descriptors and security ↵Jelmer Vernooij1-4/+4
descriptor buffers. Make security access masks simply a uint32 rather than a structure with a uint32 in it. (This used to be commit b41c52b9db5fc4a553b20a7a5a051a4afced9366)
2007-10-10r16409: Fix Klocwork ID's.Volker Lendecke1-1/+4
1177 In reg_perfcount.c: 1200 1202 1203 1204 In regfio.c: 1243 1245 1246 1247 1251 Jerry, the reg_perfcount and regfio.c ones, can you take a look please? This is really your code, and I'm not sure I did the right thing to return an error. smbcacls.c: 1377 srv_eventlog_nt.c: 1415 1416 1417 srv_lsa_nt.c: 1420 1421 srv_netlog_nt.c: 1429 srv_samr_nt: 1458 1459 1460 Volker Volker (This used to be commit d6547d12b1c9f9454876665a5bdb010f46b9f5ff)
2007-10-10r13486: Two more -- fix bug 3503Volker Lendecke1-0/+2
(This used to be commit 62b02a68438e0ff1119e68347b1ac3495572fa8a)
2007-10-10r11137: Compile with only 2 warnings (I'm still working on that code) on a gcc4Jeremy Allison1-1/+1
x86_64 box. Jeremy. (This used to be commit d720867a788c735e56d53d63265255830ec21208)
2007-10-10r9780: Clean up a bunch of compiler warnings.James Peach1-2/+2
(This used to be commit 623d2e69319ffead31a780a4d6156dae45f386d7)
2007-10-10r9739: conver the reg_objects (REGSUBKEY_CTR & REGVAL_CTR) to useGerald Carter1-9/+17
the new talloc() features: Note that the REGSUB_CTR and REGVAL_CTR objects *must* be talloc()'d since the methods use the object pointer as the talloc context for internal private data. There is no longer a regXXX_ctr_intit() and regXXX_ctr_destroy() pair of functions. Simply TALLOC_ZERO_P() and TALLOC_FREE() the object. Also had to convert the printer_info_2->NT_PRINTER_DATA field to be talloc()'d as well. This is just a stop on the road to cleaning up the printer memory management. (This used to be commit ef721333ab9639cb5346067497e99fbd0d4425dd)
2007-10-10r9658: cleanup a few debug messagesGerald Carter1-2/+2
(This used to be commit ddd512526c65899de50cafd95b9c64fe623153b3)
2007-10-10r9653: adding common popt args to profiles tool (needed for debuglevel to ↵Gerald Carter1-15/+25
regfio lib) (This used to be commit 092ff7062544fba47a38e68aed9d3c9d6962fe2b)
2007-10-10r9628: rewrite profiles tool to use the regfio code.Gerald Carter1-692/+164
Still have one bug to track down in it though.... (This used to be commit e69df2d2051d0e7e12b6a11f9c77490f619ba792)
2007-10-10r9277: Another unused variable. Bugzilla #2985.Tim Potter1-2/+0
(This used to be commit 5e91d6450b320bb4585169c6805f292f855492a9)
2007-10-10r7882: Looks like a large patch - but what it actually does is make SambaJeremy Allison1-3/+3
safe for using our headers and linking with C++ modules. Stops us from using C++ reserved keywords in our code. Jeremy (This used to be commit 9506b8e145982b1160a2f0aee5c9b7a54980940a)
2007-10-10r7703: Fix the problem with MAP_PRIVATE not updating the file.Richard Sharpe1-1/+1
(This used to be commit 55038d931863a1c44794a7df4c8badbecfb382c7)
2007-10-10r5318: Fix a small problem in where we ignore the response from a ↵Richard Sharpe1-3/+2
SamrGetGroupsForUser that says the user is in 0 groups, and we issue an RPC to LookupIds for 0 RIDs. The printing that there are no groups the user is a member of might be overkill in that it might upset existing scripts that don't expect that output. (This used to be commit d3482e118f99002c0460291d41708fdf7708c41f)