diff --git a/mlmmj-ldap-sync b/mlmmj-ldap-sync index c114256..6f375b7 100755 --- a/mlmmj-ldap-sync +++ b/mlmmj-ldap-sync @@ -119,7 +119,10 @@ def sync_list(list_name, ldap_group_entry, ldap_conn) if matched_ldap_users.nil? || matched_ldap_users.empty? "" else - matched_ldap_users.first.mail.first + user = matched_ldap_users.first + address = mail.first # 'mail' is an array for some reason. + + address end end