~ubuntu-branches/ubuntu/wily/libuser/wily

« back to all changes in this revision

Viewing changes to ChangeLog

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Habouzit
  • Date: 2006-09-03 21:58:15 UTC
  • mto: (2.1.1 edgy) (1.1.5 upstream) (3.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20060903215815-rtvvfzhaer8ymyp4
Tags: upstream-0.54.6-2.1.dfsg.1
ImportĀ upstreamĀ versionĀ 0.54.6-2.1.dfsg.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
2006-05-01  Miloslav Trmac  <mitr@redhat.com>
 
2
 
 
3
        * configure.in: Version 0.54.6.
 
4
        * Makefile.am (lib_libuser_la_LDFLAGS): Update revision.
 
5
        * NEWS: Update.
 
6
 
 
7
        * apps/lchsh.c (main): Provide a more verbose error message.
 
8
 
 
9
        * apps/apputil.c (lu_homedir_copy): Split from lu_homedir_populate.
 
10
        Reformat a bit.
 
11
        (lu_homedir_populate): New parameter ctx.  Default skeleton to
 
12
        defaults/skeleton.  All users updated to pass NULL instead of reading
 
13
        the config value.
 
14
        * apps/apputil.h (lu_homedir_populate): Update prototype.
 
15
        * python/admin.c (libuser_admin_add_user): New keyword parameter
 
16
        "skeleton".
 
17
        * python/modules.txt: Document new addUser parameter.
 
18
 
 
19
2006-03-12  Miloslav Trmac  <mitr@redhat.com>
 
20
 
 
21
        * modules/ldap.c (get_ent_mods): Remove unused parameter module.
 
22
 
 
23
        * lib/getdate.y: Quiesce some warnings.
 
24
 
 
25
        * lib/config.c (read_file): Make type conversion explicit, assuming
 
26
        sizeof (off_t) >= sizeof (size_t).
 
27
 
 
28
2006-03-06  Miloslav Trmac  <mitr@redhat.com>
 
29
 
 
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).
 
35
 
 
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,
 
45
        ldata parameters.
 
46
 
 
47
        * lib/user.c (lu_dispatch): Use g_assert_not_reached().
 
48
 
 
49
        * apps/lid.c (do_id): Report lookup error.  Exit with status 1 on
 
50
        error.
 
51
 
 
52
        * apps/lchsh.c (main): Report error on prompting.  Exit with status 1
 
53
        on error.
 
54
 
 
55
        * apps/lchfn.c (main): Exit with status 1 on error.
 
56
 
 
57
        * apps/apputil.c (lu_mailspool_create_remove): Fix memory leak.
 
58
 
 
59
2006-03-05  Miloslav Trmac  <mitr@redhat.com>
 
60
 
 
61
        * modules/files.c (parse_generic): Fix crash if the last field is
 
62
        empty.
 
63
 
 
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.
 
68
 
 
69
2006-02-21  Miloslav Trmac  <mitr@redhat.com>
 
70
 
 
71
        * lib/getdate.y: Add missing #include.  Define YYENABLE_NLS to avoid
 
72
        -Wundef.
 
73
 
 
74
        * configure.in: Version 0.54.5.
 
75
        * NEWS: Update.
 
76
 
 
77
        * configure.in: Use newer gettext.
 
78
 
 
79
        * docs/libuser.conf.5.in: Remove @pkglibdir@ references to avoid
 
80
        multilib conflicts.
 
81
        * docs/Makefile.am (libuser.conf.5): Stop replacing @pkglibdir@.
 
82
 
 
83
        * modules/sasldb.c (lu_sasldb_close_module): Fix invalid aliasing.
 
84
 
 
85
2006-02-13  Miloslav Trmac  <mitr@redhat.com>
 
86
 
 
87
        * po/LINGUAS: Add my.
 
88
 
 
89
        * configure.in: Version 0.54.4.
 
90
        * NEWS: Update.
 
91
        * Makefile.am (lib_libuser_la_LDFLAGS): Update revision.
 
92
 
 
93
2006-01-31  Miloslav Trmac  <mitr@redhat.com>
 
94
 
 
95
        * configure.in (WITH_PYTHON): New conditional.
 
96
        * Makefile.am (pyexec_LTLIBRARIES, pyexec_LTLIBRARIES): Only use if
 
97
        WITH_PYTHON.
 
98
        Based on a patch by Dan Yefimov <dan@ns15.lightwave.net.ru>.
 
99
 
 
100
        * lib/scache.c (get_keys): Fix C99-ism, patch by Dan Yefimov
 
101
        <dan@ns15.lightwave.net.ru>.
 
