From: <svn...@op...> - 2010-01-05 18:53:35
|
Author: scriptor Date: Tue Jan 5 19:53:23 2010 New Revision: 5973 URL: http://www.opensync.org/changeset/5973 Log: A few additional tests regarding the authentification with ns-slapd (= 389-directory-server = fedora-directory-server). The different ldap-sync.conf_* files need to be unified, eventually. In this changeset I have only unified the server address ("$LDAP_SERVER"). A word about SSL/TLS: As long as the openldap libraries are being used, openssl needs to be set up, as it seems. Likewise, as far as the LDAP plugin is linked against the mozldap libraries, the ssl/tls tools from netscape / mozldap need to be used and set up (certutil rather than openssl...). Modified: plugins/ldap-sync/tests/CMakeLists.txt plugins/ldap-sync/tests/ldap-sync.conf plugins/ldap-sync/tests/ldap-sync.conf_cram_md5_nsslapd plugins/ldap-sync/tests/ldap-sync.conf_cram_md5_slapd plugins/ldap-sync/tests/ldap-sync.conf_digest_md5_nsslapd plugins/ldap-sync/tests/ldap-sync.conf_digest_md5_slapd plugins/ldap-sync/tests/ldap-sync.conf_external1_nsslapd plugins/ldap-sync/tests/ldap-sync.conf_external1_slapd plugins/ldap-sync/tests/ldap-sync.conf_external2_nsslapd plugins/ldap-sync/tests/ldap-sync.conf_external2_slapd plugins/ldap-sync/tests/ldap-sync.conf_gssapi_nsslapd plugins/ldap-sync/tests/ldap-sync.conf_gssapi_slapd plugins/ldap-sync/tests/ldap-sync.conf_login_nsslapd plugins/ldap-sync/tests/ldap-sync.conf_login_slapd plugins/ldap-sync/tests/ldap-sync.conf_ns-slapd_example plugins/ldap-sync/tests/ldap-sync.conf_ntlm_nsslapd plugins/ldap-sync/tests/ldap-sync.conf_ntlm_slapd plugins/ldap-sync/tests/ldap-sync.conf_plain_nsslapd plugins/ldap-sync/tests/ldap-sync.conf_plain_slapd plugins/ldap-sync/tests/ldap-sync.conf_simple_nsslapd plugins/ldap-sync/tests/ldap-sync.conf_simple_slapd plugins/ldap-sync/tests/ldap-sync.conf_slapd_example plugins/ldap-sync/tests/test.conf Modified: plugins/ldap-sync/tests/CMakeLists.txt ============================================================================== --- plugins/ldap-sync/tests/CMakeLists.txt Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/CMakeLists.txt Tue Jan 5 19:53:23 2010 (r5973) @@ -406,7 +406,7 @@ ADD_TEST( mozldap_auth_digest_md5_slapd ${TESTDIR}/check_mozldap_auth "AUTH_MOZLDAP_DIGEST_MD5_SLAPD" ) - # ADD_TEST( mozldap_auth_cram_md5_slapd ${TESTDIR}/check_mozldap_auth "AUTH_MOZLDAP_CRAM_MD5_SLAPD" ) + ADD_TEST( mozldap_auth_cram_md5_slapd ${TESTDIR}/check_mozldap_auth "AUTH_MOZLDAP_CRAM_MD5_SLAPD" ) ADD_TEST( mozldap_auth_ntlm_slapd ${TESTDIR}/check_mozldap_auth "AUTH_MOZLDAP_NTLM_SLAPD" ) @@ -431,6 +431,10 @@ ADD_TEST( mozldap_auth_gssapi_nsslapd ${TESTDIR}/check_mozldap_auth "AUTH_MOZLDAP_GSSAPI_NSSLAPD" ) + ADD_TEST( mozldap_auth_external1_nsslapd ${TESTDIR}/check_mozldap_auth "AUTH_MOZLDAP_EXTERNAL1_NSSLAPD" ) + + ADD_TEST( mozldap_auth_external2_nsslapd ${TESTDIR}/check_mozldap_auth "AUTH_MOZLDAP_EXTERNAL2_NSSLAPD" ) + ENDIF (RUN_AUTH_TESTS) @@ -582,9 +586,9 @@ ADD_TEST( plugin_auth_gssapi_nsslapd ${TESTDIR}/check_plugin_auth "plugin_auth_simple_slapd" ${CMAKE_BINARY_DIR} "${CMAKE_SOURCE_DIR}/tests/ldap-sync.conf_gssapi_nsslapd" ) - # ADD_TEST( plugin_auth_external1_nsslapd ${TESTDIR}/check_plugin_auth "plugin_auth_simple_slapd" ${CMAKE_BINARY_DIR} "${CMAKE_SOURCE_DIR}/tests/ldap-sync.conf_external1_nsslapd" ) + ADD_TEST( plugin_auth_external1_nsslapd ${TESTDIR}/check_plugin_auth "plugin_auth_simple_slapd" ${CMAKE_BINARY_DIR} "${CMAKE_SOURCE_DIR}/tests/ldap-sync.conf_external1_nsslapd" ) - # ADD_TEST( plugin_auth_external2_nsslapd ${TESTDIR}/check_plugin_auth "plugin_auth_simple_slapd" ${CMAKE_BINARY_DIR} "${CMAKE_SOURCE_DIR}/tests/ldap-sync.conf_external2_nsslapd" ) + ADD_TEST( plugin_auth_external2_nsslapd ${TESTDIR}/check_plugin_auth "plugin_auth_simple_slapd" ${CMAKE_BINARY_DIR} "${CMAKE_SOURCE_DIR}/tests/ldap-sync.conf_external2_nsslapd" ) ENDIF (RUN_AUTH_TESTS) Modified: plugins/ldap-sync/tests/ldap-sync.conf ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf Tue Jan 5 19:53:23 2010 (r5973) @@ -145,7 +145,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>389</Port> <Protocol>ldap</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_cram_md5_nsslapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_cram_md5_nsslapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_cram_md5_nsslapd Tue Jan 5 19:53:23 2010 (r5973) @@ -145,7 +145,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>3890</Port> <Protocol>ldap</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_cram_md5_slapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_cram_md5_slapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_cram_md5_slapd Tue Jan 5 19:53:23 2010 (r5973) @@ -145,7 +145,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>389</Port> <Protocol>ldap</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_digest_md5_nsslapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_digest_md5_nsslapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_digest_md5_nsslapd Tue Jan 5 19:53:23 2010 (r5973) @@ -145,7 +145,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>3890</Port> <Protocol>ldap</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_digest_md5_slapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_digest_md5_slapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_digest_md5_slapd Tue Jan 5 19:53:23 2010 (r5973) @@ -145,7 +145,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>389</Port> <Protocol>ldap</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_external1_nsslapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_external1_nsslapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_external1_nsslapd Tue Jan 5 19:53:23 2010 (r5973) @@ -160,7 +160,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>jl2.example.com</Address> + <Address>192.168.1.2</Address> <Port>6360</Port> <Protocol>ldaps</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_external1_slapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_external1_slapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_external1_slapd Tue Jan 5 19:53:23 2010 (r5973) @@ -160,7 +160,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>636</Port> <Protocol>ldaps</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_external2_nsslapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_external2_nsslapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_external2_nsslapd Tue Jan 5 19:53:23 2010 (r5973) @@ -160,7 +160,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>jl2.example.com</Address> + <Address>192.168.1.2</Address> <Port>3890</Port> <Protocol>ldap</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_external2_slapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_external2_slapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_external2_slapd Tue Jan 5 19:53:23 2010 (r5973) @@ -160,7 +160,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>389</Port> <Protocol>ldap</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_gssapi_nsslapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_gssapi_nsslapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_gssapi_nsslapd Tue Jan 5 19:53:23 2010 (r5973) @@ -160,7 +160,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>3890</Port> <Protocol>ldap</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_gssapi_slapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_gssapi_slapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_gssapi_slapd Tue Jan 5 19:53:23 2010 (r5973) @@ -160,7 +160,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>389</Port> <Protocol>ldap</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_login_nsslapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_login_nsslapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_login_nsslapd Tue Jan 5 19:53:23 2010 (r5973) @@ -145,7 +145,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>6360</Port> <Protocol>ldaps</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_login_slapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_login_slapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_login_slapd Tue Jan 5 19:53:23 2010 (r5973) @@ -145,7 +145,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>636</Port> <Protocol>ldaps</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_ns-slapd_example ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_ns-slapd_example Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_ns-slapd_example Tue Jan 5 19:53:23 2010 (r5973) @@ -145,7 +145,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>3890</Port> <Protocol>ldap</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_ntlm_nsslapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_ntlm_nsslapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_ntlm_nsslapd Tue Jan 5 19:53:23 2010 (r5973) @@ -145,7 +145,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>3890</Port> <Protocol>ldap</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_ntlm_slapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_ntlm_slapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_ntlm_slapd Tue Jan 5 19:53:23 2010 (r5973) @@ -159,7 +159,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>389</Port> <Protocol>ldap</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_plain_nsslapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_plain_nsslapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_plain_nsslapd Tue Jan 5 19:53:23 2010 (r5973) @@ -145,7 +145,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>6360</Port> <Protocol>ldaps</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_plain_slapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_plain_slapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_plain_slapd Tue Jan 5 19:53:23 2010 (r5973) @@ -145,7 +145,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>636</Port> <Protocol>ldaps</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_simple_nsslapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_simple_nsslapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_simple_nsslapd Tue Jan 5 19:53:23 2010 (r5973) @@ -145,7 +145,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>3890</Port> <Protocol>ldap</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_simple_slapd ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_simple_slapd Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_simple_slapd Tue Jan 5 19:53:23 2010 (r5973) @@ -145,7 +145,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>389</Port> <Protocol>ldap</Protocol> </Network> Modified: plugins/ldap-sync/tests/ldap-sync.conf_slapd_example ============================================================================== --- plugins/ldap-sync/tests/ldap-sync.conf_slapd_example Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/ldap-sync.conf_slapd_example Tue Jan 5 19:53:23 2010 (r5973) @@ -145,7 +145,7 @@ <Connection> <ActiveConnection>Network</ActiveConnection> <Network> - <Address>localhost</Address> + <Address>192.168.1.2</Address> <Port>389</Port> <Protocol>ldap</Protocol> </Network> Modified: plugins/ldap-sync/tests/test.conf ============================================================================== --- plugins/ldap-sync/tests/test.conf Tue Jan 5 14:31:28 2010 (r5972) +++ plugins/ldap-sync/tests/test.conf Tue Jan 5 19:53:23 2010 (r5973) @@ -5,58 +5,62 @@ # CFG="/home/user1/.opensync/group2/2/ldap-sync.conf" # +export LDAP_SERVER="192.168.1.2" ############ # How do you intend to authenticate against the LDAP server: # The AUTH variable is used for the command lines tools ldapsearch, # ldapadd etc. only. It is NOT used for the ldap-sync plugin of libopensync. ### Examples for slapd from openldap for the ldap utilities from openldap: ### #AUTH="-Y DIGEST-MD5 -U ldap_user -w secret -Q" -AUTH="-Y GSSAPI -Q" +AUTH="-h ${LDAP_SERVER} -Y GSSAPI -Q" ### Example for ns-slapd from the fedora directory server for the ldap ### utilities from openldap: ### -#AUTH="-x -D cn=ldap_user,ou=People,dc=example,dc=com -w secret -h localhost -p 3890" +#AUTH="-x -D cn=ldap_user,ou=People,dc=example,dc=com -w secret -h ${LDAP_SERVER} -p 3890" ######################### # Only, if you write: cmake ... -DRUN_AUTH_TESTS=on .. -AUTH_OPENLDAP_SIMPLE_SLAPD='-x -D "cn=ldap_user,ou=people,dc=example,dc=com" -w secret -h localhost -p 389' -AUTH_OPENLDAP_DIGEST_MD5_SLAPD='-Y DIGEST-MD5 -U "ldap_user" -w secret -h localhost -p 389' -AUTH_OPENLDAP_CRAM_MD5_SLAPD='-Y CRAM-MD5 -U "ldap_user" -w secret -h localhost -p 389' -AUTH_OPENLDAP_NTLM_SLAPD='-Y NTLM -U "ldap_user" -w secret -h localhost -p 389' -AUTH_OPENLDAP_LOGIN_SLAPD='-ZZ -Y LOGIN -U "ldap_user" -w secret -h localhost -p 389' -AUTH_OPENLDAP_PLAIN_SLAPD='-ZZ -Y PLAIN -U "ldap_user" -w secret -h localhost -p 389' -AUTH_OPENLDAP_GSSAPI_SLAPD='-Y GSSAPI -h localhost -p 389' +AUTH_OPENLDAP_SIMPLE_SLAPD='-x -D "cn=ldap_user,ou=people,dc=example,dc=com" -w secret -h ${LDAP_SERVER} -p 389' +AUTH_OPENLDAP_DIGEST_MD5_SLAPD='-Y DIGEST-MD5 -U "ldap_user" -w secret -h ${LDAP_SERVER} -p 389' +AUTH_OPENLDAP_CRAM_MD5_SLAPD='-Y CRAM-MD5 -U "ldap_user" -w secret -h ${LDAP_SERVER} -p 389' +AUTH_OPENLDAP_NTLM_SLAPD='-Y NTLM -U "ldap_user" -w secret -h ${LDAP_SERVER} -p 389' +AUTH_OPENLDAP_LOGIN_SLAPD='-ZZ -Y LOGIN -U "ldap_user" -w secret -h ${LDAP_SERVER} -p 389' +AUTH_OPENLDAP_PLAIN_SLAPD='-ZZ -Y PLAIN -U "ldap_user" -w secret -h ${LDAP_SERVER} -p 389' +AUTH_OPENLDAP_GSSAPI_SLAPD='-Y GSSAPI -h ${LDAP_SERVER} -p 389' # This is LDAP over SSL/TLS: -AUTH_OPENLDAP_EXTERNAL1_SLAPD='-Y EXTERNAL -H "ldaps://localhost:636"' +AUTH_OPENLDAP_EXTERNAL1_SLAPD='-Y EXTERNAL -H "ldaps://${LDAP_SERVER}:636"' # This is TLS from inside LDAP, also known by the term "STARTTLS": -AUTH_OPENLDAP_EXTERNAL2_SLAPD='-Y EXTERNAL -ZZ -h jl2.example.com -p 389' +AUTH_OPENLDAP_EXTERNAL2_SLAPD='-Y EXTERNAL -ZZ -h ${LDAP_SERVER} -p 389' -AUTH_OPENLDAP_SIMPLE_NSSLAPD='-x -D "cn=ldap_user,ou=People,dc=example,dc=com" -w secret -h localhost -p 3890' -AUTH_OPENLDAP_DIGEST_MD5_NSSLAPD='-Y DIGEST-MD5 -h localhost -p 3890 -U "ldap_user" -w "secret"' -AUTH_OPENLDAP_CRAM_MD5_NSSLAPD='-Y CRAM-MD5 -h localhost -p 3890 -U "ldap_user" -w "secret"' -AUTH_OPENLDAP_NTLM_NSSLAPD='-Y NTLM -h localhost -p 3890 -U "ldap_user" -w "secret"' -AUTH_OPENLDAP_GSSAPI_NSSLAPD='-Y GSSAPI -h localhost -p 3890' +AUTH_OPENLDAP_SIMPLE_NSSLAPD='-x -D "cn=ldap_user,ou=People,dc=example,dc=com" -w secret -h ${LDAP_SERVER} -p 3890' +AUTH_OPENLDAP_DIGEST_MD5_NSSLAPD='-Y DIGEST-MD5 -h ${LDAP_SERVER} -p 3890 -U "ldap_user" -w "secret"' +AUTH_OPENLDAP_CRAM_MD5_NSSLAPD='-Y CRAM-MD5 -h ${LDAP_SERVER} -p 3890 -U "ldap_user" -w "secret"' +AUTH_OPENLDAP_NTLM_NSSLAPD='-Y NTLM -h ${LDAP_SERVER} -p 3890 -U "ldap_user" -w "secret"' +AUTH_OPENLDAP_GSSAPI_NSSLAPD='-Y GSSAPI -h ${LDAP_SERVER} -p 3890' -AUTH_MOZLDAP_SIMPLE_SLAPD='-D "cn=ldap_user,ou=people,dc=example,dc=com" -w secret -h localhost -p 389' -AUTH_MOZLDAP_DIGEST_MD5_SLAPD='-o "mech=DIGEST-MD5" -o "authid=ldap_user" -w secret -h localhost -p 389' -AUTH_MOZLDAP_CRAM_MD5_SLAPD='-o "mech=CRAM-MD5" -o "authid=ldap_user" -w secret -h localhost -p 389' -AUTH_MOZLDAP_NTLM_SLAPD='-o "mech=NTLM" -o "authid=ldap_user" -w secret -h localhost -p 389' -AUTH_MOZLDAP_LOGIN_SLAPD='-ZZZ -o "mech=LOGIN" -h localhost -p 389 -P /etc/dirsrv/slapd-jl2 -N "Client-Cert" -K /etc/dirsrv/slapd-jl2 -W "" -o "authid=ldap_user" -w "secret"' -AUTH_MOZLDAP_PLAIN_SLAPD='-ZZZ -o "mech=PLAIN" -h localhost -p 389 -P /etc/dirsrv/slapd-jl2 -N "Client-Cert" -K /etc/dirsrv/slapd-jl2 -W "" -o "authid=ldap_user" -w "secret"' -AUTH_MOZLDAP_GSSAPI_SLAPD='-h jl2.example.com -p 389 -o "mech=GSSAPI" -o "realm=example.com" -s base -b "ou=addressbook,dc=example,dc=com"' +AUTH_MOZLDAP_SIMPLE_SLAPD='-D "cn=ldap_user,ou=people,dc=example,dc=com" -w secret -h ${LDAP_SERVER} -p 389' +AUTH_MOZLDAP_DIGEST_MD5_SLAPD='-o "mech=DIGEST-MD5" -o "authid=ldap_user" -w secret -h ${LDAP_SERVER} -p 389' +AUTH_MOZLDAP_CRAM_MD5_SLAPD='-o "mech=CRAM-MD5" -o "authid=ldap_user" -w secret -h ${LDAP_SERVER} -p 389' +AUTH_MOZLDAP_NTLM_SLAPD='-o "mech=NTLM" -o "authid=ldap_user" -w secret -h ${LDAP_SERVER} -p 389' +AUTH_MOZLDAP_LOGIN_SLAPD='-ZZZ -o "mech=LOGIN" -h ${LDAP_SERVER} -p 389 -P /etc/dirsrv/slapd-jl2 -N "Client-Cert" -K /etc/dirsrv/slapd-jl2 -W "" -o "authid=ldap_user" -w "secret"' +AUTH_MOZLDAP_PLAIN_SLAPD='-ZZZ -o "mech=PLAIN" -h ${LDAP_SERVER} -p 389 -P /etc/dirsrv/slapd-jl2 -N "Client-Cert" -K /etc/dirsrv/slapd-jl2 -W "" -o "authid=ldap_user" -w "secret"' +AUTH_MOZLDAP_GSSAPI_SLAPD='-h ${LDAP_SERVER} -p 389 -o "mech=GSSAPI" -o "realm=example.com" -s base -b "ou=addressbook,dc=example,dc=com"' -AUTH_MOZLDAP_SIMPLE_NSSLAPD='-D "cn=ldap_user,ou=People,dc=example,dc=com" -w secret -h localhost -p 3890' -AUTH_MOZLDAP_DIGEST_MD5_NSSLAPD='-h localhost -p 3890 -o "mech=DIGEST-MD5" -o "authid=ldap_user" -w secret' -AUTH_MOZLDAP_CRAM_MD5_NSSLAPD='-h localhost -p 3890 -o "mech=CRAM-MD5" -o "authid=ldap_user" -w secret' -AUTH_MOZLDAP_NTLM_NSSLAPD='-h localhost -p 3890 -o "mech=NTLM" -o "authid=ldap_user" -w secret' -AUTH_MOZLDAP_LOGIN_NSSLAPD='-Z -h localhost -p 6360 -o "mech=LOGIN" -o "authid=ldap_user" -w secret' -AUTH_MOZLDAP_PLAIN_NSSLAPD='-Z -h localhost -p 6360 -o "mech=PLAIN" -o "authid=ldap_user" -w secret' -AUTH_MOZLDAP_GSSAPI_NSSLAPD='-h jl2.example.com -p 3890 -o "mech=GSSAPI" -o "realm=example.com" -s base -b "ou=addressbook,dc=example,dc=com"' - +AUTH_MOZLDAP_SIMPLE_NSSLAPD='-D "cn=ldap_user,ou=People,dc=example,dc=com" -w secret -h ${LDAP_SERVER} -p 3890' +AUTH_MOZLDAP_DIGEST_MD5_NSSLAPD='-h ${LDAP_SERVER} -p 3890 -o "mech=DIGEST-MD5" -o "authid=ldap_user" -w secret' +AUTH_MOZLDAP_CRAM_MD5_NSSLAPD='-h ${LDAP_SERVER} -p 3890 -o "mech=CRAM-MD5" -o "authid=ldap_user" -w secret' +AUTH_MOZLDAP_NTLM_NSSLAPD='-h ${LDAP_SERVER} -p 3890 -o "mech=NTLM" -o "authid=ldap_user" -w secret' +AUTH_MOZLDAP_LOGIN_NSSLAPD='-Z -h ${LDAP_SERVER} -p 6360 -o "mech=LOGIN" -o "authid=ldap_user" -w secret' +AUTH_MOZLDAP_PLAIN_NSSLAPD='-Z -h ${LDAP_SERVER} -p 6360 -o "mech=PLAIN" -o "authid=ldap_user" -w secret' +AUTH_MOZLDAP_GSSAPI_NSSLAPD='-h ${LDAP_SERVER} -p 3890 -o "mech=GSSAPI" -o "realm=example.com" -s base -b "ou=addressbook,dc=example,dc=com"' +# This is LDAP over SSL/TLS: +AUTH_MOZLDAP_EXTERNAL1_NSSLAPD='-Z -h ${LDAP_SERVER} -p 6360 -P ~/.netscape -N "ldap_user" -W "secret" -1 -b "dc=example,dc=com" -s base ""' +# This is TLS from inside LDAP ("STARTTLS"): +AUTH_MOZLDAP_EXTERNAL2_NSSLAPD='-ZZZ -h ${LDAP_SERVER} -p 3890 -P ~/.netscape -N "ldap_user" -W "secret" -1 -b "dc=example,dc=com" -s base ""' BASE_CONTACT="ou=addressbook,dc=example,dc=com" |