Lines Matching refs:id_type
52 static NTSTATUS ldap_set_mapping(const DOM_SID *sid, unid_t id, int id_type)
69 if ( id_type & ID_USERID )
74 pstr_sprintf(id_str, "%d", ((id_type & ID_USERID) ? id.uid : id.gid));
102 sid_string, (unsigned long)((id_type & ID_USERID) ? id.uid : id.gid), type));
109 sid_string, ((id_type & ID_USERID) ? (unsigned long)id.uid :
373 static NTSTATUS ldap_allocate_id(unid_t *id, int id_type)
390 type = (id_type & ID_USERID) ?
433 if (id_type & ID_USERID) {
451 ((id_type & ID_USERID) ? (unsigned long)id->uid :
484 static NTSTATUS ldap_get_sid_from_id(DOM_SID *sid, unid_t id, int id_type)
497 if ( id_type & ID_USERID )
505 ((id_type & ID_USERID) ? id.uid : id.gid));
521 type, ((id_type & ID_USERID) ? (unsigned long)id.uid :
548 static NTSTATUS ldap_get_id_from_sid(unid_t *id, int *id_type, const DOM_SID *sid)
566 (*id_type & ID_GROUPID ? "group" : "user") ));
572 if ( *id_type & ID_GROUPID )
604 if (*id_type & ID_QUERY_ONLY) {
612 ret = ldap_allocate_id(id, *id_type);
623 (*id_type & ID_GROUPID ? 'g' : 'u'), (uint32)id->uid ));
625 ret = ldap_set_mapping(sid, *id, *id_type);
643 if ( (*id_type & ID_USERID) )