Changeset a6005da for conf.c


Ignore:
Timestamp:
2016-03-25T18:07:53Z (3 years ago)
Author:
Dennis Kaarsemaker <dennis@…>
Branches:
master
Children:
50bb490
Parents:
8e6ecfe
git-author:
Dennis Kaarsemaker <dennis@…> (23-02-16 18:52:32)
git-committer:
Dennis Kaarsemaker <dennis@…> (25-03-16 18:07:53)
Message:

Linux pam authentication backend

This backend authenticates users against pam.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • conf.c

    r8e6ecfe ra6005da  
    245245                                if (g_strcasecmp(ini->value, "storage") == 0) {
    246246                                        conf->auth_backend = NULL;
     247                                } else if (g_strcasecmp(ini->value, "pam") == 0) {
     248                                        g_free(conf->auth_backend);
     249                                        conf->auth_backend = g_strdup(ini->value);
    247250                                } else {
    248251                                        fprintf(stderr, "Invalid %s value: %s\n", ini->key, ini->value);
Note: See TracChangeset for help on using the changeset viewer.