96 user->hashlen = util_base64decode(hash.ptr, hash.length, user->hash); |
96 user->hashlen = util_base64decode(hash.ptr, hash.length, user->hash); |
97 |
97 |
98 user->groups = calloc(ngroups, sizeof(sstr_t)); |
98 user->groups = calloc(ngroups, sizeof(sstr_t)); |
99 for(int i=0;i<ngroups;i++) { |
99 for(int i=0;i<ngroups;i++) { |
100 user->groups[i] = sstrdup(groups[i]); |
100 user->groups[i] = sstrdup(groups[i]); |
101 //sstrdup(groups[i]); // wtf? |
|
102 } |
101 } |
103 |
102 |
104 // add to keyfile |
103 // add to keyfile |
105 ucx_map_sstr_put(keyfile->users, name, user); |
104 ucx_map_sstr_put(keyfile->users, name, user); |
106 } |
105 } |