Changeset 50bb490
- Timestamp:
- 2016-03-25T18:07:53Z (9 years ago)
- Branches:
- master
- Children:
- 64b4263
- Parents:
- a6005da
- git-author:
- Dennis Kaarsemaker <dennis@…> (23-02-16 19:14:57)
- git-committer:
- Dennis Kaarsemaker <dennis@…> (25-03-16 18:07:53)
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
.travis.yml
ra6005da r50bb490 3 3 4 4 script: 5 - ./configure --pam=1 5 - ./configure --pam=1 --ldap=1 6 6 - make check 7 7 - BITLBEE_SKYPE=plugin dpkg-buildpackage -uc -us -d … … 30 30 - check 31 31 - libpam0g-dev 32 - libldap2-dev 32 33 coverity_scan: 33 34 project: … … 35 36 description: "An IRC to other chat networks gateway" 36 37 notification_email: dx@dxzone.com.ar 37 build_command_prepend: ./configure --otr=1 --debug=1 --pam=1 38 build_command_prepend: ./configure --otr=1 --debug=1 --pam=1 --ldap=1 38 39 build_command: make 39 40 branch_pattern: coverity_scan -
auth.c
ra6005da r50bb490 4 4 #ifdef WITH_PAM 5 5 extern auth_backend_t auth_pam; 6 #endif 7 #ifdef WITH_LDAP 8 extern auth_backend_t auth_ldap; 6 9 #endif 7 10 … … 13 16 gl = g_list_append(gl, &auth_pam); 14 17 if (backend && !strcmp(backend, "pam")) { 18 ok = 1; 19 } 20 #endif 21 #ifdef WITH_LDAP 22 gl = g_list_append(gl, &auth_ldap); 23 if (backend && !strcmp(backend, "ldap")) { 15 24 ok = 1; 16 25 } -
bitlbee.conf
ra6005da r50bb490 66 66 ## - storage (internal storage) 67 67 ## - pam (Linux PAM authentication) 68 ## - ldap (LDAP server configured in the openldap settings) 68 69 # 69 70 # AuthBackend = storage -
conf.c
ra6005da r50bb490 245 245 if (g_strcasecmp(ini->value, "storage") == 0) { 246 246 conf->auth_backend = NULL; 247 } else if (g_strcasecmp(ini->value, "pam") == 0) { 247 } else if (g_strcasecmp(ini->value, "pam") == 0 || 248 g_strcasecmp(ini->value, "ldap") == 0) { 248 249 g_free(conf->auth_backend); 249 250 conf->auth_backend = g_strdup(ini->value); -
configure
ra6005da r50bb490 53 53 54 54 pam=0 55 ldap=0 55 56 56 57 pie=1 … … 137 138 138 139 --pam=0/1 Disable/enable PAM authentication $pam 140 --ldap=0/1 Disable/enable LDAP authentication $ldap 139 141 140 142 --doc=0/1 Disable/enable help.txt generation $doc … … 645 647 authobjs=$authobjs'auth_pam.o ' 646 648 authlibs=$authlibs'-lpam ' 649 fi 650 if [ "$ldap" = 0 ]; then 651 echo '#undef WITH_LDAP' >> config.h 652 else 653 if ! echo '#include <ldap.h>' | $CC -E - >/dev/null 2>/dev/null; then 654 echo 'Cannot find libldap development libraries, aborting. (Install libldap2-dev?)' 655 exit 1 656 fi 657 echo '#define WITH_LDAP' >> config.h 658 authobjs=$authobjs'auth_ldap.o ' 659 authlibs=$authlibs'-lldap ' 647 660 fi 648 661 echo AUTH_OBJS=$authobjs >> Makefile.settings -
tests/Makefile
ra6005da r50bb490 15 15 distclean: clean 16 16 17 main_objs = bitlbee.o conf.o dcc.o help.o ipc.o irc.o irc_cap.o irc_channel.o irc_commands.o irc_im.o irc_send.o irc_user.o irc_util.o irc_commands.o log.o nick.o query.o root_commands.o set.o storage.o storage_xml.o auth.o auth_pam.o 17 main_objs = bitlbee.o conf.o dcc.o help.o ipc.o irc.o irc_cap.o irc_channel.o irc_commands.o irc_im.o irc_send.o irc_user.o irc_util.o irc_commands.o log.o nick.o query.o root_commands.o set.o storage.o storage_xml.o auth.o auth_pam.o auth_ldap.o 18 18 19 19 test_objs = check.o check_util.o check_nick.o check_md5.o check_arc.o check_irc.o check_help.o check_user.o check_set.o check_jabber_sasl.o check_jabber_util.o
Note: See TracChangeset
for help on using the changeset viewer.