This file is indexed.

/usr/share/doc/HOWTO/ja-html/LDAP-HOWTO-5.html is in doc-linux-ja-html 2006.05.25-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
 <TITLE>LDAP Linux HOWTO: $B%G!<%?%Y!<%9:n@.(B/$B4IM}%D!<%k(B</TITLE>
 <LINK HREF="LDAP-HOWTO-6.html" REL=next>
 <LINK HREF="LDAP-HOWTO-4.html" REL=previous>
 <LINK HREF="LDAP-HOWTO.html#toc5" REL=contents>
</HEAD>
<BODY>
<A HREF="LDAP-HOWTO-6.html">$B<!$N%Z!<%8(B</A>
<A HREF="LDAP-HOWTO-4.html">$BA0$N%Z!<%8(B</A>
<A HREF="LDAP-HOWTO.html#toc5">$BL\<!$X(B</A>
<HR>
<H2><A NAME="s5">5.</A> <A HREF="LDAP-HOWTO.html#toc5">$B%G!<%?%Y!<%9:n@.(B/$B4IM}%D!<%k(B</A></H2>

<P>$B$3$N@a$G$O!"(Bslapd $B%G!<%?%Y!<%9$r(B 0 $B$+$i:n@.$9$kJ}K!$H!"(B
$BLdBj$,H/@8$7$?$H$-$N%H%i%V%k%7%e!<%F%#%s%0$K$D$$$F@bL@$7$^$9!#(B
$B%G!<%?%Y!<%9$r:n@.$9$k$N$K$OFs$D$NJ}K!$,$"$j$^$9!#(B
$B$=$N0l$D$O(B LDAP $B$rMQ$$$F%*%s%i%$%s$G%G!<%?%Y!<%9$r:n@.$9$k(B
$B$H$$$&$b$N$G$9!#$3$NJ}K!$G$O!"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9!#(Bslapd $B$r;OF0$9$kA0$K(B slapd.conf $B%U%!%$%k$K(B
$B$"$k<!$N@_Dj%*%W%7%g%s$r@_Dj$7$F$*$$$F$/$@$5$$!#(B
<PRE>
    suffix &lt;dn>
</PRE>
</P>
<P>
<A HREF="LDAP-HOWTO-3.html#3">LDAP $B%5!<%P$N@_Dj(B</A>$B$G@bL@$7$?$h$&$K!"$3$N%*%W%7%g%s$K$O!"(B
$B$3$N%G!<%?%Y!<%9$K3JG<$5$l$k%(%s%H%j72$,2?$G$"$k$+$r5-=R$7$^$9!#(B
$B$3$l$O:n@.$7$h$&$H$7$F$$$k%5%V%D%j!<$N%k!<%H$N(B DN $B$K@_Dj$7$^$9!#(B
$B$?$H$($P<!$N$h$&$K@_Dj$7$^$9!#(B
<PRE>
    suffix "o=TUDelft, c=NL"
</PRE>
</P>
<P>$B:w0z%U%!%$%k$r:n@.$9$k%G%#%l%/%H%j$r@_Dj$7$F$/$@$5$$!#(B
<PRE>
    directory &lt;directory>
</PRE>
</P>
<P>$B$?$H$($P<!$N$h$&$K@_Dj$7$^$9!#(B
<PRE>
    directory /usr/local/tudelft
</PRE>
</P>
<P>$B%(%s%H%j$rDI2C$9$k8"8B$r;}$C$?%f!<%6$G(B slapd $B$K@\B3$G$-$k$h$&$K@_Dj(B
$B$9$kI,MW$,$"$j$^$9!#$3$l$O%G!<%?%Y!<%9Dj5ACf$NFs$D$N%*%W%7%g%s$r(B
$BMQ$$$F9T$$$^$9!#(B
<PRE>
    rootdn &lt;dn> 

    rootpw &lt;passwd>   /* $B$3$3$N%Q%9%o!<%I$K(B crypt $B$r;H$&$N$rK:$l$J$$$G(B !!! */ 
</PRE>
</P>
<P><B>[$BLuCm(B]</B>
$B<B:]$K$O(B /* $B!A(B */ $B$G%3%a%s%H$rF~$l$k$3$H$O$G$-$^$;$s!#(B</P>
<P>$B$3$l$i$N%*%W%7%g%s$O!"%G!<%?%Y!<%9$N!V%9!<%Q%f!<%6!W%(%s%H%j(B($B$9$J$o$A(B
$B2?$G$b$G$-$k%(%s%H%j(B)$B$H$7$FG'>Z$9$k$N$K;H$&(B DN $B$H%Q%9%o!<%I$r;XDj$7$^$9!#(B
$B$3$l$G;XDj$9$k(B DN $B$H%Q%9%o!<%I$O!"<B:]$K$3$NL>A0$N%(%s%H%j$,$"$k$+!"(B
$B$=$7$F;XDj$N%Q%9%o!<%I$r;}$C$F$$$k$+$K$+$+$o$i$:>o$KM-8z$G$9!#(B
$B$3$l$O!"$^$@2?$b%(%s%H%j$,L5$$>uBV$G$NG'>Z$H%(%s%H%j$NDI2C$r$I$&$9$k$+(B
$B$H$$$&!V7\$HMq!WLdBj$r2r7h$7$^$9!#(B</P>
<P>$B:G8e$K!"%G!<%?%Y!<%9Dj5A$KK>$`:w0zDj5A$r4^$a$^$9!#(B
<PRE>
    index {&lt;attrlist> | default } [pres,eq,approx,sub,none]
</PRE>
</P>
<P>$B$?$H$($P!"(Bcn, sn, uid, objectclass $BB0@-$K:w0z$r$D$1$k$K$O!"(B
$B<!$N$h$&$J(B index $B@_Dj9T$r;H$$$^$9!#(B
<PRE>
    index cn,sn,uid 

    index objectclass pres,eq 

    index default none 
</PRE>
</P>
<P>$B$3$3$^$G@_Dj$7$?$i(B slapd $B$r5/F0$7$F!"$"$J$?$N(B LDAP $B%/%i%$%"%s%H$G(B
$B@\B3$7$F!"%(%s%H%j$NDI2C$r3+;O$7$F$/$@$5$$!#$?$H$($P!"(BTUDelft $B%(%s%H%j(B
$B$H$=$l$KB0$9$k(B Postmaster $B%(%s%H%j$r(B ldapadd $B%D!<%k$rMQ$$$FDI2C$9$k(B
$B$K$O!"$=$NFbMF$r5-=R$7$?(B /tmp/newentry $B$H$$$&%U%!%$%k$r:n@.$7$^$9!#(B
<PRE>
    o=TUDelft, c=NL 
    objectClass=organization 
    o=TUDelft
    description=Technical University of Delft Netherlands 

    cn=Postmaster, o=TUDelft, c=NL 
    objectClass=organizationalRole 
    cn=Postmaster 
    description= TUDelft postmaster - postmaster@tudelft.nl 
</PRE>
</P>
<P>$B<B:]$K%(%s%H%j$r:n@.$9$k$K$O<!$N$h$&$J%3%^%s%I$r;H$$$^$9!#(B
<PRE>
    ldapadd -f /tmp/newentry -D "cn=Manager, o=TUDelft, c=NL" -w secret 
</PRE>
</P>
<P>$B>e$N%3%^%s%IMxMQNc$G$O!"(Brootdn $B$,(B "cn=Manager, o=TUDelft, c=NL"$B!"(B
rootpw $B$,(B "secret" $B$K@_Dj$5$l$F$$$k$b$N$H$7$^$9!#%3%^%s%I%i%$%s$K(B
$B%Q%9%o!<%I$r%?%$%W$7$?$/$J$1$l$P!"(Bldapadd $B%3%^%s%I$N%*%W%7%g%s(B
-w "password" $B$NBe$o$j$K(B -W $B%*%W%7%g%s$r;H$C$F$/$@$5$$!#$=$&$9$k$H!"(B
$B<!$N$h$&$K%Q%9%o!<%I$NF~NO$,MW5a$5$l$k$h$&$K$J$j$^$9!#(B
<PRE>
    ldapadd -f /tmp/newentry -D "cn=Manager, o=TUDelft, c=NL" -W 
    Enter LDAP Password: 
</PRE>
</P>

<H2><A NAME="ss5.2">5.2</A> <A HREF="LDAP-HOWTO.html#toc5.2">$B%*%U%i%$%s$G%G!<%?%Y!<%9$r:n@.$9$kJ}K!(B</A>
</H2>

<P><B>[$BLuCm(B]</B>
$B$3$N@a$N@bL@$O4pK\E*$K(B OpenLDAP 2.0.x $B$K4p$E$$$F$$$^$9!#(B</P>
<P>$B%G!<%?%Y!<%9$r:n@.$9$kBh#2$NJ}K!$O!"8e=R$9$k:w0z@8@.%D!<%k$rMQ$$$F(B
$B%*%U%i%$%s$G9T$&$3$H$G$9!#2?@i0J>e$b$N%(%s%H%j$r3JG<$9$kI,MW$,$"$j!"(B
$BA0=R$N(B LDAP $B$rMxMQ$7$?J}K!$r;H$C$?$N$G$O;~4V$,$+$+$j$9$.$k$h$&$J>l9g(B
$B$K$O!"%*%U%i%$%s$G@8@.$9$k$N$,:GE,$G$9!#$3$N%D!<%k$O!"(Bslapd $BMQ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$7$g$&!#8e$O%Z!<%8%s%0%7%9%F%`$,(B
$B:n6H$7$F$/$l$^$9!#$3$N%5%$%:$O<!$N%*%W%7%g%s$G@_Dj$7$^$9!#(B
<PRE>
    dbcachesize &lt;integer>
</PRE>
</P>
<P>$B$?$H$($P<!$N$h$&$K@_Dj$7$^$9!#(B
<PRE>
    dbcachesize 50000000 
</PRE>
</P>
<P>$B$3$l$O(B 50MB $B$H$$$&$+$J$jBg$-$J%5%$%:$N%-%c%C%7%e$r:n@.$7$^$9(B($B%_%7%,%s(B
$BBg3X$G$O!"%G!<%?%Y!<%9$,Ls(B 125K $B%(%s%H%j!":GBg$N:w0z%U%!%$%k$,Ls(B 45MB $B$G$9(B)$B!#(B
$B$3$N%-%c%C%7%e%5%$%:$HJB9TEY(B($B8e=R(B)$B$r<B83$7$F$_$F!"%7%9%F%`$,:GE,$KF0:n(B
$B$9$k$h$&$K$7$F$/$@$5$$!#:w0z%U%!%$%k$r:n@.$7$?$i!"(Bslapd $B$r<B9T$9$kA0$K(B
$B%-%c%C%7%e%5%$%:$r>.$5$JCM$KLa$7$F$*$/$N$rK:$l$J$$$G$/$@$5$$!#(B</P>
<P>$B:G8e$K!":n@.$9$k:w0z$r;XDj$9$kI,MW$,$"$j$^$9!#(B
$B$3$l$O!"0l$D0J>e$N(B index $B%*%W%7%g%s$K$h$C$F9T$o$l$^$9!#(B
<PRE>
    index {&lt;attrlist> | default} [pres,eq,approx,sub,none]
</PRE>
</P>
<P>$B$?$H$($P<!$N$h$&$K@_Dj$7$^$9!#(B
<PRE>
index cn,sn,uid pres,eq,approx 
&lt;p>
index default none 
</PRE>
</P>
<P>$B$3$l$O!"B0@-(B cn, sn, and uid $B$K$D$$$FB8:_!"Ey2A@-!"6a;w$N:w0z$r:n@.$7!"(B
$BB>$NB0@-$K$D$$$F$O:w0z$r:n@.$7$^$;$s!#$3$N%*%W%7%g%s$K$D$$$F>\$7$/$O(B
<A HREF="LDAP-HOWTO-3.html#3">LDAP $B%5!<%P$N@_Dj(B</A>$B$N@_Dj%U%!%$%k$r;2>H$7$F$/$@$5$$!#(B</P>
<P>$B$3$3$^$G@_Dj$7$?$i!"(Bslapadd(8) $B%W%m%0%i%`$r<B9T$7$F<g%G!<%?%Y!<%9$H(B
$B4XO"$9$k:w0z$r:n@.$7$^$9!#(B
<PRE>
    slapadd -l &lt;inputfile> -f &lt;slapdconfigfile>
            [-d &lt;debuglevel>] [-n &lt;integer>|-b &lt;suffix>]
</PRE>
</P>
<P>$B0z?t$N0UL#$O<!$N$H$*$j$G$9!#(B
<DL>
<DT><B>-l &lt;inputfile&gt;</B><DD><P>$BDI2C$9$k%(%s%H%j$r%F%-%9%H7A<0$G5-=R$7$?(B LDIF $BF~NO%U%!%$%k$r;XDj$7$^$9(B
(LDIF $B$K$D$$$F$O<!@a$r;2>H(B)$B!#(B</P>
<DT><B>-f &lt;slapdconfigfile&gt;</B><DD><P>$B:w0z$r:n@.$9$k>l=j!":n@.$9$k:w0z$J$I$rCN$i$;$k(B slapd $B@_Dj%U%!%$%k$r(B
$B;XDj$7$^$9!#(B</P>
<DT><B>-d &lt;debuglevel&gt;</B><DD><P>&lt;debuglevel&gt; $B$G;XDj$7$?%G%P%C%0%b!<%I$K$7$^$9!#(B
$B;XDj$9$k%G%P%C%0%l%Y%k$O(B slapd $B$HF1$8$G$9!#!V(BLDAP $B%5!<%P$N<B9T!W$N>O$N(B
$B!V(B
<A HREF="LDAP-HOWTO-4.html#4.1">$B%3%^%s%I%i%$%s%*%W%7%g%s(B</A>$B!W$r;2>H$7$F$/$@$5$$!#(B
$B$I$N%G!<%?%Y!<%9$r99?7$9$k$+$r;XDj$9$k%*%W%7%g%s0z?t!#(B
$B@_Dj%U%!%$%kCf$KDj5A$5$l$F$$$k:G=i$N%G!<%?%Y!<%9$O(B 1$B!"(B
$B#2HVL\$N%G!<%?%Y!<%9$O(B 2 $B$H$$$&$h$&$K;XDj$7$^$9!#(B
$B%G%U%)%k%H$G$O!"@_Dj%U%!%$%k$KDj5A$5$l$F$$$k:G=i$N(B ldbm
$B%G!<%?%Y!<%9$,;H$o$l$^$9!#%*%W%7%g%s(B -b $B$HJ;$;$F;XDj$7$F$O(B
$B$J$j$^$;$s!#(B</P>
<DT><B>-b &lt;suffix&gt;</B><DD><P>$B$I$N%G!<%?%Y!<%9$r99?7$9$k$+$r;XDj$9$k%*%W%7%g%s0z?t!#(B
$BM?$($k%5%U%#%C%/%9$O!"%G!<%?%Y!<%9HV9f$r7hDj$9$k$?$a$K!"(B
$B%G!<%?%Y!<%9$N(B suffix $B%G%#%l%/%F%#%V$H>H9g$5$l$^$9!#(B
$B%*%W%7%g%s(B -n $B$HJ;$;$F;XDj$7$F$O$J$j$^$;$s!#(B</P>
</DL>
</P>
<P>$B;~$K$O:w0z$N:F:n@.$,I,MW$K$J$k$3$H$b$"$j$^$9(B(slapd.conf(5)
$B$rJQ99$7$?8e$J$I(B)$B!#$3$N$h$&$J$3$H$O!"(Bslapindex(8) $B%W%m%0%i%`(B
$B$r;H$C$F$G$-$^$9!#(Bslapindex $B$O<!$N=q<0$G5/F0$7$^$9!#(B
<PRE>
    slapindex -f &lt;slapdconfigfile> [-d &lt;debuglevel>]
              [-n &lt;databasenumber>|-b &lt;suffix>]
</PRE>
</P>
<P>$B%*%W%7%g%s(B -f, -d, -n, -b $B$N0UL#$O(B slapadd(1) $B%W%m%0%i%`$HF1$8$G$9!#(B
slapindex $B$O!"8=:_$N%G!<%?%Y!<%9$NFbMF$r4p$K$9$Y$F$N:w0z$r:F:n@.$7$^$9!#(B</P>
<P>$B%G!<%?%Y!<%9$r(B LDIF $B%U%!%$%k$K%@%s%W$9$k$N$K;H$&(B slapcat $B$H$$$&(B
$B%W%m%0%i%`$,MQ0U$5$l$F$$$^$9!#$3$l$O!"%G!<%?%Y!<%9$N2DFI@-$N(B
$B$"$k%P%C%/%"%C%W$r$H$j$?$$$H$-!"%G!<%?%Y!<%9$r%*%U%i%$%s$GJT=8(B
$B$7$?$$$H$-$J$I$KM-MQ$G$9!#$3$N%W%m%0%i%`$O<!$N=q<0$G5/F0$7$^$9!#(B
<PRE>
    slapcat -l &lt;filename> -f &lt;slapdconfigfile>
            [-d &lt;debuglevel>] [-n &lt;databasenumber>|-b &lt;suffix>]
</PRE>
</P>
<P>$B%*%W%7%g%s(B -n $B$^$?$O(B -b $B$O!"(B{{EX:-f}} $B$G;XDj$9$k(B slapd.conf(5)
$B$K@_Dj$5$l$F$$$k%G!<%?%Y!<%9$rA*$V$N$K;H$$$^$9!#(B
$BAjEv$9$k(B LDIF $B=PNO$O!"I8=`=PNO$+(B -l $B%*%W%7%g%s$G;XDj$9$k(B
$B%U%!%$%k$K=q$-=P$5$l$^$9!#(B</P>

<H2><A NAME="ss5.3">5.3</A> <A HREF="LDAP-HOWTO.html#toc5.3">LDIF $B%U%)!<%^%C%H$K$D$$$F$5$i$K(B</A>
</H2>

<P><B>[$BLuCm(B]</B>
$B$3$N@a$N@bL@$O4pK\E*$K(B OpenLDAP 2.0.x $B$K4p$E$$$F$$$^$9!#(B</P>
<P>LDAP $B%G!<%?8r49%U%)!<%^%C%H(B(LDIF - LDAP Data Interchange Format)$B$O!"(B
LDAP $B%(%s%H%j$r4JC1$J%F%-%9%H%U%)!<%^%C%H$GI=8=$9$k$?$a$KMxMQ$5$l$^$9!#(B
$B%(%s%H%j$N4pK\E*$J7A<0$O<!$N$h$&$J$b$N$G$9!#(B
<PRE>
    # $B%3%a%s%H(B
    dn: &lt;$B<1JLL>(B>
    &lt;$BB0@-5-=R;R(B>: &lt;$BB0@-CM(B>
    &lt;$BB0@-5-=R;R(B>: &lt;$BB0@-CM(B>
    ... 
</PRE>
</P>
<P>$BJ8;z(B '#' $B$G;O$^$k9T$O%3%a%s%H$G$9!#B0@-5-=R;R$O!"(B
cn, objectClass, 1.2.3 ($BB0@-7?$N(B OID)$B$N$h$&$JC1$J$kB0@-7?$G$"$j!"(B
cn;lang_en_US, userCertificate;binary $B$N$h$&$K%*%W%7%g%s$bIU$1$i$l$^$9!#(B</P>
<P>$B9T$rC10l$N%9%Z!<%9$^$?$O%?%VJ8;z$G3+;O$9$k$HA0$N9T$K7QB3$G$-$^$9!#(B
$B$?$H$($P<!$N$h$&$K$G$-$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
dn: cn=Barbara J Jensen, dc=example, dc=
 com
cn: Barbara J
    Jensen
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B$3$l$O<!$N$b$N$HF1Ey$G$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
dn: cn=Barbara J Jensen, dc=example, dc=com
cn: Barbara J Jensen
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$BB0@-CM$,J#?t$"$k>l9g$O9T$rJ,$1$F;XDj$7$^$9!#$?$H$($P<!$N$h$&$K$J$j$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
cn: Barbara J Jensen
cn: Babs Jensen
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>&lt;$BB0@-CM(B> $B$K0u;z$G$-$J$$J8;z$,4^$^$l$F$$$?$j!"%9%Z!<%9!"%3%m%s(B(':')$B!"(B
$B>.$J$j5-9f(B('{{EX:&lt;}}')$B$G;O$^$k>l9g$K$O!"(B&lt;$BB0@-5-=R;R(B> $B$KB3$1$F%3%m%s$r(B
$BFs$DCV$-!"(Bbase64 $BI=5-$G%(%s%3!<%I$7$?CM$r=q$-$^$9!#$?$H$($P!"(B
$BCM$,(B " begins with a space" $B$G$"$k$H$-$O<!$N$h$&$K$J$j$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
cn:: IGJlZ2lucyB3aXRoIGEgc3BhY2U=
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$BB0@-CM$rJ];}$7$?(B URL $B$r;XDj$9$k$3$H$b$G$-$^$9!#(B
$B<!$K<($9Nc$O!"(BjpegPhoto $B$NCM$r%U%!%$%k(B /path/to/file.jpeg
$B$+$iF@$k$3$H$r;XDj$7$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
cn:&lt; file:///path/to/file.jpeg
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$BF1$8(B LDIF $BCf$NJ#?t$N%(%s%H%j$O6u9T$GJ,N%$7$^$9!#(B
$B<!$K<($9$N$O!";0$D$N%(%s%H%j$r4^$s$@(B LDIF $B%U%!%$%k$NNc$G$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
# Barbara's Entry
dn: cn=Barbara J Jensen,dc=example,dc=com
cn: Barbara J Jensen
cn: Babs Jensen
objectClass: person
sn: Jensen

# Bjorn's Entry
dn: cn=Bjorn J Jensen,dc=example,dc=com
cn: Bjorn J Jensen
cn: Bjorn Jensen
objectClass: person
sn: Jensen
# Base64 encoded JPEG photo
jpegPhoto:: /9j/4AAQSkZJRgABAAAAAQABAAD/2wBDABALD
 A4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQ
 ERXRTc4UG1RV19iZ2hnPk1xeXBkeFxlZ2P/2wBDARESEhgVG

# Jennifer's Entry
dn: cn=Jennifer J Jensen,dc=example,dc=com
cn: Jennifer J Jensen
cn: Jennifer Jensen
objectClass: person
sn: Jensen
# JPEG photo from file
jpegPhoto:&lt; file:///path/to/file.jpeg
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B$3$3$G!"(BBjorn $B$N%(%s%H%jCf$N(B jpegPhoto $B$,(B base 64
$B%(%s%3!<%I$G!"(BJennifer $B$N%(%s%H%jCf$N(B jpegPhoto $B$,(B
URL $B$K$h$C$F<($5$l$?>l=j$+$i<hF@$5$l$k$3$H$KCmL\$7$F$/$@$5$$!#(B</P>
<P>LDIF $B%U%!%$%k$K$*$$$F!"CM$N8e$KB3$/%9%Z!<%9$,@Z<N$F$i$l$k$3$H$O(B
$B$"$j$^$;$s!#$^$?!"CM$NCf$N%9%Z!<%9$,=L$a$i$l$k$3$H$b$"$j$^$;$s!#%G!<%?(B
$BCf$K%9%Z!<%9$rCV$-$?$/$J$$>l9g$O!"(BLDIF $B$K$b%9%Z!<%9$rCV$$$F$O$J$j$^$;$s!#(B</P>

<H2><A NAME="ss5.4">5.4</A> <A HREF="LDAP-HOWTO.html#toc5.4">ldapsearch, ldapdelete, ldapmodify $B%f!<%F%#%j%F%#(B</A>
</H2>

<P><B>[$BLuCm(B]</B>
$B$3$N@a$N@bL@$O4pK\E*$K(B OpenLDAP 1.2.x $B$K4p$E$$$F$$$^$9!#(B
OpenLDAP 2.0.x $B$G$O%*%W%7%g%s$,$$$/$D$+DI2C(B/$BJQ99$5$l$F$$$^$9!#(B</P>
<P>ldapsearch - ldapsearch $B$O!"(Bldap_search(3) $B%i%$%V%i%k%3!<%k$KBP1~$9$k(B
$B%3%^%s%I%i%$%s%$%s%?%U%'!<%9$G$9!#$3$N%f!<%F%#%j%F%#$O!"(BLDAP $B%G!<%?(B
$B%Y!<%9%P%C%/%(%s%ICf$N%(%s%H%j$r8!:w$9$k$?$a$K;H$$$^$9!#(B</P>
<P>ldapsearch $B$r5/F0$9$k=q<0$O<!$N$H$*$j$G$9(B($B3F%*%W%7%g%s$N0UL#$O(B
ldapsearch $B$N(B man $B%Z!<%8$r8+$F$/$@$5$$(B)$B!#(B
<BLOCKQUOTE><CODE>
<PRE>
ldapsearch  [-n] [-u] [-v] [-k] [-K] [-t] [-A] [-B] [-L] [-R] [-d debuglevel]
    [-F sep] [-f file] [-D binddn] [-W] [-w bindpasswd] [-h ldaphost]
    [-p ldapport] [-b searchbase] [-s base|one|sub]
    [-a never|always|search|find] [-l timelimit] [-z sizelimit]
    filter [attrs...]
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>ldapsearch $B$O(B LDAP $B%5!<%P$KBP$7$F%3%M%/%7%g%s$rD%$j!"%P%$%s%I$7$?8e!"(B
$B%U%#%k%?(B filter $B$rMQ$$$F8!:w$7$^$9!#$3$N(B filter $B$O!"(BRFC 1558 $B$KDj5A(B
$B$5$l$F$$$k(B LDAP $B%U%#%k%?$NJ8;zNsI=8=$K=>$o$M$P$J$j$^$;$s!#(Bldapsearch $B$,(B
$B#18D0J>e$N%(%s%H%j$r8+$D$1$k$H!"(Battrs $B$K;XDj$7$?B0@-$,<h$j=P$5$l!"(B
$B$=$N%(%s%H%j$HCM$,I8=`=PNO$K0u;z$5$l$^$9!#(Battrs $B$N;XDj$,$J$1$l$P!"(B
$BA4B0@-$,JV$5$l$^$9!#(B</P>
<P>$B<!$K(B ldapsearch $B$NMxMQNc$r$$$/$D$+<($7$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
ldapsearch -b 'o=TUDelft,c=NL' 'objectclass=*' 

ldapsearch -b 'o=TUDelft,c=NL' 'cn=Rene van Leuken' 

ldasearch -u -b 'o=TUDelft,c=NL' 'cn=Luiz Malere' sn mail 
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B%*%W%7%g%s(B -b $B$O8!:w%Y!<%9(B($B@hF,$N8!:w%]%$%s%H(B)$B$r;XDj$7!"(B-u $B%*%W%7%g%s$O(B
$B%f!<%6%U%l%s%I%j7A<0$r=PNO$K4^$a$k$3$H$r;XDj$7$^$9!#(B</P>
<P>ldapdelete - ldapdelete $B$O!"(Bldap_delete(3) $B%i%$%V%i%k%3!<%k$KBP1~$9$k(B
$B%3%^%s%I%i%$%s%$%s%?%U%'!<%9$G$9!#$3$N%f!<%F%#%j%F%#$O!"(BLDAP $B%G!<%?(B
$B%Y!<%9%P%C%/%(%s%ICf$N%(%s%H%j$r:o=|$9$k$?$a$K;H$$$^$9!#(B</P>
<P>ldapdelete $B$r5/F0$9$k=q<0$O<!$N$H$*$j$G$9(B($B3F%*%W%7%g%s$N0UL#$O(B
ldapdelete $B$N(B man $B%Z!<%8$r8+$F$/$@$5$$(B)$B!#(B
<BLOCKQUOTE><CODE>
<PRE>
ldapdelete  [-n] [-v] [-k] [-K] [-c] [-d debuglevel] [-f file] [-D binddn]
    [-W] [-w passwd] [-h ldaphost] [-p ldapport] [dn]... 
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>ldapdelete $B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ldapmodify $B$r5/F0$9$k=q<0$O<!$N$H$*$j$G$9(B($B3F%*%W%7%g%s$N0UL#$O(B
ldapmodify $B$N(B man $B%Z!<%8$r8+$F$/$@$5$$(B)$B!#(B
<BLOCKQUOTE><CODE>
<PRE>
ldapmodify  [-a] [-b] [-c] [-r] [-n] [-v] [-k] [-d debuglevel] [-D binddn]
    [-W] [-w passwd] [-h ldaphost] [-p ldapport] [-f file] 

ldapadd  [-b] [-c] [-r] [-n] [-v] [-k] [-K] [-d debuglevel] [-D binddn]
    [-w passwd] [-h ldaphost] [-p ldapport] [-f file] 
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>ldapadd $B$O!"(Bldapmodify $B%D!<%k$X$N%O!<%I%j%s%/$K$J$C$F$$$^$9!#(Bldapadd $B$H(B
$B$7$F5/F0$5$l$k$H!"%U%i%0(B -a ($B?7$7$$%(%s%H%j$NDI2C(B)$B$,0EL[$K;XDj$5$l$?$b$N(B
$B$H$_$J$7$^$9!#(Bldapmodify $B$O(B LDAP $B%5!<%P$X$KBP$7$F%3%M%/%7%g%s$rD%$j!"(B
$B%P%$%s%I$7$?8e!"%(%s%H%j$r99?7(B/$BDI2C$7$^$9!#%(%s%H%j>pJs$OI8=`F~NO(B
$B$"$k$$$O(B -f $B%*%W%7%g%s$G;XDj$7$?%U%!%$%k(B file $B$+$iFI$_9~$^$l$^$9!#(B</P>
<P>$B<!$K(B ldapmodify $B$NMxMQNc$r$$$/$D$+<($7$^$9!#(B</P>
<P>$B%U%!%$%k(B /tmp/entrymods $B$,$"$j!"$=$NFbMF$O<!$N$h$&$K$J$C$F$$$k$H$7$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
dn: cn=Modify Me, o=University of Michigan, c=US 
changetype: modify 
replace: mail 
mail: modme@terminator.rs.itd.umich.edu 
- 
add: title 
title: Grand Poobah 
- 
add: jpegPhoto 
jpegPhoto: /tmp/modme.jpeg 
- 
delete: description 
- 
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B<!$N%3%^%s%I$r<B9T$7$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
ldapmodify -b -r -f /tmp/entrymods 
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B$3$l$K$h$j!"%(%s%H%j(B "Modify Me" $B$N(B mail $BB0@-$NFbMF$rCM(B
"modme@terminator.rs.itd.umich.edu" $B$GCV49$7!"(B
"Grand Poobah" $B$N(B title $B$rDI2C$7$F!"%U%!%$%k(B "/tmp/modme.jpeg" $B$NFbMF$r(B
jpegPhoto $B$H$7$FDI2C$7$F!"(Bdescription $BB0@-$r40A4$K=|5n$7$^$9!#(B</P>
<P>$B<!$N8E$$(B ldapmodify $BF~NO%U%)!<%^%C%H$rMQ$$$F$b!">e$HF1$899?7$,9T$($^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
cn=Modify Me, o=University of Michigan, c=US 
mail=modme@terminator.rs.itd.umich.edu 
+title=Grand Poobah 
+jpegPhoto=/tmp/modme.jpeg 
-description 
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B$3$N>l9g$bF1MM$K(B ldapmodify $B$r5/F0$7$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
ldapmodify -b -r -f /tmp/entrymods 
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B%U%!%$%k(B /tmp/newentry $B$,$"$j!"$=$NFbMF$O<!$N$h$&$K$J$C$F$$$k$H$7$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
dn: cn=Barbara Jensen, o=University of Michigan, c=US 
objectClass: person 
cn: Barbara Jensen 
cn: Babs Jensen 
sn: Jensen 
title: the world's most famous manager 
mail: bjensen@terminator.rs.itd.umich.edu 
uid: bjensen 
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B<!$N%3%^%s%I$r<B9T$7$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
ldapadd -f /tmp/entrymods 
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B%U%!%$%k(B /tmp/newentry $B$,$"$j!"$=$NFbMF$O<!$N$h$&$K$J$C$F$$$k$H$7$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
dn: cn=Barbara Jensen, o=University of Michigan, c=US 
changetype: delete 
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B<!$N%3%^%s%I$r<B9T$7$^$9!#(B
<BLOCKQUOTE><CODE>
<PRE>
ldapmodify -f /tmp/entrymods 
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>$B$3$l$O!"(BBabs Jensen $B$N%(%s%H%j$r=|5n$7$^$9!#(B</P>
<P>$B%*%W%7%g%s(B -f $B$O(B($BI8=`F~NO$NBe$o$j$K99?7>pJs$rFI$_9~$`(B)
$B%U%!%$%k$r;XDj$7!"(B-b $B%*%W%7%g%s$O%P%$%J%j$r;XDj$7(B
($BF~NO%U%!%$%kCf$G(B '/' $B$G;O$^$kCM$O%P%$%J%j$G$"$k$H(B
$B2r<a$5$l$k(B)$B!"(B-r $B$O99?7(B($B%G%U%)%k%H$G4{B8$NCM$r99?7(B)$B$r;XDj$7$^$9!#(B</P>

<HR>
<A HREF="LDAP-HOWTO-6.html">$B<!$N%Z!<%8(B</A>
<A HREF="LDAP-HOWTO-4.html">$BA0$N%Z!<%8(B</A>
<A HREF="LDAP-HOWTO.html#toc5">$BL\<!$X(B</A>
</BODY>
</HTML>