Print this page
NEX-20549 smb AD join broken if no site name
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Matt Barden <matt.barden@nexenta.com>
NEX-18462 SMB can't view ACL if posix ID can't be mapped
Review by: Gordon Ross <gordon.ross@nexenta.com>
Review by: Evan Layton <evan.layton@nexenta.com>
NEX-1810 extended security Kerberos (inbound)
NEX-1638 Updated DC Locator
Includes work by: matt.barden@nexenta.com, kevin.crowe@nexenta.com
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/tools/quick/make-idmap
+++ new/usr/src/tools/quick/make-idmap
1 1 #!/bin/ksh
2 2 #
3 3 # This file and its contents are supplied under the terms of the
|
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
4 4 # Common Development and Distribution License ("CDDL"), version 1.0.
5 5 # You may only use this file in accordance with the terms of version
6 6 # 1.0 of the CDDL.
7 7 #
8 8 # A full copy of the text of the CDDL should have accompanied this
9 9 # source. A copy of the CDDL is also available via the Internet at
10 10 # http://www.illumos.org/license/CDDL.
11 11 #
12 12
13 13 #
14 -# Copyright 2014 Nexenta Systems, Inc. All rights reserved.
14 +# Copyright 2018 Nexenta Systems, Inc. All rights reserved.
15 15 #
16 16
17 17 # Use distributed make (dmake) by default.
18 18 make=${MAKE:-dmake}
19 19
20 20 CLOSED_IS_PRESENT=no
21 21 export CLOSED_IS_PRESENT
22 22
23 23 # Do this if you want to use dbx or gdb
24 24 # export SOURCEDEBUG=yes
25 25
26 26 [ -n "$SRC" ] || {
27 27 echo "SRC not set. Run 'ws' or 'bldenv' first."
28 28 exit 1
29 29 }
30 30
31 31 cpu=`uname -p`
32 32 case $cpu in
33 33 i386)
34 34 x=intel
35 35 mdb_arch="ia32 amd64"
36 36 arch64=amd64
37 37 ;;
38 38 sparc)
39 39 x=sparc
40 40 mdb_arch=v9
41 41 arch64=sparcv9
42 42 ;;
43 43 *) echo "Huh?" ; exit 1;;
44 44 esac
45 45
46 46 ################################################################
47 47
48 48 build_tools() {
49 49 test -f $SRC/tools/proto/root_i386-nd/opt/onbld/bin/genoffsets ||
50 50 (cd $SRC/tools && $make install)
51 51 (cd $SRC/common/mapfiles; $make install)
52 52 }
53 53
54 54 clobber_tools() {
55 55 (cd $SRC/tools && $make clobber)
56 56 (cd $SRC/common/mapfiles; $make clobber)
57 57 }
58 58
59 59 ################################################################
60 60
61 61 do_hdrs() {
62 62
63 63 targ=$1
64 64 if [ "$targ" = clobber ]
65 65 then
66 66 (cd $SRC/uts && $make -k clobber_h)
67 67 (cd $SRC/head && $make clobber)
68 68 fi
69 69
70 70 if [ "$targ" = install ]
71 71 then
72 72 targ=install_h
73 73
74 74 # Just the parts of "make sgs" we need, and
75 75 # skip them if they appear to be done.
76 76 # ... stuff under $SRC
77 77 test -f $SRC/uts/common/sys/priv_names.h ||
78 78 (cd $SRC/uts && $make -k all_h)
79 79
80 80 test -f $SRC/head/rpcsvc/nispasswd.h ||
81 81 (cd $SRC/head && $make -k install_h)
82 82
83 83 # ... stuff under $ROOT (proto area)
84 84 test -d $ROOT/usr/include/sys ||
85 85 (cd $SRC && $make rootdirs)
86 86 test -f $ROOT/usr/include/sys/types.h ||
87 87 (cd $SRC/uts && $make -k install_h)
88 88 test -f $ROOT/usr/include/rpcsvc/daemon_utils.h ||
89 89 (cd $SRC/head && $make install_h)
90 90
91 91 # system and smbsrv headers (we need to build libsmb)
92 92 (cd $SRC/uts/common/sys && $make -k install_h)
93 93 (cd $SRC/uts/common/smb && $make -k install_h)
94 94 (cd $SRC/uts/common/smbsrv && $make -k install_h)
95 95
96 96 fi
97 97
98 98 # Need some library headers too...
99 99 for lib in \
100 100 libads \
101 101 libbsm \
102 102 libcmdutils \
103 103 libcryptoutil \
104 104 libdevid \
105 105 libgss \
106 106 libkrb5 \
107 107 libldap5 \
108 108 libidmap \
109 109 libsmbfs \
110 110 libsqlite \
111 111 libuutil
112 112 do
113 113 (cd $SRC/lib/$lib && $make $targ)
114 114 done
115 115 }
116 116
117 117 ################################################################
118 118
119 119 do_kern() {
120 120 case $1 in
121 121 lint) targ=modlintlib ;;
122 122 *) targ=$1 ;;
123 123 esac
124 124 ( unset SOURCEDEBUG ;
125 125 (cd $SRC/uts/$x/idmap && $make $targ) )
126 126 }
127 127
128 128 ################################################################
129 129
130 130 do_libs() {
131 131
132 132 for lib in \
133 133 libavl \
134 134 libcmdutils \
135 135 libldap5 \
136 136 libadutils \
137 137 libuutil \
138 138 libidmap \
139 139 libads \
140 140 libsmbfs \
141 141 libsqlite \
142 142 nsswitch/ad
143 143 do
144 144 (cd $SRC/lib/$lib && $make $1)
145 145 done
146 146
147 147 # need libsmb for cmd/idmap/idmapd (and libsmbfs for libsmb)
148 148 (cd $SRC/lib/smbsrv/libsmb && $make $1)
149 149
150 150 }
151 151
152 152 ################################################################
153 153
154 154 do_cmds() {
155 155
156 156 (cd $SRC/cmd/idmap && $make $1)
157 157
158 158 }
159 159
160 160
161 161 ################################################################
162 162 # This builds $SRC/TAGS (and cscope.files) in a helpful order.
163 163
164 164 do_tags() {
165 165 (cd $SRC ;
166 166 find uts/common/sys -name '*.[ch]' -print |sort
167 167 find uts/common/net -name '*.[ch]' -print |sort
168 168 find uts/common/netinet -name '*.[ch]' -print |sort
169 169 find uts/common/rpcsvc -name '*.[ch]' -print |sort
170 170 find uts/common/idmap -name '*.[ch]' -print |sort
171 171 find head -name '*.h' -print |sort
172 172 find lib/libidmap -name '*.[ch]' -print |sort
173 173 find lib/libadutils -name '*.[ch]' -print |sort
174 174 find lib/libldap5 -name '*.[ch]' -print |sort
175 175 find cmd/idmap -name '*.[ch]' -print |sort
176 176 ) > $SRC/cscope.files
177 177
178 178 (cd $SRC ;
|
↓ open down ↓ |
154 lines elided |
↑ open up ↑ |
179 179 exctags -e --langmap=c:+.ndl -h ndl -L - < cscope.files
180 180 cscope -b )
181 181 }
182 182
183 183 ################################################################
184 184 # This creates a tarfile one can use to update a test machine.
185 185
186 186 do_tar() {
187 187 git_rev=`git rev-parse --short=8 HEAD`
188 188 files="
189 +kernel/misc/amd64/idmap
189 190 lib/svc/manifest/system/idmap.xml
190 191 usr/lib/idmapd
191 192 usr/lib/libads.so.1
192 193 usr/lib/$arch64/libads.so.1
193 194 usr/lib/libadutils.so.1
194 195 usr/lib/$arch64/libadutils.so.1
195 196 usr/lib/libidmap.so.1
196 197 usr/lib/$arch64/libidmap.so.1
197 198 usr/lib/libldap.so.5
198 199 usr/lib/$arch64/libldap.so.5
199 200 usr/lib/nss_ad.so.1
200 201 usr/lib/$arch64/nss_ad.so.1
201 202 usr/bin/test-getdc
202 203 usr/sbin/idmap
203 204 usr/sbin/nltest
204 205 "
205 206
206 207 (cd $ROOT && tar cfj ../../idmap-${git_rev}.tar.bz2 $files)
207 208 }
208 209
209 210 ################################################################
210 211
211 212 if [ "$1" = "" ]; then
212 213 set '?' # force usage
213 214 fi
214 215
215 216 set -x
216 217
217 218 for arg
218 219 do
219 220 case "$arg" in
220 221 build|install)
221 222 arg=install
222 223 build_tools
223 224 set -e
224 225 do_hdrs $arg
225 226 do_kern $arg
226 227 do_libs $arg
227 228 do_cmds $arg
228 229 ;;
229 230 lint)
230 231 do_kern $arg
231 232 do_libs $arg
232 233 do_cmds $arg
233 234 ;;
234 235 clean)
235 236 do_cmds $arg
236 237 do_libs $arg
237 238 do_kern $arg
238 239 ;;
239 240 clobber)
240 241 do_cmds $arg
241 242 do_libs $arg
242 243 do_kern $arg
243 244 do_hdrs $arg
244 245 clobber_tools
245 246 ;;
246 247 tags)
247 248 do_tags
248 249 ;;
249 250 tar)
250 251 do_tar
251 252 ;;
252 253 *)
253 254 echo "Usage: $0 {build|lint|clean|clobber|tags|tar}";
254 255 exit 1;
255 256 ;;
256 257 esac
257 258 done
|
↓ open down ↓ |
59 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX