summaryrefslogtreecommitdiff
path: root/usr/src/lib/libsldap/common/ns_mapping.c
diff options
context:
space:
mode:
authorJason King <jason.king@joyent.com>2020-01-22 06:18:51 +0000
committerJason King <jason.king@joyent.com>2020-02-15 17:23:54 -0600
commitd7ab8532a7a0f65d1c2b7bc3f45072f665860b20 (patch)
treef3752b662a3868651868c132638120ef30a41e9a /usr/src/lib/libsldap/common/ns_mapping.c
parentf5f3cbec075f8308da054292c7c7d96373c956ee (diff)
downloadillumos-gate-d7ab8532a7a0f65d1c2b7bc3f45072f665860b20.tar.gz
12236 getmembers_DN doesn't properly handle errors from __ns_ldap_dn2uid
12240 nss_ldap does not properly look up group members by distinguished name Reviewed by: Jorge Schrauwen <jorge@blackdot.be> Reviewed by: Gordon Ross <gordon.w.ross@gmail.com> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Reviewed by: Matt Barden <matt.barden@nexenta.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/libsldap/common/ns_mapping.c')
-rw-r--r--usr/src/lib/libsldap/common/ns_mapping.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/src/lib/libsldap/common/ns_mapping.c b/usr/src/lib/libsldap/common/ns_mapping.c
index 7a30a090f0..af41831d41 100644
--- a/usr/src/lib/libsldap/common/ns_mapping.c
+++ b/usr/src/lib/libsldap/common/ns_mapping.c
@@ -20,6 +20,7 @@
*/
/*
* Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2020 Joyent, Inc.
*/
#include <stdlib.h>
@@ -201,7 +202,7 @@ __s_api_add_map2hash(ns_config_t *config, ns_hashtype_t type,
* Assume space is the only legal whitespace.
* attributeMap syntax:
* attributeMap = serviceId ":" origAttribute "="
- * attributes
+ * attributes
* origAttribute = attribute
* attributes = wattribute *( space wattribute )
* wattribute = whsp newAttribute whsp
@@ -210,7 +211,7 @@ __s_api_add_map2hash(ns_config_t *config, ns_hashtype_t type,
*
* objectclassMap syntax:
* objectclassMap = serviceId ":" origObjectclass "="
- * objectclass
+ * objectclass
* origObjectclass = objectclass
* objectclass = keystring
*/
@@ -295,7 +296,7 @@ __s_api_parse_map(char *cp, char **sid, char **origA, char ***mapA)
}
-static void
+void
__ns_ldap_freeASearchDesc(ns_ldap_search_desc_t *ptr)
{
if (ptr == NULL)
@@ -662,7 +663,7 @@ int __ns_ldap_getSearchDescriptors(
int cnt, max;
int vers;
ns_config_t *cfg;
- ns_ldap_search_desc_t *ret;
+ ns_ldap_search_desc_t *ret;
if ((desc == NULL) || (errorp == NULL))
return (NS_LDAP_INVALID_PARAM);