[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: new user stuff



On Wed, 9 Dec 1998, Lutz Albers wrote:

// LDAP is somewhat underdocumented :-(
// 
// If you have time then read the relevants RFC's. For starting take a
// look in the tests/ directory, there are some sample LDIF-Files to
// play with.

	Yeah, I got a long way with the tests and the umich docs.  :)  
The test data was a little too much, I think it'd be nice to include a
shell script to bootstrap the database, something like the attached (real
quick hack) would've got me a long way.  :)

	The other problem I had getting going was knowing how to
authenticate myself.  I didn't realize that rootdn was what I needed to do
to modify the database more.  :)  I still haven't figured out how to let
individual users modify their own stuff, but I've got a long way to go
before I can launch this anywhere...

	One question, though, how come when I did this:

jpegphoto: /tmp/picture.jpg

...it didn't store the image, but just the path to the image?  It's my
understanding that the image should be stored.

--
SA, beyond.com                            The world is watching America,
pub  1024/3CAE01D5 1994/11/03 Dustin Sallings <dustin@spy.net>
|    Key fingerprint =  87 02 57 08 02 D0 DA D6  C8 0F 3E 65 51 98 D8 BE 
L________________________________________ and America is watching TV. __
#!/bin/sh

E="echo -n"

$E "Country:  "
read COUNTRY

$E "Organization:  "
read ORG

$E "Your Name (first and last):  "
read FIRST LAST

$E "Your E-mail address:  "
read EMAIL

cat <<EOF > /tmp/bootstrap.$$
dn: o=$ORG, c=$COUNTRY
o: $ORG
objectclass: organization

dn: cn=$FIRST $LAST, o=$ORG, c=US
cn: $FIRST $LAST
sn: $LAST
mail: $EMAIL
objectclass: person
EOF

ldif2ldbm -i /tmp/bootstrap.$$

rm -f /tmp/bootstrap.$$