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

RE: Newbie question: setting userPassword field



Next question (no, I'm not going to ask for every step of the process!
<grin>):

I thought I'd test out the hashing function by playing with the rootpw field
in slapd.conf, before adding user entries.

Using the SHA hashing function in Java, I converted the password "hello"
into the string ¬(¦?_+Fó++¦¤;H,+«¬CM (hmm, it loses something in the
translation :).  Now, I assumed that I could simply change the rootpw from
its current default plaintext password to {SHA}¬(¦?_+Fó++¦¤;H,+«¬CM.

My ldap.conf file now looks like this:

...
#######################################################################
# ldbm database definitions
#######################################################################

database        ldbm
suffix          "o=fatcanary, c=AU"
directory       /usr/local/ldap/data
rootdn          "dn=dan, o=fatcanary, c=AU"
rootpw          {SHA}^j^t^F^\^E^h^b^Z^~^^;H,^Y^n^iCM

...

Next, I tried to bind to the server using Jerry Gawor's Java-based LDAP
browser program (available from http://www.iit.edu/~gawojar/ldap).  When the
rootpw field is set simply as "secret", I can log in (I assume this is done
by "binding") and manipulate the directory structure.  However now it won't
authenticate me.  Maybe I've done something stupid here, but just in case, I
set the log level to 4095 to record the goings on of the server (log
attached).

Can anybody help?

TIA,
D.



Dan Makovec
e-mail  dan@fatcanary.com.au <mailto:dan@fatcanary.com.au>
ICQ     1398090
Every day is a gift, that's why the present is so named
Feb  8 14:07:14 wanky slapd[37513]: select activity on 1 descriptors 
Feb  8 14:07:14 wanky slapd[37513]: new connection on 7 
Feb  8 14:07:14 wanky slapd[37513]: conn=0 fd=7 connection from tommy.fatcanary.com.au (203.38.245.114) accepted. 
Feb  8 14:07:14 wanky slapd[37513]: activity on:
Feb  8 14:07:14 wanky slapd[37513]:  
Feb  8 14:07:14 wanky slapd[37513]: listening for connections on 5, activity on:
Feb  8 14:07:14 wanky slapd[37513]:  7r
Feb  8 14:07:14 wanky slapd[37513]:  
Feb  8 14:07:14 wanky slapd[37513]: before select active_threads 0 
Feb  8 14:07:14 wanky slapd[37513]: select activity on 1 descriptors 
Feb  8 14:07:14 wanky slapd[37513]: activity on:
Feb  8 14:07:14 wanky slapd[37513]:  7r
Feb  8 14:07:14 wanky slapd[37513]:  
Feb  8 14:07:14 wanky slapd[37513]: read activity on 7 
Feb  8 14:07:14 wanky slapd[37513]: do_bind 
Feb  8 14:07:14 wanky slapd[37513]: do_bind: version 2 dn (dn=dan, o=FATCANARY, c=AU) method 128 
Feb  8 14:07:14 wanky slapd[37513]: conn=0 op=0 BIND dn="DN=DAN,O=FATCANARY,C=AU" method=128 
Feb  8 14:07:14 wanky slapd[37513]: ==> ldbm_back_bind: dn: DN=DAN,O=FATCANARY,C=AU 
Feb  8 14:07:14 wanky slapd[37513]: dn2entry_r: dn: "DN=DAN,O=FATCANARY,C=AU" 
Feb  8 14:07:14 wanky slapd[37513]: => dn2id( "DN=DAN,O=FATCANARY,C=AU" ) 
Feb  8 14:07:14 wanky slapd[37513]: => ldbm_cache_open( "/usr/local/ldap/data/dn2id.dbb", 514, 600 ) 
Feb  8 14:07:14 wanky slapd[37513]: ldbm_cache_open (blksize 8192) (maxids 2046) (maxindirect 2) 
Feb  8 14:07:14 wanky slapd[37513]: <= ldbm_cache_open (opened 0) 
Feb  8 14:07:14 wanky slapd[37513]: <= dn2id 39 
Feb  8 14:07:14 wanky slapd[37513]: => id2entry_r( 39 ) 
Feb  8 14:07:14 wanky slapd[37513]: => ldbm_cache_open( "/usr/local/ldap/data/id2entry.dbb", 514, 600 ) 
Feb  8 14:07:14 wanky slapd[37513]: ldbm_cache_open (blksize 8192) (maxids 2046) (maxindirect 2) 
Feb  8 14:07:14 wanky slapd[37513]: <= ldbm_cache_open (opened 1) 
Feb  8 14:07:14 wanky slapd[37513]: => str2entry 
Feb  8 14:07:14 wanky slapd[37513]: <= str2entry 0x810dd40 
Feb  8 14:07:14 wanky slapd[37513]: entry_rdwr_rlock: ID: 39 
Feb  8 14:07:14 wanky slapd[37513]: <= id2entry_r( 39 ) (disk) 
Feb  8 14:07:14 wanky slapd[37513]: send_ldap_result 48:: 
Feb  8 14:07:14 wanky slapd[37513]: conn=0 op=0 RESULT err=48 tag=97 nentries=0 
Feb  8 14:07:14 wanky slapd[37513]: ====> cache_return_entry_r 
Feb  8 14:07:14 wanky slapd[37513]: entry_rdwr_runlock: ID: 39 
Feb  8 14:07:14 wanky slapd[37513]: listening for connections on 5, activity on:
Feb  8 14:07:14 wanky slapd[37513]:  7r
Feb  8 14:07:14 wanky slapd[37513]:  
Feb  8 14:07:14 wanky slapd[37513]: before select active_threads 0 
Feb  8 14:07:14 wanky slapd[37513]: select activity on 1 descriptors 
Feb  8 14:07:14 wanky slapd[37513]: activity on:
Feb  8 14:07:14 wanky slapd[37513]:  7r
Feb  8 14:07:14 wanky slapd[37513]:  
Feb  8 14:07:14 wanky slapd[37513]: read activity on 7 
Feb  8 14:07:14 wanky slapd[37513]: ber_get_next on fd 7 failed errno 0 (Undefined error: 0) 
Feb  8 14:07:14 wanky slapd[37513]: *** got 0 of 0 so far 
Feb  8 14:07:14 wanky slapd[37513]: conn=0 op=-1 fd=7 closed errno=0 
Feb  8 14:07:14 wanky slapd[37513]: listening for connections on 5, activity on:
Feb  8 14:07:14 wanky slapd[37513]:  
Feb  8 14:07:14 wanky slapd[37513]: before select active_threads 0