Lines Matching refs:service

104  * Input - service: e.g. hosts, passwd etc.
112 _cvtRDN(const char *service, const char *rdn) {
135 mapp = __ns_ldap_getOrigAttribute(service, type);
213 * Input - service: e.g. hosts, passwd etc.
219 _cvtDN(const char *service, const char *dn) {
224 if (service == NULL || dn == NULL)
240 if ((new_rdn = _cvtRDN(service, rdns[i])) != NULL) {
302 const char *service,
336 if (service != NULL &&
337 (strncasecmp(service, "auto_", 5) == 0 ||
338 strcasecmp(service, "automount") == 0))
341 * see if schema mapping existed for the given service
343 mapping = __ns_ldap_getOrigAttribute(service,
351 * If service == auto_* and no
355 * but __ns_ldap_getOrigAttribute(service,
432 ap[0]->attrvalue[0] = _cvtDN(service, dn);
448 rc = __s_api_convert_automountmapname(service,
479 mapping = __ns_ldap_getOrigAttribute(service, attr);
484 * if service == auto_* and no schema mapping found
540 service, mapping[0]);
646 service, vals[k]);
650 * if service == auto_* and no
821 ret = __s_api_cvtEntry(cookie->conn->ld, cookie->service,
1033 if (cookie->service)
1034 free(cookie->service);
1080 char *service, *filter, *err;
1087 service = cookie->service;
1098 if (service != NULL && strncasecmp(service, "auto_", 5) == 0)
1102 * See if schema mapping existed for the given service.
1105 mapping = __ns_ldap_getOrigAttribute(service,
1110 * if service == auto_* and no
1320 __ns_ldap_getMappedAttributes(service,
1324 __ns_ldap_getMappedObjectClass(service,
1330 * and service == auto*
1517 if (cookie->service) {
1749 char *service;
1760 get_srvsidesort_type(char *service)
1765 if (service == NULL)
1771 if (strcmp(sort_type[i].service, service) == 0) {
1782 update_srvsidesort_type(char *service, ns_srvsidesort_t type)
1787 if (service == NULL)
1793 if (strcmp(sort_type[i].service, service) == 0) {
1818 sort_type[sort_type_hwm].service = strdup(service);
1819 if (sort_type[sort_type_hwm].service == NULL) {
1844 cookie->sortTypeTry = get_srvsidesort_type(cookie->service);
1851 sortattr = __ns_ldap_mapAttribute(cookie->service,
2233 * directory server using service search descriptors and schema
2237 * and the current service search descriptor list
2239 * foreach (service search filter) {
2305 cookie->service,
2805 update_srvsidesort_type(cookie->service,
2988 check_shadow(ns_ldap_cookie_t *cookie, const char *service)
2999 * If service is "shadow", we may need
3002 if ((strcmp(service, "shadow") == 0) &&
3052 const char *service,
3103 /* get the service descriptor - or create a default one */
3104 rc = __s_api_get_SSD_from_SSDtoUse_service(service,
3114 /* Create default service Desc */
3135 rc = __s_api_getDNs(&dns, service, &cookie->errorp);
3181 if (service) {
3182 cookie->service = strdup(service);
3183 if (cookie->service == NULL) {
3195 rc = check_shadow(cookie, service);
3270 * directory server using service search descriptors and schema
3276 const char *service,
3296 return (__ns_ldap_list_sort(service, filter, NULL, init_filter_cb,
3303 * directory server using service search descriptors and schema
3309 const char *service,
3330 rc = ldap_list(NULL, service, filter, sortattr, init_filter_cb,
3357 const char *service,
3387 rc = ldap_list(batch, service, filter, NULL, init_filter_cb, attribute,
3627 /* Create default service Desc */
3716 const char *service,
3749 /* get the service descriptor - or create a default one */
3750 rc = __s_api_get_SSD_from_SSDtoUse_service(service,
3757 /* Create default service Desc */
3772 rc = __s_api_getDNs(&dns, service, &error);
3846 if (service) {
3847 cookie->service = strdup(service);
3848 if (cookie->service == NULL) {
3858 rc = check_shadow(cookie, service);
3919 const char *service,
3940 rc = firstEntry(service, filter, vlv_sort, init_filter_cb,
4422 __ns_ldap_getServiceAuthMethods(const char *service,
4440 if ((service == NULL) || (service[0] == '\0') ||
4455 slen = strlen(service);
4459 if (strncasecmp(service, srv, slen) != 0)
4514 * service == auto_home
4531 __s_api_convert_automountmapname(const char *service, char **dn,
4545 if (service == NULL || dn == NULL || *dn == NULL)
4552 mapping = __ns_ldap_getMappedAttributes(service, automountmapname);
5660 char service[] = "shadow";
5679 /* get the service descriptor - or create a default one */
5680 rc = __s_api_get_SSD_from_SSDtoUse_service(service,
5688 /* Create default service Desc */
5705 rc = __s_api_getDNs(&dns, service, &cookie->errorp);
5737 cookie->service = strdup(service);
5738 if (cookie->service == NULL) {