pax_global_header00006660000000000000000000000064127143001460014510gustar00rootroot0000000000000052 comment=128d2be941e54acf310e4b9444d4cfc4027c81de smbldap-tools-0.9.11/000077500000000000000000000000001271430014600143605ustar00rootroot00000000000000smbldap-tools-0.9.11/.gitignore000066400000000000000000000003671271430014600163560ustar00rootroot00000000000000.* configure autom4te.cache config.log config.cache config.status Makefile *.cmd *.example *.8 smbldap_tools.pm /build/Makefile.common /build/Makefile.package /build/Makefile.top /build/subst /build/subst.pl /build/subst.vars /build/subst.vars.in smbldap-tools-0.9.11/CONTRIBUTORS000066400000000000000000000030001271430014600162310ustar00rootroot00000000000000# $Id$ # ## Authors, developers and contributors of SMBLDAP-TOOLS The following developers have contributed directly to this project, or maintain parts of the code tree: . Jérôme Tournier . Terry Davis . David Le Corfec . Olivier Lemaire . Martin Matuška . SATOH Fumiyasu Many thanks for bug reports and patches: . Bruce Benda smbldap-passwd: regular users can change their passwords when TLS is forced . Dmitry Grigorovich options in smbldap-passwd . Marc Schoechlin load the perl-modules without setting environment-variables or making symlinks . Alexander Bergolth more Net::LDAP support . Gert-Jan Braas bug report for 2.2.3 samba.schema . Jody Haynes originaly passwd.pl . Brad Langhorst package relocatability . Mirko Manea originaly useradd.pl . Alain Richard bug report and Perl tips . Roland Schulz bug report for smbldap-passwd . Xavier Boschian bug report for smbldap-populate . Christophe DUBREUIL Net::LDAP support in smbldap_tools.pm . Paul Howarth various style, spelling and other bugfixes . Marco Gaiarin bug report and proposal smbldap-tools-0.9.11/COPYING000066400000000000000000000432541271430014600154230ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. smbldap-tools-0.9.11/ChangeLog000066400000000000000000000764621271430014600161510ustar00rootroot000000000000002016-05-10 * New tag 0.9.11 * Disable lanmanPassword by default 2016-03-29 * smbldap-config: - Add POD text (Thanks to Paul Howarth , bug #3013) - Do NOT assume "ou=..."-style value for "ldap users suffix", "ldap groups suffix" and "ldap machine suffix" in smb.conf 2016-03-28 * smbldap-config: Add support renamed and new parameters (Thanks to Gervasio Susterman , bug #2914) 2016-03-27 * smbldap-useradd: - Do not add dummy userPassword attribute - Die on adding a user entry fails - Set random password instead of insecure one on `smbpasswd -a` - Check if specified UID is owned by local user (bug #2974) * Report error on exec() failure 2014-08-27 * smbldap.conf: New parameter: lanmanPassword * smbldap_tools.pm: Export account_base_rid() for smbldap-usermod 2013-02-14 * new tag 0.9.10 2012-10-24 * smbldap_tools.pm: Add is_attr_single_value() to check if a specified attribute is defined as single-value in the LDAP schema * smbldap-useradd, smbldap-usermod: Check if mailRoutingAddress attribute is single-value or not * smbldap-usermod: - Remove mailRoutingAddress attribute if empty - Suppress "no such attribute" error on remove mail or mailLocalAddress attribute when already absent 2012-10-19 * smbldap_tools.pm: read_user_human_readable: Protect attribute values from Encode::decode_utf8() with Encode::FB_CROAK 2012-08-07 * smbldap_tools.pm: $config{masterLDAP} and $config{slaveLDAP} can take an LDAP URI * smbldap_tools.pm: Non-root user cannot run smbldap-passwd, smbldap-userinfo, smbldap-userlist and smbldap-grouplist with SSL-enabled LDAP server http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647860 * new tag 0.9.9 2012-07-17 * smbldap-useradd: Fix smbldap-passwd name http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679935 2012-07-16 * smbldap-userlist, smbldap-grouplist: Specify Net::LDAP search attributes as an array ref, not a string http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681350 2012-03-05 * Use Digest::SHA instead of Digest::SHA1 if Perl version > 5.10.0 * smbldap-usermod: -M, -O, -T option: Remove associated attribute when the null value is specified 2011-09-26 * new tag 0.9.7 2011-09-06 * smbldap-populate: Create parent entry for $config{sambaUnixIdPooldn} if it does not exist 2011-09-02 * smbldap-config: Rename from configure.pl 2011-07-23 * smbldap-populate: Create parent entry for $config{usersdn} (and others) if it does not exist (e.g. usersdn="ou=Users,ou=parent,${suffix}" in smbldap.conf) 2011-07-13 * smbldap-useradd: New option: --non-unique (Allow the creation of a user account with a duplicate (non-unique) UID) 2011-07-12 * smbldap-usermod: New option: --ou NODE (move user entry to the specified organazional unit) * Canonize user name to treat the memberUid as case-sensitive attribute (but the uid attribute is case-insensitive) * smbldap-useradd: New option: -p (allow to set password from STDIN without verification, e.g. using a pipe) 2011-07-08 * smbldap-populate: Use Net::LDAP::Entry for populating entries 2011-06-29 * Use sambaNextRid attribute in sambaDomain entry for the next RID as same as Samba 3.0+ (only when sambaAlgorithmicRidBase attribute does NOT exists in sambaDomain entry for backward compatibility) 2011-06-24 * Rename smbldap.conf parameters: - hash_encrypt -> password_hash - crypt_salt_format -> password_crypt_salt_format * LDAPv3 Password Modify (RFC 3062) extended operation support when password_hash="exop" in smbldap.conf 2011-06-23 * Add shadowAccount parameter in smbldap.conf to control whether to treat shadowAccount objectclass and attributes or not 2011-06-22 * Introduce autoconf (configure.in, Makefile.in and so on) 2011-06-14 * smbldap-passwd: Do not use permuted -s option for the smbpasswd(1) command-line because the plain-old getopt(3) does not support it 2011-05-28 * smbldap_tools.pm: Add read_password() to avoid `stty -echo` hacks * Use /usr/sbin/nscd -i instead of /etc/init.d/nscd 2011-05-24 * smbldap-populate, smbldap_tools.pm: Use /nonexistent instead of /dev/null for guest's and computer's homeDirectory 2011-03-09 * smbldap_tools.pm: Use Encode instead of Unicode::MapUTF8 2011-02-23 * smbldap_tools.pm: - get_next_id: Use getgrgid() for GID number - read_parameter: Use lexically-scoped variable $line instead of global $_ - read_user_human_readable: Use UTF-8 flaged string and \P{IsPrint} to check if an LDAP attribute has non-printable characters or not * smbldap-populate: Fix wrong sambaGroupType values for local groups * Replace bare "smbpasswd" with "$config{smbpasswd}" * smbldap-useradd: Add -h (--no-dereference) option to the chown(1) command-line * smbldap-useradd: Extend -Z (--attr) option to take multiple -Z options * smbldap-usermod: Set sambaPwdLastSet to the current time if "-B 0" is used (for Samba 3.0.25 and later) * smbldap-usermod: Extend -Z (--attr) option: - Take multiple -Z options - Append a value to a multi-value attribute by -Z +name=value - Remove a value from a multi-value attribute by -Z -name=value - Remove a attribte by -Z -name 2010-11-15 * smbldap-useradd: - fix Z option in getopt (custom LDAP attribute) - drop unused L option from getopt - alphabetically reorganize getopt options - fix several mis-spellings and typos (thx to Paul Howarth ) * other utilities: - alphabetically reorganize getopt and help * new tag 0.9.6 2010-10-21 * new tool: smbldap-grouplist (list LDAP groups) * smbldap-useradd, smbldap-usershow, smbldap-usermod: - change default encoding of givenName and sn to UTF-8 (bug #11717) - new option: -X (input/output encoding, defaults to UTF-8) - new option: -O (localMailAddress attribute) - changed option: -M (now sets only mail attribute) - home directory is now chowned as $userUidNumber:$userGidNumber (bug #11721) - use gecos as displayName if givenName and userSN not provided (bug #14517) * smbldap-passwd: - new option: -p (allow root to set password from STDIN without verification, e.g. using a pipe) (bug #11964) - change userPassword, shadowLastChange and shadowMax individually e.g. no shadow class or user may not have rights (bug #15052) * smbldap-groupmod: allow deletion of users from groups without a defined samba group SID) * remove references to smbldap_conf.pm 2008-04-22 * new tag 0.9.5 2008-04-13 * smbldap-useradd: new option '-W' to add a computer account with samba attributes (for account creation through samba, use '-w') * smbldap_tools.pm: added ldaps support * smbldap.conf: new option 'ldapSSL' for SSL support 2008-03-05 * smbldap-usershow: if nscd is up dans running, restart the service (http://gna.org/bugs/?11206) 2008-02-17 * smbldap-populate: remove sambaNextRid entry if ${sambaDomain} is not used for ${sambaUnixIdPooldn} entry (sambaDomain objectclass is then not added to ${sambaUnixIdPooldn}) 2008-02-15 * smbldap-usermod: if "-I" is used, set sambaPwdLastSet to the current time * smbldap-useradd: if '-k /etc/skel" is used, /etc/skel content is now correctly copied to home directory 2007-12-18 * smbldap-usermod, smbldap-passwd (smbldap-passwd is asked by smbldap-useradd): if "-B 1" is used, set sambaPwdLastSet to 0 (https://gna.org/support/?1828) 2007-12-17 * smbldap-usermod, smbldap-useradd: new -Z option to add custom LDAP attributes 2007-11-26 * smbldap-groupadd: added sncd status and restart service after applying modifications (https://gna.org/bugs/index.php?10313) * smbldap-passwd: unix password not updated if maxPasswordAge not defined in smbldap.Conf => added control test (https://gna.org/bugs/?10230) * smbldap-usershow: new -h option to print dates in human-readable form (https://gna.org/bugs/?10231) 2007-11-23 * smbldap-usermod: fixes and enhancements relative to expirations dates (https://gna.org/bugs/?10229) 2007-10-30 * smbldap_tools.pm (read_user): do not print binary data in smbldap-usershow (https://gna.org/bugs/?10228) 2007-09-17 * new tag 0.9.4 2007-09-17 * smbldap-usermod and smbldap-useradd: displayName attribute default to username or use the information given with the -S and -N options. (RFC 2256 & RFC 2798). * update sambaPrimaryGroupSID if '-g' option is used Thanks to Christoph Szeppek for his patch. 2007-09-05 * smbldap-userlist (print_user): print also shadowMax attribute value 2007-08-07 * smbldap-usermod: allow renaming of computers account 2007-08-01 * smbldap-usermod: cn was updated to null string (if -N or -S are not used.) which causes a failed ldap modification 2007-07-19 * new tag 0.9.3 2007-07-13 * smbldap-userinfo (exist_in_tab;): print also Samba Password Last Set, Samba Password Must Change and Samba Flags * smbldap-userlist (exist_in_tab;): only root can show all users informations. If used as standard user, only print personnal informations 2007-07-10 * smbldap-populate: new option '-r' to specify the first rid available for users and groups creation (default is 1000) 2007-07-06 * smbldap_tools.pm (add_posix_machine): add only 'top', 'account', 'posixAccount' objectclass for computers account * smbldap_tools.pm (get_next_id($$)): look if the id or gid is not already used in /etc/passwd or /etc/group. Check the next one if so. * smbldap_tools.pm (delete_user): print error message if deleting user failed 2007-07-05 * smbldap-userlist: new script that list all account properties (expiration, status,...) 2007-07-04 * smbldap-passwd (make_salt): update shadowMax (to $config{defaultMaxPasswordAge}) entry if script used with root priviledge * smbldap_tools.pm (add_posix_machine): when creating a computer account, just set the 'top', 'account' and 'posixAccount' objectclass * smbldap_tools.pm (parse_group): same as below: replace getgrgid() by an ldap querie * smbldap-groupmod: replace the call of getgrnam() with an ldap search because getgrnam() can't return the group gidNumber in case the script is executed from a server where ldap auth is not set (tnx to Konstantin Munning) 2007-07-03 * smbldap-useradd: using the userName instead of uidNumber in "chown ... $userHomeDirectory" because $userUidNumber is linked to user which has a different uidNumber in case of use numeric-only username (thx to Francesco Malvezzi) * smbldap-useradd: if -B option is used, called smbldap-passwd with -B option (without -B option in smbldap-passwd, this command was overwritten sambaPwdMustChange sambaPwdLastSet and sambaAcctFlags just after being updated with smbldap-usermod) * smbldap-passwd: new option -B to force user to change Samba password (and then also unix) at next connection 2007-07-02 * smbldap-migrate-pwdump-accounts: make the ldap connection before trying to modify any entry * smbldap-migrate-pwdump-accounts and smbldap-migrate-pwdump-groups: added "PATH=/sbin:/usr/sbin:/usr/local/sbin:/opt/IDEALX/sbin/" before calling smbldap-useradd * smbldap-userinfo: new option -l to list user properties and specially password aging informations * smbldap-usermod: new options --shadowExpire --shadowMax --shadowMin and --shadowWarning related to password aging * smbldap-usermod: new options -L and -U to lock/unlock shadow account (thx to Pierluigi Miranda ) * smbldap-passwd: sambaPwdLastSet attribute is updated whend changing password * smbldap-usermod: if -o was used, script must not exit if uid already exist * smbldap_tool.pm: in function connect_ldap_slave, bind parameters to contact the master server (if slave is not available) must be $config{masterDn} and $config{masterPw} 2007-06-27 * smbldap-tools.spec: added man pages * smbldap-useradd: update -o option to allow specify a node like '-o ou=admin,ou=all' * smbldap-tools.pm: be more verbose if ldap_bind failed (thx to tarjei ) * smbldap-useradd: be more berbose if problem searching next uid in $config{sambaUnixIdPooldn} (thx to Goneri Le Boude ) 2006-01-13 * UTF8 support in smbldap-usermod for option -N 2006-01-03 . new tag (v0-9-2 for rpm version 0.9.2) 2005-10-31 . Option 'P' to set password was not possible in smbldap-useradd when usernames contained space character . smbldap-populate and smbldap_tools.pm: classes hierarchical is specified completly to avoid problem with others directories then OpenLDAP. . smbldap-useradd: users are not added to group if the group is their primary one . smbldap-useradd and smbldap_tools: new function is_nonldap_unix_user to allow adding non ldap users to group. This is typically used to add users from a trusted domains (winbind) . when adding trusted account (smbldap-useraddd -i) '$' caracter is added to the name if not present . if with_smbpasswd="1", we let samba adding the sambaPrimaryGroupSID entry . smbldap-passwd: new option -s and -u to only update samba password or unix password . smbldap-passwd: regular users can change their passwords when TLS is forced . parsing smb.conf is correct if parameters are defined in several lines (using \ caracter) . automatic creation of the OU of a new user if it does not exist (smbldap-useradd -o ou=xxx). The new OU must me relative to the $config{usersdn} parameter 2005-07-12 . sambaPrimaryGroupSID for samba users is set to DOMAIN_SID-513, whatever is the defaultUserGid parameter value defined in smbldap.conf 2005-06-07 . sambaBadPasswordCount is set to 0 when using smbldap-passwd . update for respect with RFC 2256: sn <-> nom (option S) givenName <-> prenom (option N) cn <-> person's full name . UTF8 support for givenName (option N) and sn (option S) 2005-05-26: new tag (v0-9-1 for rpm version 0.9.1) . bugs correction and updates in configure.pl 2005-05-17: new tag (v0-9-0 for rpm version 0.9.0) 2005-05-16 . update release version 0.9.0 for synchronisation with examples of the "Samba3 by examples" book of John H Terpstra. . default configuration files for the smbldap-tools can be place in /etc/opt/IDEALX/smbldap-tools or /etc/smbldap-tools/ . default configuration file for samba can be /etc/samba/smb.conf or /usr/local/samba/lib/smb.conf . new parameter userHomeDirectoryMode in smbldap.conf to set the default directory mode used for user's homeDirectory . enhancements and fixes in configure.pl 2005-04-27 . error in group type documentation in smbldap-groupadd 2005-04-17 . warnings was displayed when samba configuraton file (smb.conf) had single quotes in parameters definition (thanks to Tom Burkart ) . 'idmapdn' is now also optional in smbldap.conf (if needed and defined in smb.conf) 2005-04-03: new tag (v0-8-8 for rpm version 0.8.8) 2005-03-09 . Four more options are now optional in smbldap.conf. Default values are: > slaveLDAP="127.0.0.1" > slavePort="389" > masterLDAP="127.0.0.1" > masterPort="389" > ldapTLS="0" . the following suffix can be used with the smbldap-tools: > suffix="dc=dpt,dc=idealx,dc=org", suffix="dc=idealx,dc=org" or suffix="dc=idealx" . update to smbldap-populate: . administrator account is now called 'root' . default uidNumber for root is set to 0 . default rid for root is set to 500 . default gidNumber for administrator is set to 0 uidNumber and gidNumber can be changed with option -k and -m 2005-03-08 . Four parameters in smbldap.conf are now optional: 'suffix', 'usersdn', 'computersdn' and 'groupsdn' If those parameters are not set, they are respectivly taken from the following parameters in smb.conf : 'ldap suffix', 'ldap user suffix', 'ldap machine suffix' and 'ldap group suffix' . renaming two files: $ mv smbldap-migrate-accounts smbldap-migrate-pwdump-accounts $ mv smbldap-migrate-groups smbldap-migrate-pwdump-groups 2005-02-26 . New option '-t time' to smbldap-useradd: wait