summaryrefslogtreecommitdiff
path: root/source3/lib/util_sid.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-06-14 02:58:03 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-06-14 02:58:03 +0000
commit0d7ac4bc2ca8eea117a0f594880b5aac02f1056d (patch)
treeb1fa7e2a227bae1fce246f0d4869a0e4e168d36f /source3/lib/util_sid.c
parent0886638844b6ea5253cae217682c680cc7b6cec8 (diff)
downloadsamba-0d7ac4bc2ca8eea117a0f594880b5aac02f1056d.tar.gz
samba-0d7ac4bc2ca8eea117a0f594880b5aac02f1056d.tar.bz2
samba-0d7ac4bc2ca8eea117a0f594880b5aac02f1056d.zip
Patch from ctrlsoft to make the pluggable passdb subsystem use an lp_list
rather than a string when configuring mulitple backends. Also adjust some of the users of get_global_sam_sid() to cope with the fact that it just might not exist (uninitialised, can't access secrets.tdb). More places need conversion. Add some const and remove silly casts. Andrew Bartlett (This used to be commit c264bf2ec93037d2a9927c00295fa60c88b7219d)
Diffstat (limited to 'source3/lib/util_sid.c')
-rw-r--r--source3/lib/util_sid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c
index ca9ebb14d2..b27040b658 100644
--- a/source3/lib/util_sid.c
+++ b/source3/lib/util_sid.c
@@ -119,7 +119,7 @@ void split_domain_name(const char *fullname, char *domain, char *name)
Convert a SID to an ascii string.
*****************************************************************/
-char *sid_to_string(fstring sidstr_out, DOM_SID *sid)
+char *sid_to_string(fstring sidstr_out, const DOM_SID *sid)
{
char subauth[16];
int i;
@@ -149,7 +149,7 @@ char *sid_to_string(fstring sidstr_out, DOM_SID *sid)
/*
useful function for debug lines
*/
-const char *sid_string_static(DOM_SID *sid)
+const char *sid_string_static(const DOM_SID *sid)
{
static fstring sid_str;
sid_to_string(sid_str, sid);