r->out.luid->low = sec_privilege_id(name);
r->out.luid->high = 0;
- if (r->out.luid->low == -1) {
+ if (r->out.luid->low == SEC_PRIV_INVALID) {
return NT_STATUS_NO_SUCH_PRIVILEGE;
}
return NT_STATUS_OK;
for (i=0;i<el->num_values;i++) {
const char *priv_str = (const char *)el->values[i].data;
enum sec_privilege privilege = sec_privilege_id(priv_str);
- if (privilege == -1) {
+ if (privilege == SEC_PRIV_INVALID) {
DEBUG(1,("Unknown privilege '%s' in samdb\n",
priv_str));
continue;
for (i=0;i<el->num_values;i++) {
int id = sec_privilege_id((const char *)el->values[i].data);
- if (id == -1) {
+ if (id == SEC_PRIV_INVALID) {
return NT_STATUS_INTERNAL_DB_CORRUPTION;
}
privs->set[i].attribute = 0;
}
for (i=0;i<rights->count;i++) {
- if (sec_privilege_id(rights->names[i].string) == -1) {
+ if (sec_privilege_id(rights->names[i].string) == SEC_PRIV_INVALID) {
talloc_free(msg);
return NT_STATUS_NO_SUCH_PRIVILEGE;
}
state = h->data;
id = sec_privilege_id(r->in.name->string);
- if (id == -1) {
+ if (id == SEC_PRIV_INVALID) {
return NT_STATUS_NO_SUCH_PRIVILEGE;
}
state = h->data;
id = sec_privilege_id(r->in.name->string);
- if (id == -1) {
+ if (id == SEC_PRIV_INVALID) {
return NT_STATUS_NO_SUCH_PRIVILEGE;
}
}
privname = r->in.name->string;
- if (sec_privilege_id(privname) == -1) {
+ if (sec_privilege_id(privname) == SEC_PRIV_INVALID) {
return NT_STATUS_NO_SUCH_PRIVILEGE;
}