From b91963bcf3f5769d7e6071a878e0feff015a9493 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Fri, 20 May 2005 18:11:49 +0000 Subject: Updating Linux Account Manager info from R. Gruber. (This used to be commit ee368ac5096cdc4852a54f8bedefb7a7b0ad1578) --- docs/Samba-Guide/SBE-Appendix1.xml | 423 +++++++++++--------------- docs/Samba-Guide/images/lam-group-members.png | Bin 64719 -> 82762 bytes docs/Samba-Guide/images/lam-groups.png | Bin 80476 -> 94035 bytes docs/Samba-Guide/images/lam-hosts.png | Bin 73319 -> 86779 bytes docs/Samba-Guide/images/lam-login.png | Bin 66970 -> 86345 bytes docs/Samba-Guide/images/lam-users.png | Bin 83488 -> 102751 bytes 6 files changed, 172 insertions(+), 251 deletions(-) (limited to 'docs') diff --git a/docs/Samba-Guide/SBE-Appendix1.xml b/docs/Samba-Guide/SBE-Appendix1.xml index 0940f4da41..08b4baf684 100644 --- a/docs/Samba-Guide/SBE-Appendix1.xml +++ b/docs/Samba-Guide/SBE-Appendix1.xml @@ -4,12 +4,9 @@ Appendix: A Collection of Useful Tid-bits - - material - - domain - joining - + + material + domainjoining Information presented here is considered to be either basic or well-known material that is informative yet helpful. Over the years, I have observed an interesting behavior. There is an expectation that the process for joining a Windows client to a Samba-controlled Windows Domain may somehow involve steps @@ -20,9 +17,8 @@ Joining a Domain: Windows 200x/XP Professional - - joining a domain - + + joining a domain Microsoft Windows NT/200x/XP Professional platforms can participate in Domain Security. This section steps through the process for making a Windows 200x/XP Professional machine a member of a Domain Security environment. It should be noted that this process is identical @@ -70,18 +66,21 @@ - This panel shows that our example machine (TEMPTATION) is set to join the domain called MIDEARTH. See . - wxpp007The Computer Name Changes Panel &smbmdash; Domain MIDEARTH + This panel shows that our example machine (TEMPTATION) is set to join the domain called MIDEARTH. See + . wxpp007 + The Computer Name Changes Panel &smbmdash; Domain MIDEARTH - Now click the OK button. A dialog box should appear to allow you to provide the credentials (username and password) - of a Domain administrative account that has the rights to add machines to the Domain. + Now click the OK button. A dialog box should appear to allow you to provide the + credentials (username and password) of a Domain administrative account that has the rights to add machines to + the Domain. Enter the name root and the root password from your Samba-3 server. See . - wxpp008Computer Name Changes &smbmdash; User name and Password Panel + wxpp008 + Computer Name Changes &smbmdash; User name and Password Panel @@ -95,30 +94,24 @@ - - Active Directory - - DNS - + + Active Directory + DNS The screen capture shown in has a button labeled More.... This button opens a panel in which you can set (or change) the Primary DNS suffix of the computer. This is a parameter that mainly affects members of Microsoft Active Directory. Active Directory is heavily oriented around the DNS name space. - - Netlogon - - DNSdynamic - + + Netlogon + DNSdynamic Where NetBIOS technology uses WINS as well as UDP broadcast as key mechanisms for name resolution, Active Directory servers register their services with the Microsoft Dynamic DNS server. Windows clients must be able to query the correct DNS server to find the services (like which machines are Domain Controllers or which machines have the Netlogon service running). - - DNS - suffix - + + DNSsuffix The default setting of the Primary DNS suffix is the Active Directory domain name. When you change the Primary DNS suffix, this does not affect Domain Membership, but it can break network browsing and the ability to resolve your computer name to a valid IP address. @@ -129,9 +122,8 @@ Where the client is a member of a Samba Domain, it is preferable to leave this field blank. - - Group Policy - + + Group Policy According to Microsoft documentation, If this computer belongs to a group with Group Policy enabled on Primary DNS suffice of this computer, the string specified in the Group Policy is used as the primary DNS suffix and you might need to restart your computer to view the correct setting. The local setting is @@ -143,13 +135,10 @@ Samba System File Location - - default installation - - /usr/local/samba - - /usr/local - + + default installation + /usr/local/samba + /usr/local One of the frustrations expressed by subscribers to the Samba mailing lists revolves around the choice of where the default Samba Team build and installation process locates its Samba files. The location, chosen in the early 1990s, for the default installation is in the /usr/local/samba directory. This is a perfectly reasonable location, particularly given all the other @@ -161,42 +150,23 @@ default. - - Free Standards Group - FSG - - FSG - - Linux Standards Base - LSB - - LSB - - File Hierarchy System - FHS - - FHS - - file locations - - /etc/samba - - /usr/sbin - - /usr/bin - - /usr/share - - /usr/share/swat - - /usr/lib/samba - - /usr/share/samba/swat - - SWAT - - VFS modules - + + Free Standards GroupFSG + FSG + Linux Standards BaseLSB + LSB + File Hierarchy SystemFHS + FHS + file locations + /etc/samba + /usr/sbin + /usr/bin + /usr/share + /usr/share/swat + /usr/lib/samba + /usr/share/samba/swat + SWAT + VFS modules Linux vendors, working in conjunction with the Free Standards Group (FSG), Linux Standards Base (LSB), and File Hierarchy System (FHS), have elected to locate the configuration files under the /etc/samba directory, common binary files (those used by users) in the /usr/bin directory, and the administrative files (daemons) in the @@ -207,13 +177,10 @@ passdb backend as well as for the VFS modules. - - /var/lib/samba - - /var/log/samba - - run-time control files - + + /var/lib/samba + /var/log/samba + run-time control files Samba creates run-time control files and generates log files. The run-time control files (tdb and dat files) are stored in the /var/lib/samba directory. Log files are created in /var/log/samba. @@ -223,10 +190,8 @@ /usr/local/samba directory tree. This makes it simple to find the files that Samba owns. - - smbd - location of files - + + smbdlocation of files One way to find the Samba files that are installed on your UNIX/Linux system is to search for the location of all files called smbd. Here is an example: @@ -261,9 +226,8 @@ Version 3.0.20-SUSE Many people have been caught by installation of Samba using the default Samba Team process when it was already installed by the platform vendor's method. If your platform uses RPM format packages, you can check to see if Samba is installed by - executing: - rpm - + executing: + rpm &rootprompt; rpm -qa | grep samba samba3-pdb-3.0.20-1 @@ -275,9 +239,8 @@ samba3-utils-3.0.20-1 samba3-doc-3.0.20-1 samba3-client-3.0.20-1 samba3-cifsmount-3.0.20-1 - - package names - + + package names The package names, of course, vary according to how the vendor, or the binary package builder, prepared them. @@ -286,9 +249,8 @@ samba3-cifsmount-3.0.20-1 Starting Samba - - daemon - + + daemon Samba essentially consists of two or three daemons. A daemon is a UNIX application that runs in the background and provides services. An example of a service is the Apache Web server for which the daemon is called httpd. In the case of Samba, there are three daemons, two of which are needed as a minimum. @@ -425,18 +387,16 @@ esac - - samba control script - + + samba control script SUSE Linux implements individual control over each Samba daemon. A samba control script that can be conveniently executed from the command line is shown in . This can be located in the directory /sbin in a file called samba. This type of control script should be owned by user root and group root, and set so that only root can execute it. - - startup script - + + startup script A sample startup script for a Red Hat Linux system is shown in . This file could be located in the directory /etc/rc.d and can be called samba. A similar startup script is required to control winbind. @@ -576,13 +536,9 @@ M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33 Alternative LDAP Database Initialization - - LDAP - database - - LDAP - initial configuration - + + LDAPdatabase + LDAPinitial configuration The following procedure may be used as an alternative means of configuring the initial LDAP database. Many administrators prefer to have greater control over how system files get configured. @@ -591,14 +547,10 @@ M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33 Initialization of the LDAP Database - - LDIF - - Domain Groups - well-known - - SID - + + LDIF + Domain Groupswell-known + SID The first step to get the LDAP server ready for action is to create the LDIF file from which the LDAP database will be pre-loaded. This is necessary to create the containers into which the user, group, and so on, accounts is written. It is also necessary to @@ -998,119 +950,98 @@ description: Domain Users The LDAP Account Manager - - LAM - - LDAP Account Manager - LAM - - PHP - - unencrypted - - SSL - - Posix - - accountsmanage - -The LDAP Account Manager (LAM) is an application suite that has been written in PHP. -LAM can be used with any Web server that has PHP4 support. It connects to the LDAP -server either using unencrypted connections or via SSL. LAM can be used to manage -Posix accounts as well as SambaSAMAccounts for users, groups, and Windows machines -(hosts). - - - -LAM is available from the LAM -home page and from its mirror sites. LAM has been released under the GNU GPL version 2. -The current version of LAM is 0.4.3. Release of version 0.5 is expected some time early -in 2004. - + + LAM + LDAP Account ManagerLAM + PHP + unencrypted + SSL + Posix + accountsmanage + The LDAP Account Manager (LAM) is an application suite that has been written in PHP. + LAM can be used with any Web server that has PHP4 support. It connects to the LDAP + server either using unencrypted connections or via SSL/TLS. LAM can be used to manage + Posix accounts as well as SambaSAMAccounts for users, groups, and Windows machines + (hosts). + - - PHP4 - - OpenLDAP - - Perl - -Requirements: - - - - A web server that will work with PHP4. - PHP4 (available from the - PHP home page.) - OpenLDAP 2.0 or later. - A Web browser that supports CSS. - Perl. - The gettext package. - mcrypt + mhash (optional since version 0.4.3). - It is also a good idea to install SSL support. - - - -LAM is a useful tool that provides a simple Web-based device that can be used to - manage the contents of the LDAP directory to: - organizational units - - operating profiles - - account policies - - - - - Display user/group/host and Domain entries. - Manages entries (Add/Delete/Edit). - Filter and sort entries. - Set LAM administrator accounts. - Store and use multiple operating profiles. - Edit organizational units (OUs). - Upload accounts from a file. - Is compatible with Samba-2.2.x and Samba-3. - - - -When correctly configured, LAM allows convenient management of UNIX (Posix) and Samba -user, group, and windows domain member machine accounts. - + + LAM is available from the LAM + home page and from its mirror sites. LAM has been released under the GNU GPL version 2. + The current version of LAM is 0.4.9. Release of version 0.5 is expected in the third quarter + of 2005. + - - default password - - secure connections - - LAM - - SSL - -The default password is lam. It is highly recommended that you use only -an SSL connection to your Web server for all remote operations involving LAM. If you -want secure connections, you must configure your Apache Web server to permit connections -to LAM using only SSL. - + + PHP4 + OpenLDAP + Perl + Requirements: + + + + A web server that will work with PHP4. + PHP4 (available from the + PHP home page.) + OpenLDAP 2.0 or later. + A Web browser that supports CSS. + Perl. + The gettext package. + mcrypt + mhash (optional). + It is also a good idea to install SSL support. + + + + LAM is a useful tool that provides a simple Web-based device that can be used to + manage the contents of the LDAP directory to: + organizational units + operating profiles + account policies + - -Apache Condiguration Steps for LAM + + Display user/group/host and Domain entries. + Manage entries (Add/Delete/Edit). + Filter and sort entries. + Store and use multiple operating profiles. + Edit organizational units (OUs). + Upload accounts from a file. + Is compatible with Samba-2.2.x and Samba-3. + + + + When correctly configured, LAM allows convenient management of UNIX (Posix) and Samba + user, group, and windows domain member machine accounts. + + + + default password + secure connections + LAMSSL + The default password is lam. It is highly recommended that you use only + an SSL connection to your Web server for all remote operations involving LAM. If you + want secure connections, you are advised to configure your Apache Web server to permit connections + to LAM using only SSL. + + + + Apache Configuration Steps for LAM Extract the LAM package with: -&rootprompt; tar xzf ldap-account-manager_0.4.3.tar.gz +&rootprompt; tar xzf ldap-account-manager_0.4.9.tar.gz -Alternately, install the LAM RPM for your system using the following example for -example: + Alternatively, install the LAM DEB for your system using the following command: -&rootprompt; rpm -Uvh ldap-account-manager-0.4.3-1.noarch.rpm +&rootprompt; dpkg -i ldap-account-manager_0.4.9.all.deb Copy the extracted files to the document root directory of your Web server. - For example, on SUSE Linux Enterprise Server 8, copy to the - /srv/web/htdocs directory. + For example, on SUSE Linux Enterprise Server 9, copy to the + /srv/www/htdocs directory. @@ -1126,23 +1057,17 @@ example: - - LAM - configuration file - - Using your favorite editor create the following config.cfg - LAM configuration file: + + LAMconfiguration file + Using your favorite editor create the following config.cfg + LAM configuration file: &rootprompt; cd /srv/www/htdocs/lam/config &rootprompt; cp config.cfg_sample config.cfg &rootprompt; vi config.cfg - - LAM - profile - - LAM - wizard - + + LAMprofile + LAMwizard An example file is shown in . This is the minimum configuration that must be completed. The LAM profile file can be created using a convenient wizard that is part of the LAM @@ -1161,9 +1086,8 @@ example: - - pitfalls - + + pitfalls An example of a working file is shown here in . This file has been stripped of comments to keep the size small. The comments and help information provided in the profile file that the wizard creates @@ -1172,10 +1096,8 @@ example: are preferred at your site. - - LAM - login screen - + + LAMlogin screen It is important that your LDAP server is running at the time that LAM is being configured. This permits you to validate correct operation. An example of the LAM login screen is provided in . @@ -1205,19 +1127,16 @@ example: lam-config - - PDF - + + PDF LAM has some nice, but unusual features. For example, one unexpected feature in most application screens permits the generation of a PDF file that lists configuration information. This is a well thought out facility. This option has been edited out of the following screen shots to conserve space. - - LAM - opening screen - + + LAMopening screen When you log onto LAM the opening screen drops you right into the user manager as shown in . This is a logical action as it permits the most-needed facility to be used immediately. The editing of an existing user, as with the addition of a new user, @@ -1235,7 +1154,7 @@ example: The edit screen for groups is shown in . As with the edit screen for user accounts, group accounts may be rapidly dealt with. - shown a sub-screen from the group editor that permits users to be assigned secondary group + shows a sub-screen from the group editor that permits users to be assigned secondary group memberships. @@ -1249,11 +1168,8 @@ example: lam-group-members - - smbldap-tools - - scripts - + + smbldap-toolsscripts The final screen presented here is one that you should not normally need to use. Host accounts will be automatically managed using the smbldap-tools scripts. This means that the screen will, in most cases, not be used. @@ -1267,11 +1183,18 @@ example: One aspect of LAM that may annoy some users is the way it forces certain conventions on the administrator. For example, LAM does not permit the creation of Windows user and group - accounts that contain upper-case characters or spaces even though the underlying UNIX/Linux + accounts that contain spaces even though the underlying UNIX/Linux operating system may exhibit no problems with them. Given the propensity for using upper-case characters and spaces (particularly in the default Windows account names) this may cause some annoyance. For the rest, LAM is a very useful administrative tool. + + + The next major release, LAM 0.5, will have fewer restrictions and support the latest Samba features + (e.g. logon hours). The new plugin based architecture also allows to manage much more different + account types like plain Unix accounts. The upload can now handle groups and hosts, too. Another + important point is the tree view which allows to browse and edit LDAP objects directly. + Example LAM Configuration File &smbmdash; <filename>config.cfg</filename> @@ -1304,7 +1227,7 @@ userlistAttributes: #uid;#givenName;#sn;#uidNumber;#gidNumber grouplistAttributes: #cn;#gidNumber;#memberUID;#description hostlistAttributes: #cn;#description;#uidNumber;#gidNumber maxlistentries: 30 -defaultLanguage: en_GB:ISO-8859-1:English (Britain) +defaultLanguage: en_GB:ISO-8859-1:English (Great Britain) scriptPath: scriptServer: samba3: yes @@ -1318,8 +1241,6 @@ pwdhash: SSHA Effect of Setting File and Directory SUID/SGID Permissions Explained - SUID - SGID The setting of the SUID/SGID bits on the file or directory permissions flag has particular consequences. If the file is executable and the SUID bit is set, it executes with the privilege diff --git a/docs/Samba-Guide/images/lam-group-members.png b/docs/Samba-Guide/images/lam-group-members.png index 139acb26ba..cab8e42fc7 100644 Binary files a/docs/Samba-Guide/images/lam-group-members.png and b/docs/Samba-Guide/images/lam-group-members.png differ diff --git a/docs/Samba-Guide/images/lam-groups.png b/docs/Samba-Guide/images/lam-groups.png index 38757e0c4a..da17b19a77 100644 Binary files a/docs/Samba-Guide/images/lam-groups.png and b/docs/Samba-Guide/images/lam-groups.png differ diff --git a/docs/Samba-Guide/images/lam-hosts.png b/docs/Samba-Guide/images/lam-hosts.png index a3c29931d6..27806eb9ab 100644 Binary files a/docs/Samba-Guide/images/lam-hosts.png and b/docs/Samba-Guide/images/lam-hosts.png differ diff --git a/docs/Samba-Guide/images/lam-login.png b/docs/Samba-Guide/images/lam-login.png index eb35a49ca6..cce500fc43 100644 Binary files a/docs/Samba-Guide/images/lam-login.png and b/docs/Samba-Guide/images/lam-login.png differ diff --git a/docs/Samba-Guide/images/lam-users.png b/docs/Samba-Guide/images/lam-users.png index 8254e6d614..0ca4b437ec 100644 Binary files a/docs/Samba-Guide/images/lam-users.png and b/docs/Samba-Guide/images/lam-users.png differ -- cgit