Lines Matching defs:entry

375 addentry(void *entry, int mod)
382 /* adds entry into the LDAP tree */
385 entry, 0, &authority, NS_LDAP_FOLLOWREF | NS_LDAP_KEEP_CONN,
389 entry, 1, &authority, NS_LDAP_FOLLOWREF | NS_LDAP_KEEP_CONN,
393 * LDAP_ALREADY_EXISTS if entry exists already
415 (void) fprintf(stderr, gettext("entry not found.\n"));
693 /* build entry */
712 * don't clobber comment in canonical entry
737 * If there is some comment, it will be stored as the last entry
754 gettext("Adding entry : cn=%s+ipHostNumber=%s\n"),
798 if (res == NULL || res->entry == NULL)
800 for (i = 0; i < res->entry->attr_count; i++) {
801 attrptr = res->entry->attr_pair[i];
816 if ((name = __s_api_get_canonical_name(res->entry, cn, 1)) == NULL)
921 * build entry
946 * don't clobber comment in canonical entry
967 * only put comment in canonical entry
984 gettext("Adding entry : %s\n"), data.r_name);
1017 if (res == NULL || res->entry == NULL)
1019 for (i = 0; i < res->entry->attr_count; i++) {
1020 attrptr = res->entry->attr_pair[i];
1032 if ((name = __s_api_get_canonical_name(res->entry, cn, 1)) == NULL)
1132 * build entry
1158 * don't clobber comment in canonical entry
1178 * only put comment in canonical entry
1195 gettext("Adding entry : %s\n"), data.p_name);
1227 if (res == NULL || res->entry == NULL)
1229 for (i = 0; i < res->entry->attr_count; i++) {
1230 attrptr = res->entry->attr_pair[i];
1243 if ((name = __s_api_get_canonical_name(res->entry, cn, 1)) == NULL)
1354 * build entry
1380 * don't clobber comment in canonical entry
1400 * only put comment in canonical entry
1417 gettext("Adding entry : %s\n"), data.n_name);
1449 if (res == NULL || res->entry == NULL)
1451 for (i = 0; i < res->entry->attr_count; i++) {
1452 attrptr = res->entry->attr_pair[i];
1472 if ((name = __s_api_get_canonical_name(res->entry, cn, 1)) == NULL)
1585 * build entry
1612 * don't clobber comment in canonical entry
1632 * only put comment in canonical entry
1649 gettext("Adding entry : %s\n"), line);
1695 if (res == NULL || res->entry == NULL)
1697 for (i = 0; i < res->entry->attr_count; i++) {
1698 attrptr = res->entry->attr_pair[i];
1714 if ((name = __s_api_get_canonical_name(res->entry, cn, 1)) == NULL)
1831 * build entry
1883 gettext("Adding entry : %s\n"), data.gr_name);
1915 value = __ns_ldap_getAttr(res->entry, "cn");
1918 value = __ns_ldap_getAttr(res->entry, "userPassword");
1928 value = __ns_ldap_getAttr(res->entry, "gidNumber");
1932 value = __ns_ldap_getAttr(res->entry, "memberUid");
2019 * build entry
2028 gettext("Adding entry : %s\n"), data.name);
2058 value = __ns_ldap_getAttr(res->entry, "macAddress");
2063 value = __ns_ldap_getAttr(res->entry, "cn");
2109 /* build entry */
2137 gettext("Adding entry : %s\n"), data.alias);
2172 value = __ns_ldap_getAttr(res->entry, "mail");
2175 value = __ns_ldap_getAttr(res->entry, "mgrpRFC822MailMember");
2230 * Special case: /etc/publickey usually has an entry
2371 * build entry
2403 gettext("Cannot add publickey entry"" (%s),"
2404 " add host entry first\n"),
2408 gettext("Cannot add publickey entry (%s), "
2409 "add passwd entry first\n"),
2445 value = __ns_ldap_getAttr(res->entry, "uidNumber");
2447 value = __ns_ldap_getAttr(res->entry, "cn");
2455 value = __ns_ldap_getAttr(res->entry, "nisPublickey");
2461 value = __ns_ldap_getAttr(res->entry, "nisSecretkey");
2537 /* build entry */
2543 gettext("Adding entry : %s\n"), data.netnumber);
2549 gettext("Cannot add netmask entry (%s), "
2550 "add network entry first\n"), data.netnumber);
2563 value = __ns_ldap_getAttr(res->entry, "ipNetworkNumber");
2566 value = __ns_ldap_getAttr(res->entry, "ipNetmaskNumber");
2605 * process 1st minimal entry, to validate that there is no
2656 * now build entry.
2657 * start by clearing entry data
2683 * we now have a valid entry (at least 1 netgroup name and
2756 gettext("Adding entry : %s\n"), data.name);
2796 value = __ns_ldap_getAttr(res->entry, "cn");
2801 value = __ns_ldap_getAttr(res->entry, "nisNetgroupTriple");
2808 value = __ns_ldap_getAttr(res->entry, "memberNisNetgroup");
2878 gettext("Adding entry : %s\n"), data.key);
2910 value = __ns_ldap_getAttr(res->entry, "automountKey");
2913 value = __ns_ldap_getAttr(res->entry, "automountInformation");
3047 * build entry
3052 /* Add {crypt} before passwd entry */
3093 gettext("Adding entry : %s\n"), data.pw_name);
3124 value = __ns_ldap_getAttr(res->entry, "uid");
3129 value = __ns_ldap_getAttr(res->entry, "userPassword");
3137 value = __ns_ldap_getAttr(res->entry, "uidNumber");
3140 value = __ns_ldap_getAttr(res->entry, "gidNumber");
3143 value = __ns_ldap_getAttr(res->entry, "gecos");
3148 value = __ns_ldap_getAttr(res->entry, "homeDirectory");
3153 value = __ns_ldap_getAttr(res->entry, "loginShell");
3305 * build entry
3312 /* Add {crypt} before passwd entry */
3426 gettext("Adding entry : %s\n"), data.sp_namp);
3432 gettext("Cannot add shadow entry (%s), "
3433 "add passwd entry first\n"), data.sp_namp);
3449 value = __ns_ldap_getAttr(res->entry, "uid");
3454 value = __ns_ldap_getAttr(res->entry, "userPassword");
3467 value = __ns_ldap_getAttr(res->entry, "shadowLastChange");
3472 value = __ns_ldap_getAttr(res->entry, "shadowMin");
3477 value = __ns_ldap_getAttr(res->entry, "shadowMax");
3483 value = __ns_ldap_getAttr(res->entry, "shadowWarning");
3489 value = __ns_ldap_getAttr(res->entry, "shadowInactive");
3495 value = __ns_ldap_getAttr(res->entry, "shadowExpire");
3501 value = __ns_ldap_getAttr(res->entry, "shadowFlag");
3549 /* build entry */
3561 * don't clobber comment in canonical entry
3590 gettext("Adding entry : %s\n"), data.name);
3783 gettext("Adding entry : %s\n"), data.pj_name);
3825 if (res == NULL || res->entry == NULL)
3829 value = __ns_ldap_getAttr(res->entry, "SolarisProjectID");
3839 value = __ns_ldap_getAttr(res->entry, "SolarisProjectName");
3847 value = __ns_ldap_getAttr(res->entry, "description");
3853 value = __ns_ldap_getAttr(res->entry, "memberUid");
3865 value = __ns_ldap_getAttr(res->entry, "memberGid");
3877 value = __ns_ldap_getAttr(res->entry, "SolarisProjectAttr");
3891 value = __ns_ldap_getAttr(res->entry, "cn");
3894 value = __ns_ldap_getAttr(res->entry, "bootParameter");
4200 (void) fprintf(stderr, gettext("entry not found.\n"));