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_internal.h
          +++ new/usr/src/lib/libsldap/common/ns_internal.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  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  /*
  23   23   * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
       24 + * Copyright 2017 Nexenta Systems, Inc.  All rights reserved.
  24   25   */
  25   26  
  26   27  
  27   28  #ifndef _NS_INTERNAL_H
  28   29  #define _NS_INTERNAL_H
  29   30  
  30   31  #ifdef __cplusplus
  31   32  extern "C" {
  32   33  #endif
  33   34  
↓ open down ↓ 25 lines elided ↑ open up ↑
  59   60          "Do not edit this file manually; your changes will be lost." \
  60   61          "Please use ldapclient (1M) instead."
  61   62  #define MAXPORTNUMBER           65535
  62   63  #define MAXPORTNUMBER_STR       "65535"
  63   64  #define CREDFILE                0
  64   65  #define CONFIGFILE              1
  65   66  #define UIDNUMFILTER            "(&(objectclass=posixAccount)(uidnumber=%s))"
  66   67  #define UIDNUMFILTER_SSD        "(&(%%s)(uidnumber=%s))"
  67   68  #define UIDFILTER               "(&(objectclass=posixAccount)(uid=%s))"
  68   69  #define UIDFILTER_SSD           "(&(%%s)(uid=%s))"
       70 +#define UIDDNFILTER     "(&(objectclass=posixAccount)(distinguishedName=%s))"
       71 +#define UIDDNFILTER_SSD         "(&(%%s)(distinguishedName=%s))"
       72 +
  69   73  #define HOSTFILTER              "(&(objectclass=ipHost)(cn=%s))"
  70   74  #define HOSTFILTER_SSD          "(&(%%s)(cn=%s))"
  71   75  
  72   76  #define SIMPLEPAGECTRLFLAG      1
  73   77  #define VLVCTRLFLAG             2
  74   78  
  75   79  #define LISTPAGESIZE            1000
  76   80  #define ENUMPAGESIZE            100
  77   81  
  78   82  #define DEFMAX                  8
↓ open down ↓ 871 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX