summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-03-28 19:39:16 +0100
committerStefan Metzmacher <metze@samba.org>2008-03-31 12:17:37 +0200
commit0b7610b9c98a1335fc089d834bf193319229f5a2 (patch)
treed34698f6b4cb6ce0690a20532d9f4221bba636a5
parent9f110a735330a743ad56486034de7c6441a94484 (diff)
downloadsamba-0b7610b9c98a1335fc089d834bf193319229f5a2.tar.gz
samba-0b7610b9c98a1335fc089d834bf193319229f5a2.tar.bz2
samba-0b7610b9c98a1335fc089d834bf193319229f5a2.zip
wbinfo: use wbcAllocateUid()
metze (This used to be commit a7d735df292cee7dd6e23c7d2328481d57162904)
-rw-r--r--source3/nsswitch/wbinfo.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c
index 261d9bd2b8..50a716bd1c 100644
--- a/source3/nsswitch/wbinfo.c
+++ b/source3/nsswitch/wbinfo.c
@@ -670,10 +670,17 @@ static bool wbinfo_sid_to_gid(const char *sid_str)
static bool wbinfo_allocate_uid(void)
{
+ wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE;
uid_t uid;
- if (!winbind_allocate_uid(&uid))
+ /* Send request */
+
+ wbc_status = wbcAllocateUid(&uid);
+ if (!WBC_ERROR_IS_OK(wbc_status)) {
return false;
+ }
+
+ /* Display response */
d_printf("New uid: %d\n", uid);