Print this page
NEX-14547 Get UNIX group info. from AD/LDAP with partial RFC2307 schema
NEX-13132 smbd dumping core in nss_ldap.so.1`getbymember
Reviewed by: Matt Barden <matt.barden@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libsldap/common/ns_sldap.h
          +++ new/usr/src/lib/libsldap/common/ns_sldap.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2017 Nexenta Systems, Inc.  All rights reserved.
  23   24   */
  24   25  
  25   26  
  26   27  #ifndef _NS_SLDAP_H
  27   28  #define _NS_SLDAP_H
  28   29  
  29   30  #ifdef __cplusplus
  30   31  extern "C" {
  31   32  #endif
  32   33  
↓ open down ↓ 773 lines elided ↑ open up ↑
 806  807          ns_ldap_result_t **result);
 807  808  
 808  809  int __ns_ldap_freeError(
 809  810          ns_ldap_error_t **errorp);
 810  811  
 811  812  int  __ns_ldap_uid2dn(
 812  813          const char *uid,
 813  814          char **userDN,
 814  815          const ns_cred_t *cred,
 815  816          ns_ldap_error_t ** errorp);
      817 +
      818 +int  __ns_ldap_dn2uid(
      819 +        const char *dn,
      820 +        char **userID,
      821 +        const ns_cred_t *cred,
      822 +        ns_ldap_error_t ** errorp);
 816  823  
 817  824  int  __ns_ldap_host2dn(
 818  825          const char *host,
 819  826          const char *domain,
 820  827          char **hostDN,
 821  828          const ns_cred_t *cred,
 822  829          ns_ldap_error_t ** errorp);
 823  830  
 824  831  int  __ns_ldap_dn2domain(
 825  832          const char *dn,
↓ open down ↓ 105 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX