Remove ldapjs from active-entry

This commit is contained in:
Erik Ziegler 2017-04-21 18:57:35 +02:00
parent 111e084883
commit c386b91826
3 changed files with 2 additions and 2 deletions

View File

@ -51,6 +51,7 @@ if (Meteor.isClient) {
}
if (Meteor.isServer) {
LDAP_DEFAULTS = {};
LDAP_DEFAULTS.url = Meteor.settings.ldap && Meteor.settings.ldap.url;
LDAP_DEFAULTS.port = Meteor.settings.ldap && Meteor.settings.ldap.port;
}

View File

@ -26,7 +26,6 @@ Package.onUse(function (api) {
api.use([
'zuuk:stale-session@1.0.8',
'typ:accounts-ldap',
'random'
], ['client', 'server']);

View File

@ -154,7 +154,7 @@ Meteor.methods({
},
isLDAPSet: function() {
if (LDAP_DEFAULTS.url && LDAP_DEFAULTS.port) {
if (LDAP_DEFAULTS && LDAP_DEFAULTS.url && LDAP_DEFAULTS.port) {
return true;
}