summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b9d9353)
Do what W2k8 does and return the builtin domain for a NULL name.
Guenther
/* Split name into domain and user component */
/* Split name into domain and user component */
- full_name = name[i].string;
- if (full_name == NULL) {
- prid[i].sid_type = type;
- prid[i].rid = 0;
- prid[i].sid_index = (uint32_t)-1;
- continue;
+ /* follow w2k8 behavior and return the builtin domain when no
+ * input has been passed in */
+
+ if (name[i].string) {
+ full_name = name[i].string;
+ } else {
+ full_name = "BUILTIN";
}
DEBUG(5, ("lookup_lsa_rids: looking up name %s\n", full_name));
}
DEBUG(5, ("lookup_lsa_rids: looking up name %s\n", full_name));