Initial import
[samba] / examples / LDAP / smbldap-tools-0.9.1 / doc / html / smbldap-tools006.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
2             "http://www.w3.org/TR/REC-html40/loose.dtd">
3 <HTML>
4 <HEAD>
5
6 <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
7 <META name="GENERATOR" content="hevea 1.06">
8 <TITLE>
9  Samba and the smbldap-tools scripts
10 </TITLE>
11 </HEAD>
12 <BODY >
13 <A HREF="smbldap-tools005.html"><IMG SRC ="previous_motif.gif" ALT="Précédent"></A>
14 <A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Remonter"></A>
15 <A HREF="smbldap-tools007.html"><IMG SRC ="next_motif.gif" ALT="Suivant"></A>
16 <HR>
17
18 <H2><A NAME="htoc23">5</A>&nbsp;&nbsp;Samba and the smbldap-tools scripts</H2><UL>
19 <LI><A HREF="smbldap-tools006.html#toc12"> General configuration</A>
20 <LI><A HREF="smbldap-tools006.html#toc13"> Migrating an NT4 PDC to Samba3</A>
21 </UL>
22
23 <A NAME="toc12"></A>
24 <H3><A NAME="htoc24">5.1</A>&nbsp;&nbsp;General configuration</H3>
25 Samba can be configured to use the <FONT COLOR=purple>smbldap-tools</FONT> scripts. This allows
26 administrators to add, delete or modify user and group accounts for <FONT COLOR=purple>Microsoft Windows</FONT>
27 operating systems using, for example, User Manager utility under MS-Windows.
28 To enable the use of this utility, samba needs to be configured correctly. The
29 <TT>smb.conf</TT> configuration file must contain the following directives :
30 <PRE>
31 ldap delete dn = Yes
32 add user script = /usr/local/sbin/smbldap-useradd -m "%u"
33 add machine script = /usr/local/sbin/smbldap-useradd -w "%u"
34 add group script = /usr/local/sbin/smbldap-groupadd -p "%g"
35 add user to group script = /usr/local/sbin/smbldap-groupmod -m "%u" "%g"
36 delete user from group script = /usr/local/sbin/smbldap-groupmod -x "%u" "%g"
37 set primary group script = /usr/local/sbin/smbldap-usermod -g "%g" "%u"
38 </PRE>
39 Remark: the two directives <TT>delete user script</TT> et <TT>delete group
40 script</TT> can also be used. However, an error message can appear in User Manager
41 even if the operations actually succeed.
42 If you want to enable this behaviour, you need to add
43 <PRE>
44 delete user script = /usr/local/sbin/smbldap-userdel "%u"
45 delete group script = /usr/local/sbin/smbldap-groupdel "%g"
46 </PRE>
47 <A NAME="toc13"></A>
48 <H3><A NAME="htoc25">5.2</A>&nbsp;&nbsp;Migrating an NT4 PDC to Samba3</H3>
49 The account migration procedure becomes really simple when samba is configured to use
50 the <FONT COLOR=purple>smbldap-tools</FONT>. Samba configuration (smb.conf file) must contain the
51 directive defined above to properly call the script for managing users, groups and computer accounts.
52 The migration process is outlined in the chapter 30 of the samba howto
53 <TT>http://sambafr.idealx.org/samba/docs/man/Samba-HOWTO-Collection/NT4Migration.html</TT>.
54  <BR>
55 <BR>
56 <HR>
57 <A HREF="smbldap-tools005.html"><IMG SRC ="previous_motif.gif" ALT="Précédent"></A>
58 <A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Remonter"></A>
59 <A HREF="smbldap-tools007.html"><IMG SRC ="next_motif.gif" ALT="Suivant"></A>
60 </BODY>
61 </HTML>