File Release Notes and Changelog
Notes:
ldap-utils v0.3 added luagroupadd, luagroupdel, which add and delete
groups. Also added the luausermod utility which (hopefully) modifies user
account attributes.
Changes:
2000-11-03 Matthew Rich <mr-blue@users.sourceforge.net>
* src/ldUser.c (ldUser_gen_replace): generates the ldobject, replaces
values in the ldobject instead of adding to them.
* src/ldGroup.c (ldGroup_setdefaults): added ldGroup_setoptions
* src/ldUser.c (ldUser_setdefaults): might help if it actually adds
the userpassword. Fixed ldUser_setoptions and moved the set default
cn, givenname, sn from setoptions back to setdefaults.
2000-11-02 Matthew Rich <mr-blue@users.sourceforge.net>
* src/ldUser.c (ldUser_gen): automatic generation of numerical
ids only occurs if the attribute value is set to the id min. A null
value is skipped.
2000-10-22 Matthew Rich <mr-blue@users.sourceforge.net>
* src/ldUser.c (ldUser_checkattributes): changed to use object_check,
where ldObject checks specified attributes for uniqueness.
2000-10-21 Matthew Rich <mr-blue@users.sourceforge.net>
* src/strutils.c (lua_strappend): (added) appends one string to the
end of a given string, or allocates a new string if NULL. Allows one to
append numerous times to a string.
(lua_strcmp_dn): (fixed) compares two dn strings for equality.
* src/ldObject.h: added check parameter to ldObject_addattribute, for
object attribute checking.
2000-10-10 Matthew Rich <mr-blue@users.sourceforge.net>
* src/ldUser.c (ldUser_setoptions): moved options import code
from ldUser_setdefaults, replaced with a call to setoptions in
setdefaults.
2000-10-09 Matthew Rich <mr-blue@users.sourceforge.net>
* src/ldUser.c (ldUser_gen): added action parameter, specifies the action
that should be taken when generating the ldObject, LDAP_MOD_ADD,
LDAP_MOD_DELETE, or LDAP_MOD_REPLACE.
(ldUser_checkattributes): moved numerical uid/gid generation to ldUser_gen where
it should be.
(ldUser_gen): added pluaApp, pldHost parameter for id gen.
2000-10-02 Matthew Rich <mr-blue@users.sourceforge.net>
* src/ldHost.h (PASSWD_REQUEST_STRING): added define for the password
request string.
* src/ldUser.c (ldUser_free_attribute_search): free ldSrc->base here
instead of in ldUser_attribute_search where it is allocated.
* src/ldNSProfile.c (ldNSProfile_free_attribute_search): free ldSrc->base
here instead of in ldNSProfile_attribute_search where it is allocated.
* src/ldGroup.c (ldGroup_free_attribute_search): free ldSrc->base here
instead of in ldGroup_attribute_search where it is allocated.
2000-10-01 Matthew Rich <mr-blue@users.sourceforge.net>
* src/luaid.c: (added) utility to search the LDAP directory for a
user or group id.
* src/luauserdel.c (main): re-written to use luaApp and updated objects.
2000-09-30 Matthew Rich <mr-blue@users.sourceforge.net>
* src/ldNSProfile.c (ldNSProfile_init): updated to use state.
(ldNSProfile_setdn): added setdn/getdn.
(ldNSProfile): all nsprofile methods updated to use state.
(ldNSProfile_gendn): generates a nsprofile dn.
(ldNSProfile_find): added all find and search functions.
(ldNSProfile): brought up to date with ldUser and ldGroup.
* src/ldUser.c (ldUser_find): (added) optional user_id argument, which may
specify a user name or numerical id to use in the search.
* src/strutils.c (lua_strcmp_dn): (added) compares two dn strings.
* src/ldGroup.c (ldGroup_find_join): (added) adds user account as a member
of the specified group.
(ldGroup_find): (added) optional group_id argument, which may specify a
group name or numerical id to use in the search.
2000-09-26 Matthew Rich <mr-blue@users.sourceforge.net>
* src/strutils.c (lua_check_attribute_str): (added) checks an attribute
value for validity.
2000-09-25 Matthew Rich <mr-blue@users.sourceforge.net>
* src/ldUser.c (ldUser_gendn): generates a user dn.
* src/ldGroup.c (ldGroup_init): updated to use state.
(ldGroup_setdn): added setdn/getdn.
(ldGroup): all group methods updated to use state.
(ldGroup_gendn): generates a group dn.
2000-09-24 Matthew Rich <mr-blue@users.sourceforge.net>
* src/ldGroup.h (struct ldgroup): added state member, see lduser additions.
* src/ldUser.c (ldUser_find_getvalue): fails if the search flag of
the state member is not set.
(ldUser_getdn): returns a copy of the dn, caller must free.
(ldUser_setdn): sets the dn to a copy of the argument passed.
2000-09-23 Matthew Rich <mr-blue@users.sourceforge.net>
* src/ldUser.c (ldUser_init): uses the state member
(ldUser_setdefaults): checks the state member for init as an object
entry.
(ldUser_setattribute): same as previous, all fcns for modifying or
updating an entry will add the same behavior.
(ldUser_attribute_search): checks the state member for a search
that is already in progress. All other search fcns do the same.
* src/ldUser.h (lduser): added state member and flags.
* src/ldGroup.c (ldGroup_gendn): add misc fcn to generate a group dn for
the specified group_name using the given luaApp.
2000-09-22 Matthew Rich <mr-blue@users.sourceforge.net>
* src/ldGroup.c (ldGroup_attribute_search): added directory searching and
and ldSrc member.
(ldGroup_find): searches the ldap directory for a group account.
(ldGroup_find_getvalue): loads the values of the specified attribute into
ldSrc from a successful call to ldGroup_find.
(ldGroup_find_load): loads the object found from a successful call to
ldGroup_find into the ldObj.
* src/ldGroup.h: set/get attribute methods added for modifying the
attribute_values table.
2000-09-21 Matthew Rich <mr-blue@users.sourceforge.net>
* src/ldGroup.h (ldGroup_setdefaults): re-writen to use luaApp instead
of luaDefaults.
* src/ldGroup.c (ldGroup_init): required param added: dn. The
distinguished name is now required to initialize the object.
* src/ldGroup.h: added group attribute definitions
(struct ldgroup): added groupobjectclass,gocsize,groupbase, and
attribute are now stored in a table of values instead of individual members.
* src/strutils.c (lua_stripquotes): changed behavior, from returning null
when no quotes are found to returning a strdup of the original value.
* src/luaApp.c (luaApp_getarg): getarg added, returns the value stored for
the additional argument at index.
* src/luaApp.h (luaapp): args_table_count added, counts the number
additional arguments.
2000-09-20 Matthew Rich <mr-blue@users.sourceforge.net>
* src/strutils.h: moved from ldConf.c
* src/ldUser.h (struct lduser): loads values into attribute_values from
luaApp, instead of individual vars. Added set/get attribute, and find
functions. Allows attributes to be customized, checked, and/or loaded
from a find result or luaApp.
* src/ldUser.c (ldUser_setdefaults): changed to work with luaApp instead
of luaArgs.
* src/ldUser.h (AOC_VALUES): moved from luaDefaults.h