Searched defs:is_user (Results 1 - 16 of 16) sorted by relevance

/illumos-gate/usr/src/lib/nsswitch/ad/common/
H A Dgetspent.c81 int is_user, is_wuser; local
100 is_user = 1;
102 0, &is_user, &is_wuser, &uid, NULL, NULL, NULL);
H A Dgetgrent.c73 int is_user, is_wuser; local
91 is_user = 0; /* Map name to gid */
93 0, &is_user, &is_wuser, &gid, NULL, NULL, NULL);
H A Dgetpwnam.c307 int is_user, is_wuser, try_idmap; local
329 is_user = 1;
331 dname, flag, &is_user, &is_wuser, &be->uid, NULL,
361 is_user = 0; /* Map name to primary gid */
363 flag, &is_user, &is_wuser, &gid, NULL, NULL, NULL);
397 int is_user, is_wuser; local
445 is_user = 0;
448 winname, windomain, 0, &is_user, &is_wuser, &gid,
/illumos-gate/usr/src/cmd/idmap/idmapd/
H A Dwksids.c239 if (wksids[i].is_user == 0)
243 if (wksids[i].is_user == 1)
304 if (wksids[i].is_user == 0)
308 if (wksids[i].is_user == 1)
348 find_wksid_by_pid(uid_t pid, int is_user) argument
357 wksids[i].is_user == is_user &&
H A Dnldaputils.c105 int is_user; member in struct:idmap_nldap_q
301 const char *winname, const char *windomain, int is_user,
318 q->is_user = is_user;
323 if (is_user) {
442 uid_t pid, int is_user, char **dn, char **attr, char **value,
458 q->is_user = is_user;
463 if (is_user) {
508 const char *unixname, int is_user,
300 idmap_nldap_bywinname_batch_add(idmap_nldap_query_state_t *qs, const char *winname, const char *windomain, int is_user, char **dn, char **attr, char **value, char **unixname, uid_t *pid, idmap_retcode *rc) argument
441 idmap_nldap_bypid_batch_add(idmap_nldap_query_state_t *qs, uid_t pid, int is_user, char **dn, char **attr, char **value, char **winname, char **windomain, char **unixname, idmap_retcode *rc) argument
507 idmap_nldap_byunixname_batch_add(idmap_nldap_query_state_t *qs, const char *unixname, int is_user, char **dn, char **attr, char **value, char **winname, char **windomain, uid_t *pid, idmap_retcode *rc) argument
[all...]
H A Dadutils.c812 const char *unixname, int is_user, int is_wuser,
822 attrname = (is_user) ?
861 posix_id_t pid, int is_user,
871 if (is_user) {
811 idmap_unixname2sid_batch_add1(idmap_query_state_t *state, const char *unixname, int is_user, int is_wuser, char **dn, char **attr, char **value, char **sid, rid_t *rid, char **name, char **dname, idmap_id_type *sid_type, idmap_retcode *rc) argument
860 idmap_pid2sid_batch_add1(idmap_query_state_t *state, posix_id_t pid, int is_user, char **dn, char **attr, char **value, char **sid, rid_t *rid, char **name, char **dname, idmap_id_type *sid_type, idmap_retcode *rc) argument
H A Didmapd.h202 int is_user; member in struct:wksids_table
366 extern const wksids_table_t *find_wksid_by_pid(posix_id_t pid, int is_user);
H A Ddbutils.c490 "columns unixname, is_user, u2w_order are not unique"},
492 "columns winname, windomain, is_user, is_wuser, w2u_order are not"
637 "AND unixname = %Q AND is_user = %d ",
638 rule->unixname, rule->is_user ? 1 : 0);
887 rule->is_user == rule->is_wuser ? 0 : 1, &w2u_order, &u2w_order);
918 "(is_user, is_wuser, windomain, winname_display, is_nt4, "
921 rule->is_user ? 1 : 0, rule->is_wuser ? 1 : 0, dom,
1160 const char *winname, const char *unixname, boolean_t is_user,
1197 rule->is_user = is_user;
1159 idmap_namerule_set(idmap_namerule *rule, const char *windomain, const char *winname, const char *unixname, boolean_t is_user, boolean_t is_wuser, boolean_t is_nt4, int direction) argument
1340 lookup_wksids_pid2sid(idmap_mapping *req, idmap_id_res *res, int is_user) argument
1507 int ncol, is_user; local
1891 int i, num_queued, is_wuser, is_user; local
2764 generate_localsid(idmap_mapping *req, idmap_id_res *res, int is_user, int fallback) argument
2934 ns_lookup_bypid(uid_t pid, int is_user, char **unixname) argument
3018 int ncol, r, is_user, is_wuser; local
3878 lookup_cache_pid2sid(sqlite *cache, idmap_mapping *req, idmap_id_res *res, int is_user) argument
4408 name_based_mapping_pid2sid(lookup_state_t *state, const char *unixname, int is_user, idmap_mapping *req, idmap_id_res *res) argument
4650 pid2sid_first_pass(lookup_state_t *state, idmap_mapping *req, idmap_id_res *res, int is_user) argument
4782 pid2sid_second_pass(lookup_state_t *state, idmap_mapping *req, idmap_id_res *res, int is_user) argument
[all...]
/illumos-gate/usr/src/uts/common/idmap/
H A Dkidmap_priv.h51 int is_user; member in struct:sid2pid
119 uint32_t rid, uid_t *pid, int *is_user);
140 uint32_t rid, uid_t pid, int is_user, int direction);
H A Didmap_cache.c381 uint32_t rid, uid_t *pid, int *is_user)
397 if (result->is_user != UNDEF_ISUSER) {
398 if (result->is_user && result->uid_ttl > now) {
400 *is_user = result->is_user;
402 } else if (!result->is_user && result->gid_ttl > now) {
404 *is_user = result->is_user;
511 new->is_user = UNDEF_ISUSER; /* Unknown */
600 new->is_user
380 kidmap_cache_lookup_pidbysid(idmap_cache_t *cache, const char *sid_prefix, uint32_t rid, uid_t *pid, int *is_user) argument
656 kidmap_cache_add_sid2pid(idmap_cache_t *cache, const char *sid_prefix, uint32_t rid, uid_t pid, int is_user, int direction) argument
[all...]
H A Didmap_kapi.c72 int *is_user; member in struct:idmap_get_res
574 * is_user - 1 == UID, 0 == GID if return == IDMAP_SUCCESS
581 uid_t *pid, int *is_user)
591 if (sid_prefix == NULL || pid == NULL || is_user == NULL)
597 is_user) == IDMAP_SUCCESS)
617 *is_user = 1;
624 *is_user = 1;
627 *is_user = 0;
635 *is_user,
640 *is_user
580 kidmap_getpidbysid(zone_t *zone, const char *sid_prefix, uint32_t rid, uid_t *pid, int *is_user) argument
1023 kidmap_batch_getpidbysid(idmap_get_handle_t *get_handle, const char *sid_prefix, uint32_t rid, uid_t *pid, int *is_user, idmap_stat *stat) argument
1199 int is_user; local
[all...]
/illumos-gate/usr/src/lib/libidmap/common/
H A Didmap_impl.h66 int *is_user; member in struct:idmap_get_res
H A Didmap_cache.c100 int is_user; member in struct:sid2uid_gid
541 idmap_rid_t rid, uid_t *pid, int *is_user)
557 if (result->is_user != UNDEF_ISUSER) {
558 *is_user = result->is_user;
559 if (result->is_user && result->uid_ttl > now) {
562 } else if (!result->is_user && result->gid_ttl > now) {
831 new->is_user = UNDEF_ISUSER; /* Unknown */
943 new->is_user = UNDEF_ISUSER; /* Unknown */
1016 idmap_rid_t rid, uid_t pid, int is_user, in
540 idmap_cache_lookup_pidbysid(const char *sid_prefix, idmap_rid_t rid, uid_t *pid, int *is_user) argument
1015 idmap_cache_add_sid2pid(const char *sid_prefix, idmap_rid_t rid, uid_t pid, int is_user, int direction) argument
[all...]
H A Didmap_api.c245 char **unixname, boolean_t *is_user, boolean_t *is_wuser,
257 if (is_user)
258 *is_user = -1;
268 char **unixname, boolean_t *is_user, boolean_t *is_wuser,
290 if (is_user)
291 *is_user = rule->is_user;
311 unixname, is_user, is_wuser, is_nt4, direction);
352 char **unixname, boolean_t *is_user, boolean_t *is_wuser,
356 unixname, is_user, is_wuse
244 idmap_namerule_parts_clear(char **windomain, char **winname, char **unixname, boolean_t *is_user, boolean_t *is_wuser, boolean_t *is_nt4, int *direction) argument
266 idmap_namerule2parts(idmap_namerule *rule, char **windomain, char **winname, char **unixname, boolean_t *is_user, boolean_t *is_wuser, boolean_t *is_nt4, int *direction) argument
350 idmap_udt_get_error_rule(idmap_udt_handle_t *udthandle, char **windomain, char **winname, char **unixname, boolean_t *is_user, boolean_t *is_wuser, boolean_t *is_nt4, int *direction) argument
384 idmap_udt_get_conflict_rule(idmap_udt_handle_t *udthandle, char **windomain, char **winname, char **unixname, boolean_t *is_user, boolean_t *is_wuser, boolean_t *is_nt4, int *direction) argument
425 idmap_udt_add_namerule(idmap_udt_handle_t *udthandle, const char *windomain, boolean_t is_user, boolean_t is_wuser, const char *winname, const char *unixname, boolean_t is_nt4, int direction) argument
472 idmap_udt_rm_namerule(idmap_udt_handle_t *udthandle, boolean_t is_user, boolean_t is_wuser, const char *windomain, const char *winname, const char *unixname, int direction) argument
568 idmap_iter_namerules(const char *windomain, boolean_t is_user, boolean_t is_wuser, const char *winname, const char *unixname, idmap_iter_t **iter) argument
631 idmap_iter_next_namerule(idmap_iter_t *iter, char **windomain, char **winname, char **unixname, boolean_t *is_user, boolean_t *is_wuser, boolean_t *is_nt4, int *direction) argument
758 idmap_iter_next_mapping(idmap_iter_t *iter, char **sidprefix, idmap_rid_t *rid, uid_t *pid, char **winname, char **windomain, char **unixname, boolean_t *is_user, boolean_t *is_wuser, int *direction, idmap_info *info) argument
1158 idmap_get_pidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid, int flag, uid_t *pid, int *is_user, idmap_stat *stat) argument
1185 idmap_getext_pidbysid(idmap_get_handle_t *gh, char *sidprefix, idmap_rid_t rid, int flag, uid_t *pid, int *is_user, idmap_info *info, idmap_stat *stat) argument
1597 idmap_get_w2u_mapping( const char *sidprefix, idmap_rid_t *rid, const char *winname, const char *windomain, int flag, int *is_user, int *is_wuser, uid_t *pid, char **unixname, int *direction, idmap_info *info) argument
1711 idmap_get_u2w_mapping( uid_t *pid, const char *unixname, int flag, int is_user, int *is_wuser, char **sidprefix, idmap_rid_t *rid, char **winname, char **windomain, int *direction, idmap_info *info) argument
2111 int is_user = 1; local
2146 int is_user = 0; local
2178 idmap_getwinnamebypid(uid_t pid, int is_user, int flag, char **name, char **domain) argument
[all...]
/illumos-gate/usr/src/cmd/idmap/idmap/
H A Dnamemaps.c568 unixname2dn(idmap_nm_handle_t *p, char *unixname, int is_user, char **dn, argument
586 (void) snprintf(filter, sizeof (filter), is_user ? "uid=%s" : "cn=%s",
589 rc_ns = __ns_ldap_list(is_user ? "passwd" : "group",
594 namemap_log(is_user ? gettext("User %s not found.")
795 char *value, bool_t is_new, int is_user)
830 is_user == IDMAP_YES ? "passwd": "group",
835 is_user == IDMAP_YES ? "passwd": "group",
840 is_user == IDMAP_YES ? "passwd": "group",
860 int is_user, int is_wuser, int direction)
880 rc = idmap_ad_set(p, dn, is_user
794 idmap_nldap_set(idmap_nm_handle_t *p, ns_cred_t *nsc, char *dn, char *attr, char *value, bool_t is_new, int is_user) argument
859 idmap_set_namemap(idmap_nm_handle_t *p, char *winname, char *unixname, int is_user, int is_wuser, int direction) argument
950 idmap_unset_namemap(idmap_nm_handle_t *p, char *winname, char *unixname, int is_user, int is_wuser, int direction) argument
1033 int is_user; local
[all...]
H A Didmap.c129 int is_user; member in struct:__anon92
851 pid_format(uid_t from, int is_user) argument
862 (void) snprintf(to, len, "%s:%u", is_user ? ID_UID : ID_GID, from);
950 *unixname = pid_format(nm->pid, nm->is_user);
958 switch (nm->is_user) {
1001 nm->is_user = IDMAP_UNKNOWN;
1218 unixname = pid_format(nm->pid, nm->is_user);
1232 if (nm->is_user != IDMAP_YES || nm->is_wuser != IDMAP_YES) {
1272 if (nm->is_user != IDMAP_YES || nm->is_wuser != IDMAP_YES) {
1309 nm->is_user
1545 boolean_t is_user; local
2091 flush_nm(boolean_t is_user, cmd_pos_t *pos) argument
2228 boolean_t is_user; local
[all...]

Completed in 220 milliseconds