diff options
author | Volker Lendecke <vl@samba.org> | 2015-08-24 12:33:28 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-08-26 21:41:12 +0200 |
commit | 4a442e2eb7e0b2c62bcc355d461dfd1aaf8c26e8 (patch) | |
tree | 7df0f521ee3a5a4a64538972254aaac64f90743a /source3/libads/ldap.c | |
parent | dba9e631bd1e1c7e00430b72f0c60b32ee4eeb33 (diff) | |
download | samba-4a442e2eb7e0b2c62bcc355d461dfd1aaf8c26e8.tar.gz |
lib: Make sid_parse take a uint8_t
sid_parse takes a binary blob, uint8_t reflects this a bit
better than char * does
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/libads/ldap.c')
-rw-r--r-- | source3/libads/ldap.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 87631641ff1..e8ccfa9c3d4 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -2361,7 +2361,8 @@ static void dump_sid(ADS_STRUCT *ads, const char *field, struct berval **values) for (i=0; values[i]; i++) { struct dom_sid sid; fstring tmp; - if (!sid_parse(values[i]->bv_val, values[i]->bv_len, &sid)) { + if (!sid_parse((const uint8_t *)values[i]->bv_val, + values[i]->bv_len, &sid)) { return; } printf("%s: %s\n", field, sid_to_fstring(tmp, &sid)); @@ -2891,7 +2892,8 @@ int ads_count_replies(ADS_STRUCT *ads, void *res) count = 0; for (i=0; values[i]; i++) { - ret = sid_parse(values[i]->bv_val, values[i]->bv_len, &(*sids)[count]); + ret = sid_parse((const uint8_t *)values[i]->bv_val, + values[i]->bv_len, &(*sids)[count]); if (ret) { DEBUG(10, ("pulling SID: %s\n", sid_string_dbg(&(*sids)[count]))); @@ -3456,7 +3458,7 @@ ADS_STATUS ads_get_sid_from_extended_dn(TALLOC_CTX *mem_ctx, return ADS_ERROR_NT(NT_STATUS_INVALID_PARAMETER); } - if (!sid_parse(buf, buf_len, sid)) { + if (!sid_parse((const uint8_t *)buf, buf_len, sid)) { DEBUG(10,("failed to parse sid\n")); return ADS_ERROR_NT(NT_STATUS_INVALID_PARAMETER); } |