102
 
 
103
2005-12-20  Miloslav Trmac  <mitr@redhat.com>
 
104
 
 
105
        * po/LINGUAS: Add hy, sr and sr@Latn.
 
106
 
 
107
2005-12-02  Miloslav Trmac  <mitr@redhat.com>
 
108
 
 
109
        * configure.in: Version 0.54.3.
 
110
        * NEWS: Update.
 
111
 
 
112
        * apps/lpasswd.c (main): Determine user name before attempting to
 
113
        autenticate a NULL user.
 
114
 
 
115
2005-11-12  Miloslav Trmac  <mitr@redhat.com>
 
116
 
 
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.
 
120
 
 
121
2005-11-11  Miloslav Trmac  <mitr@redhat.com>
 
122
 
 
123
        * configure.in: Version 0.54.2.
 
124
        * NEWS: Update.
 
125
        * Makefile.am (lib_libuser_la_LDFLAGS): Update revision.
 
126
 
 
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
 
135
        functions.
 
136
 
 
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.
 
141
 
 
142
2005-10-11  Miloslav Trmac  <mitr@redhat.com>
 
143
 
 
144
        * configure.in: Version 0.54.1.
 
145
        * Makefile.am (lib_libuser_la_LDFLAGS): Update revision.
 
146
 
 
147
        * libuser.pc.in (Requires)
 
148
        * configure.in: Use gmodule-no-export-2.0.
 
149
 
 
150
        * libuser.conf: Rename from libuser.conf.in, hardcode @sysconfdir@ to
 
151
        /etc.
 
152
        * Makefile.am: Ship libuser.conf instead of libuser.conf.in.
 
153
 
 
154
        * libuser.conf.in: Update to import values from shadow where possible.
 
155
 
 
156
        * NEWS: Update.
 
157
 
 
158
2005-10-10  Miloslav Trmac  <mitr@redhat.com>
 
159
 
 
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.
 
168
 
 
169
        * lib/config.c (handle_login_defs_key): Fix pasto.  Don't use the first
 
170
        member of conv[] over and over.
 
171
 
 
172
2005-10-09  Miloslav Trmac  <mitr@redhat.com>
 
173
 
 
174
        * Most functions: Move variables to inntermost scope, remove
 
175
        unnecessary initializers.
 
176
 
 
177
        * modules/ldap.c (struct lu_ldap_context): New members user_branch,
 
178
        group_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.
 
185
 
 
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
 
189
        LDAP only once.
 
190
        (libuser_ldap_init): Fix memory leak.
 
191
 
 
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
 
195
        callers changed.
 
196
 
 
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.
 
200
 
 
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
 
207
        of map_to_ldap ().
 
208
 
 
209
        * docs/libuser.conf.5.in: New file.
 
210
        * docs/Makefile.am: Ship and install libuser.conf.5.
 
211
 
 
212
2005-10-07  Miloslav Trmac  <mitr@redhat.com>
 
213
 
 
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.
 
218
 
 
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.
 
223
 
 
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
 
228
        headers.
 
229
 
 
230
        * lib/modules.c (load_one_module): Split from lu_modules_load.
 
231
        Fix leaks.
 
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 ().
 
235
        Fix leaks.
 
236
        (lu_end): Remove unnecessary NULL checks.
 
237
 
 
238
        * tests/ldap_test: Allow more time for slapd initialization.
 
239
 
 
240
2005-10-01  Miloslav Trmac  <mitr@redhat.com>
 
241
 
 
242
        * lib/config.c (process_line): Cast arguments of isspace () to unsigned
 
243
        char.
 
244
        * apps/apputil.c: Remove unnecessary #include <ctype.h>.
 
245
 
 
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.
 
249
 
 
250
        * lib/config.c (process_line): Fix accesses before the allocated
 
251
        array.  Add some microoptimizations.
 
252
 
 
253
2005-09-30  Miloslav Trmac  <mitr@redhat.com>
 
254
 
 
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 ().
 
258
 
 
259
2005-09-29  Miloslav Trmac  <mitr@redhat.com>
 
260
 
 
261
        * modules/files.c (libuser_shadow_init): Avoid useless runtime
 
262
        computation.
 
263
 
 
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.
 
270
 
 
271
2005-09-14  Miloslav Trmac  <mitr@redhat.com>
 
272
 
 
273
        * apps/apputil.c (lu_authenticate_unprivileged): Correctly handle
 
274
        pam_get_item () failures.
 
275
 
1
276
2005-09-13  Miloslav Trmac  <mitr@redhat.com>
2
277
 
3
278
        * configure.in: Version 0.54.