• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/samba-3.0.25b/examples/LDAP/smbldap-tools-0.9.2/doc/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>
25Samba can be configured to use the <FONT COLOR=purple>smbldap-tools</FONT> scripts. This allows
26administrators to add, delete or modify user and group accounts for <FONT COLOR=purple>Microsoft Windows</FONT>
27operating systems using, for example, User Manager utility under MS-Windows.
28To 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>
31ldap delete dn = Yes
32add user script = /usr/local/sbin/smbldap-useradd -m "%u"
33add machine script = /usr/local/sbin/smbldap-useradd -w "%u"
34add group script = /usr/local/sbin/smbldap-groupadd -p "%g"
35add user to group script = /usr/local/sbin/smbldap-groupmod -m "%u" "%g"
36delete user from group script = /usr/local/sbin/smbldap-groupmod -x "%u" "%g"
37set primary group script = /usr/local/sbin/smbldap-usermod -g "%g" "%u"
38</PRE>
39Remark: the two directives <TT>delete user script</TT> et <TT>delete group
40script</TT> can also be used. However, an error message can appear in User Manager
41even if the operations actually succeed.
42If you want to enable this behaviour, you need to add
43<PRE>
44delete user script = /usr/local/sbin/smbldap-userdel "%u"
45delete 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>
49The account migration procedure becomes really simple when samba is configured to use
50the <FONT COLOR=purple>smbldap-tools</FONT>. Samba configuration (smb.conf file) must contain the
51directive defined above to properly call the script for managing users, groups and computer accounts.
52The 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>
62