make parametic options case insensitive
authorAndrew Tridgell <tridge@samba.org>
Wed, 25 Jun 2008 11:27:17 +0000 (21:27 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 25 Jun 2008 11:40:53 +0000 (21:40 +1000)
This is needed as some options are uppercased internally in Samba, such as the idmap config option
Without this change it is not possible to set these options via net conf which lowercases options
(This used to be commit c10aad9f136b7c2ef4809fd8558013ab2ee40cf6)

source3/param/loadparm.c

index 8f6af683256e1f8b3307b45c9d7ec4a21b2e501c..9698feb06097f15693f1e9df740900f6c8427432 100644 (file)
@@ -5380,7 +5380,7 @@ static param_opt_struct *get_parametrics(int snum, const char *type, const char
        }
 
        while (data) {
-               if (strcmp(data->key, param_key) == 0) {
+               if (strcasecmp(data->key, param_key) == 0) {
                        string_free(&param_key);
                        return data;
                }