1
2006-05-01 Miloslav Trmac <mitr@redhat.com>
3
* configure.in: Version 0.54.6.
4
* Makefile.am (lib_libuser_la_LDFLAGS): Update revision.
7
* apps/lchsh.c (main): Provide a more verbose error message.
9
* apps/apputil.c (lu_homedir_copy): Split from lu_homedir_populate.
11
(lu_homedir_populate): New parameter ctx. Default skeleton to
12
defaults/skeleton. All users updated to pass NULL instead of reading
14
* apps/apputil.h (lu_homedir_populate): Update prototype.
15
* python/admin.c (libuser_admin_add_user): New keyword parameter
17
* python/modules.txt: Document new addUser parameter.
19
2006-03-12 Miloslav Trmac <mitr@redhat.com>
21
* modules/ldap.c (get_ent_mods): Remove unused parameter module.
23
* lib/getdate.y: Quiesce some warnings.
25
* lib/config.c (read_file): Make type conversion explicit, assuming
26
sizeof (off_t) >= sizeof (size_t).
28
2006-03-06 Miloslav Trmac <mitr@redhat.com>
30
* python/admin.c (libuser_admin_enumerate_users)
31
(libuser_admin_enumerate_groups)
32
(libuser_admin_enumerate_users_by_group)
33
(libuser_admin_enumerate_groups_by_user): Don't attempt to
34
g_value_array_free(NULL).
36
* lib/user.c (extract_id, extract_name): Don't warn if the attribute
37
has no value, leave it to the caller.
38
(lu_refresh_int): Don't unnecessarily call extract_id(). Don't attempt
39
to refresh an entity without name.
40
(convert_user_name_to_id, convert_group_name_to_id): Report errors
41
when the entity can't be found or has no ID.
42
(ent_has_name_and_id): New function.
43
(lu_dispatch): Report more detailed errors on insufficiently filled
44
entities, also fixing a memory leak. Use constants for unused sdata,
47
* lib/user.c (lu_dispatch): Use g_assert_not_reached().
49
* apps/lid.c (do_id): Report lookup error. Exit with status 1 on
52
* apps/lchsh.c (main): Report error on prompting. Exit with status 1
55
* apps/lchfn.c (main): Exit with status 1 on error.
57
* apps/apputil.c (lu_mailspool_create_remove): Fix memory leak.
59
2006-03-05 Miloslav Trmac <mitr@redhat.com>
61
* modules/files.c (parse_generic): Fix crash if the last field is
64
(lu_files_enumerate_full): Don't return empty data if the input line is
65
invalid. Match only the user name against the supplied pattern.
66
* tests/files_test.py (Tests.testUsersEnumerateFull3)
67
(Tests.testGroupsEnumerateFull3): New tests.
69
2006-02-21 Miloslav Trmac <mitr@redhat.com>
71
* lib/getdate.y: Add missing #include. Define YYENABLE_NLS to avoid
74
* configure.in: Version 0.54.5.
77
* configure.in: Use newer gettext.
79
* docs/libuser.conf.5.in: Remove @pkglibdir@ references to avoid
81
* docs/Makefile.am (libuser.conf.5): Stop replacing @pkglibdir@.
83
* modules/sasldb.c (lu_sasldb_close_module): Fix invalid aliasing.
85
2006-02-13 Miloslav Trmac <mitr@redhat.com>
89
* configure.in: Version 0.54.4.
91
* Makefile.am (lib_libuser_la_LDFLAGS): Update revision.
93
2006-01-31 Miloslav Trmac <mitr@redhat.com>
95
* configure.in (WITH_PYTHON): New conditional.
96
* Makefile.am (pyexec_LTLIBRARIES, pyexec_LTLIBRARIES): Only use if
98
Based on a patch by Dan Yefimov <dan@ns15.lightwave.net.ru>.
100
* lib/scache.c (get_keys): Fix C99-ism, patch by Dan Yefimov
101
<dan@ns15.lightwave.net.ru>.
103
2005-12-20 Miloslav Trmac <mitr@redhat.com>
105
* po/LINGUAS: Add hy, sr and sr@Latn.
107
2005-12-02 Miloslav Trmac <mitr@redhat.com>
109
* configure.in: Version 0.54.3.
112
* apps/lpasswd.c (main): Determine user name before attempting to
113
autenticate a NULL user.
115
2005-11-12 Miloslav Trmac <mitr@redhat.com>
117
* modules/krb5.c (lu_krb5_user_add)
118
* modules/ldap.c (lu_ldap_handle_lock, lu_ldap_setpass): Use
119
g_str_has_prefix () where appropriate.
121
2005-11-11 Miloslav Trmac <mitr@redhat.com>
123
* configure.in: Version 0.54.2.
125
* Makefile.am (lib_libuser_la_LDFLAGS): Update revision.
127
* modules/ldap.c (close_server, connect_server, bind_server)
128
(lu_ldap_ent_to_dn, lu_ldap_lookup, lu_ldap_fudge_objectclasses)
129
(lu_ldap_is_locked, lu_ldap_setpass, lu_ldap_user_enumerate): Avoid
130
functions deprecated by openldap.
131
(objectclass_present, lu_ldap_needed_objectclasses): Use BerValue's
132
instead of strings. All callers updated.
133
(free_needed_objectclasses): New function.
134
* configure.in: Remove checks for no longer used deprecated openldap
137
(lu_ldap_close_module): Use close_server ().
138
(lu_ldap_set, lu_ldap_del, lu_ldap_handle_lock, lu_ldap_is_locked)
139
(lu_ldap_setpass, connect_server, bind_server): Replace empty LDAP
140
control vectors by NULL.
142
2005-10-11 Miloslav Trmac <mitr@redhat.com>
144
* configure.in: Version 0.54.1.
145
* Makefile.am (lib_libuser_la_LDFLAGS): Update revision.
147
* libuser.pc.in (Requires)
148
* configure.in: Use gmodule-no-export-2.0.
150
* libuser.conf: Rename from libuser.conf.in, hardcode @sysconfdir@ to
152
* Makefile.am: Ship libuser.conf instead of libuser.conf.in.
154
* libuser.conf.in: Update to import values from shadow where possible.
158
2005-10-10 Miloslav Trmac <mitr@redhat.com>
160
* tests/config_default_useradd, testes/config_import.conf.in,
161
tests/config_login.defs, tests/config_override.conf.in: New files.
162
* tests/config_test.sh: Generate three config files, pass $workdir
163
to config_test instead of setting LIBUSER_CONF.
164
* tests/config_test.c (start): Split from main (). Set LIBUSER_CONF.
165
(verify_var): Abstract from main ().
166
(main): Test configuration import from shadow.
167
* Makefile.am (EXTRA_DIST): Distribute the new test components.
169
* lib/config.c (handle_login_defs_key): Fix pasto. Don't use the first
170
member of conv[] over and over.
172
2005-10-09 Miloslav Trmac <mitr@redhat.com>
174
* Most functions: Move variables to inntermost scope, remove
175
unnecessary initializers.
177
* modules/ldap.c (struct lu_ldap_context): New members user_branch,
179
(libuser_ldap_init): Initialize user_branch, group_branch.
180
(lu_ldap_base, lu_ldap_ent_to_dn, lu_ldap_lookup, lu_ldap_set)
181
(lu_ldap_del, lu_ldap_handle_lock, lu_ldap_is_locked, lu_ldap_setpass)
182
(lu_ldap_enumerate): Replace the configKey and def parameters by
183
branch. All callers changed to use struct lu_ldap_context members.
184
(lu_ldap_ent_to_dn): Rename variable branch to base.
186
(lu_ldap_base): Don't access module before asserting it is non-NULL.
187
Fix checking of empty branch.
188
(lu_ldap_ent_to_dn): Remove unused variable base. Map namingAttr to
190
(libuser_ldap_init): Fix memory leak.
192
* modules/ldap.c (LU_LDAP_USER, LU_LDAP_GROUP, LU_LDAP_SHADOW): Remove.
193
(ldap_attribute_map): Replace applicability by type.
194
(lu_ldap_lookup): Replace applicability by type. All
197
* modules/ldap.c (lu_ldap_base, lu_ldap_lookup, lu_ldap_set)
198
(lu_ldap_del, lu_ldap_handle_lock, lu_ldap_is_locked, lu_ldap_setpass):
199
Remove handling of NULL which can't ever trigger.
201
* modules/ldap.c (lu_ldap_user_lookup_name, lu_ldap_user_lookup_id)
202
(lu_ldap_group_lookup_name, lu_ldap_group_looup_id, getn_ent_adds)
203
(lu_ldap_is_locked, lu_ldap_setpass, lu_ldap_users_enumerate)
204
(lu_ldap_users_enumerate_full, lu_ldap_groups_enumerate)
205
(lu_ldap_groups_enumerate_full, lu_ldap_users_enumerate_by_group)
206
(lu_ldap_gropus_enumerate_by_user): Hardcode constant results
209
* docs/libuser.conf.5.in: New file.
210
* docs/Makefile.am: Ship and install libuser.conf.5.
212
2005-10-07 Miloslav Trmac <mitr@redhat.com>
214
* lib/config.c (destroy_section): Split from lu_cfg_done().
215
(gather_values): Removed function.
216
(lu_cfg_done): Don't build a temporary list of sections to free.
217
(lu_cfg_read_single): Don't unnecessarily cache the default value.
219
* config.c (key_add_cached): Split from lu_cfg_init ().
220
(key_defined, key_add, handle_login_defs_key, import_login_defs)
221
(handle_default_useradd_key, import_default_useradd): New functions.
222
(lu_cfg_init): Handle import/login_defs and import/default_useradd.
224
* configure.in (YACC): New check.
225
* Makefile.am (lib_libuser_la_SOURCES): Add lib/getdate.y.
226
* lib/getdate.y: New file, copied from shadow and made reentrant.
227
* lib/internal.h: Declare lu_get_date (). Remove dependencies on other
230
* lib/modules.c (load_one_module): Split from lu_modules_load.
232
(lu_modules_load): Keep the *modules unchanged on failure.
233
(lu_module_unload): Simplify.
234
* lib/user.c (lu_start): Allocate ctx->scache before lu_cfg_init ().
236
(lu_end): Remove unnecessary NULL checks.
238
* tests/ldap_test: Allow more time for slapd initialization.
240
2005-10-01 Miloslav Trmac <mitr@redhat.com>
242
* lib/config.c (process_line): Cast arguments of isspace () to unsigned
244
* apps/apputil.c: Remove unnecessary #include <ctype.h>.
246
* lib/config.c (process_line): Split from lu_cfg_init ().
247
Handle very large files and EINTR from read (). Fix FD leak on
248
fstat () failure. Don't prezero the buffer.
250
* lib/config.c (process_line): Fix accesses before the allocated
251
array. Add some microoptimizations.
253
2005-09-30 Miloslav Trmac <mitr@redhat.com>
255
* modules/default.-c (salt_initializer_des, salt_initializer_md5)
256
(salt_initializer_blowfish): Remove unnecessary variables, fold values
257
in lu_common_default_salt_specifier ().
259
2005-09-29 Miloslav Trmac <mitr@redhat.com>
261
* modules/files.c (libuser_shadow_init): Avoid useless runtime
264
* modules/files.c (lu_files_uses_elevated_privileges): Hardcode "/etc"
265
as default, like other functions.
266
* Makefile.am (modules_libuser_files_la_CPPFLAGS)
267
(modules_libuser_shadow_la_CPPFLAGS): Don't define SYSCONFDIR.
268
(modules_libuser_files_la_CPPFLAGS): Define SYSCONFDIR directly.
269
(SYSCONFDIR): Remove definition.
271
2005-09-14 Miloslav Trmac <mitr@redhat.com>
273
* apps/apputil.c (lu_authenticate_unprivileged): Correctly handle
274
pam_get_item () failures.
1
276
2005-09-13 Miloslav Trmac <mitr@redhat.com>
3
278
* configure.in: Version 0.54.