diff --git a/mlmmj-ldap-sync b/mlmmj-ldap-sync index 3c98a36..baa3372 100755 --- a/mlmmj-ldap-sync +++ b/mlmmj-ldap-sync @@ -142,7 +142,8 @@ end def main # Parse configuration, bind to LDAP server - @configuration = read_configuration(@configuration_file) + configuration_file = ARGV[0] ? ARGV[0] : @configuration_file + @configuration = read_configuration(configuration_file) conn = connect_ldap domain = @configuration['domain']