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

--disable-cleartext and tests



If you configure with "--disable-cleartext", the test suite fails since
all the passwords are in cleartext.  Below is a patch (that adds a bit
to ldap/tests/README, and creates a patch file) that will ease testing
for those who've configured with "--disable-cleartext" and "--enable-crypt".

bl.


=============================cut here=============================
diff -rN ../tests.plaintext/README ./README
3a4,6
> 
> Note: if you've configured with "--enable-crypt" and "--disable-cleartext"
> apply the patch "test-crypt.patch" before running "make".
diff -rN ../tests.plaintext/test-crypt.patch ./test-crypt.patch
0a1,84
> diff -r ../tests.plaintext/data/modify.out.master ./data/modify.out.master
> 57c57
> < userpassword: bjensen
> ---
> > userpassword: {crypt}ol0E333BXHebg
> 88c88
> < userpassword: bjorn
> ---
> > userpassword: {crypt}olESOeNfPX482
> 206c206
> < userpassword: jaj
> ---
> > userpassword: {crypt}ol1YQoj/1UsPA
> 309c309
> < userpassword: secret
> ---
> > userpassword: {crypt}olFnfvHWiYriU
> diff -r ../tests.plaintext/data/search.out.master ./data/search.out.master
> 16c16
> < userpassword: bjensen
> ---
> > userpassword: {crypt}ol0E333BXHebg
> 48c48
> < userpassword: bjorn
> ---
> > userpassword: {crypt}olESOeNfPX482
> 153c153
> < userpassword: jaj
> ---
> > userpassword: {crypt}ol1YQoj/1UsPA
> diff -r ../tests.plaintext/data/slapd-acl.conf ./data/slapd-acl.conf
> 16c16
> < rootpw		secret
> ---
> > rootpw		{crypt}olFnfvHWiYriU
> diff -r ../tests.plaintext/data/slapd-master.conf ./data/slapd-master.conf
> 17c17
> < rootpw		secret
> ---
> > rootpw		{crypt}olFnfvHWiYriU
> diff -r ../tests.plaintext/data/slapd-repl-master.conf ./data/slapd-repl-master.conf
> 16c16
> < rootpw		secret
> ---
> > rootpw		{crypt}olFnfvHWiYriU
> diff -r ../tests.plaintext/data/slapd-repl-slave.conf ./data/slapd-repl-slave.conf
> 16c16
> < rootpw		secret
> ---
> > rootpw		{crypt}olFnfvHWiYriU
> diff -r ../tests.plaintext/data/test-ordered.ldif ./data/test-ordered.ldif
> 123c123
> < userpassword: bjensen
> ---
> > userpassword: {crypt}ol0E333BXHebg
> 155c155
> < userpassword: bjorn
> ---
> > userpassword: {crypt}olESOeNfPX482
> 234c234
> < userpassword: jaj
> ---
> > userpassword: {crypt}ol1YQoj/1UsPA
> 368c368
> < userpassword: secret
> ---
> > userpassword: {crypt}olFnfvHWiYriU
> diff -r ../tests.plaintext/data/test.ldif ./data/test.ldif
> 77c77
> < userpassword: bjensen
> ---
> > userpassword: {crypt}ol0E333BXHebg
> 109c109
> < userpassword: bjorn
> ---
> > userpassword: {crypt}olESOeNfPX482
> 205c205
> < userpassword: jaj
> ---
> > userpassword: {crypt}ol1YQoj/1UsPA
> 339c339
> < userpassword: secret
> ---
> > userpassword: {crypt}olFnfvHWiYriU
=============================cut here=============================


-- 
//====== Brett G. Lemoine -=- <bl@incyte.com> ===============================\\
||Sr. Systems Administrator|       How users describe their Sysadmin:        ||
||Core Unix System Services|                                                 ||
|| Incyte  Pharmaceuticals |       "He is a bastard you don't want to        ||
||  Palo Alto, California  |        cross, and I didn't say that."           ||
|+-------------------------+-------------------------------------------------+|
\\== PGP Key Fingerprint: 68 A1 2A 2D 82 CE E9 70  5B 80 D1 11 EC F3 FB 85 ==//