[samba-jp:21211] Re: Samba と OpenLDAP によるドメインコントローラの構築について

t-kobayashi t-kobayashi @ organ-ndl.co.jp
2010年 11月 22日 (月) 17:44:52 JST


$B"(J]B8=q8K%9%l%C%I$r8+$?$H$3$m!"J8;z$,2=$1$F$7$^$C$F$$$?$N$G(B
$B!!0J2<!"(B[samba-jp:21210] $B$NFbMF$r:FAw$7$^$9!#(B
$B!!?=$7Lu$"$j$^$;$s!#(B



$B$?$+$O$7$b$H$N$VMM(B

$B$4JV?.M-Fq$&$4$6$$$^$9!#(B

$B7k2L$+$i?=$7>e$2$^$9$H!"$?$+$O$7MM$K65$($F$$$?$@$$$?$h$&$K(B
smbpasswd -e <$B%f!<%6L>(B> $B$r<B9T$7$?$H$3$m%m%0%*%s$,=PMh$k$h$&$K$J$j$^$7$?!#(B

pdbedit -v <$B%f!<%6L>(B> $B$G3NG'$9$k$H(B
Account Flags: [DU ]
$B$H$J$C$F$$$^$7$?$,(B

smbpasswd -e <$B%f!<%6L>(B> $B$r<B9T$9$k$H(B
Account Flags: [U ]
$B$H$J$j!"$=$N8e%m%0%$%s$,=PMh$k$h$&$K$J$j$^$7$?!#(B

$BM-Fq$&$4$6$$$^$7$?!#(B



$B$H$3$m$G!"DI2C$7$?%f!<%6$N%Q%9%o!<%I$r @ _Dj$9$k$N$K(B net rpc user password $B$r(B
$B;HMQ$7$F$$$?$N$G$9$,!"(Bsmbpasswd $B$r;HMQ$7$?$H$-$O(B Disable $B$K$O$J$j$^$;$s(B
$B$G$7$?!#(B
$B0J2<!"<B9T7k2L$G$9!#(B



$B"-"-"-(B $B-!(B net rpc user password $B$r;HMQ$7$?>l9g(B $B"-"-"-(B
[root @ centos55 ~]# net rpc user add user91 -U Administrator
Password:
Added user user91

[root @ centos55 ~]# pdbedit -v user91
Unix username: user91
NT username: user91
Account Flags: [DU ]
User SID: S-1-5-21-3472322114-4059571657-1568091653-1007
Primary Group SID: S-1-5-21-3472322114-4059571657-1568091653-513
Full Name: user91
Home Directory: \\centos55\user91
HomeDir Drive:
Logon Script:
Profile Path: \\centos55\user91\profile
Domain: SAMBA
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: never
Kickoff time: never
Password last set: 0
Password can change: 0
Password must change: 0
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

[root @ centos55 ~]# net rpc user password user91 -U Administrator
Password:
Enter new password for user91:

[root @ centos55 ~]# pdbedit -v user91
Unix username: user91
NT username: user91
Account Flags: [DU ]
User SID: S-1-5-21-3472322114-4059571657-1568091653-1007
Primary Group SID: S-1-5-21-3472322114-4059571657-1568091653-513
Full Name: user91
Home Directory: \\centos55\user91
HomeDir Drive:
Logon Script:
Profile Path: \\centos55\user91\profile
Domain: SAMBA
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: never
Kickoff time: never
Password last set: 0
Password can change: 0
Password must change: 0
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
$B",",",",",",",",",",",",",",",",",",",(B



$B"-"-"-(B $B-"(B smbpasswd $B$r;HMQ$7$?>l9g(B $B"-"-"-(B
[root @ centos55 ~]# net rpc user add user92 -U Administrator
Password:
Added user user92

[root @ centos55 ~]# pdbedit -v user92
Unix username: user92
NT username: user92
Account Flags: [DU ]
User SID: S-1-5-21-3472322114-4059571657-1568091653-1009
Primary Group SID: S-1-5-21-3472322114-4059571657-1568091653-513
Full Name: user92
Home Directory: \\centos55\user92
HomeDir Drive:
Logon Script:
Profile Path: \\centos55\user92\profile
Domain: SAMBA
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: never
Kickoff time: never
Password last set: 0
Password can change: 0
Password must change: 0
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

[root @ centos55 ~]# smbpasswd user92
New SMB password:
Retype new SMB password:

[root @ centos55 ~]# pdbedit -v user92
Unix username: user92
NT username: user92
Account Flags: [U ]
User SID: S-1-5-21-3472322114-4059571657-1568091653-1009
Primary Group SID: S-1-5-21-3472322114-4059571657-1568091653-513
Full Name: user92
Home Directory: \\centos55\user92
HomeDir Drive:
Logon Script:
Profile Path: \\centos55\user92\profile
Domain: SAMBA
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: never
Kickoff time: never
Password last set: $B6b(B, 19 11$B7n(B 2010 14:07:48 JST
Password can change: $B6b(B, 19 11$B7n(B 2010 14:07:48 JST
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
$B",",",",",",",",",",",",",",",",",",",(B



$B"-"-"-(B $B-#(B net rpc user add <$B%f!<%6L>(B> <$B%Q%9%o!<%I(B> $B"-"-"-(B
[root @ centos55 ~]# net rpc user add user93 user93pass -U Administrator
Password:
Added user user93

[root @ centos55 ~]# pdbedit -v user93
Unix username: user93
NT username: user93
Account Flags: [DU ]
User SID: S-1-5-21-3472322114-4059571657-1568091653-1010
Primary Group SID: S-1-5-21-3472322114-4059571657-1568091653-513
Full Name: user93
Home Directory: \\centos55\user93
HomeDir Drive:
Logon Script:
Profile Path: \\centos55\user93\profile
Domain: SAMBA
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: never
Kickoff time: never
Password last set: 0
Password can change: 0
Password must change: 0
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
$B",",",",",",",",",",",",",",",",",",",(B


$B=i?4<T$N$?$a!"2?8N$3$N$h$&$J0c$$$,$"$k$N$+J,$+$i$J$$$N$G$9$,(B
editposix $B4D6-$G%Q%9%o!<%I$N @ _Dj$*$h$SJQ99$r9T$&>l9g$O(B
smbpasswd $B0J30$G$O9T$o$J$$J}$,$h$$$N$G$7$g$&$+!)(B




(2010/11/19 8:59), TAKAHASHI Motonobu wrote:
> > $B$?$+$O$7$b$H$N$V$G$9!#(B
> >
> > 2010$BG/(B11$B7n(B18$BF|(B17:10 t-kobayashi <t-kobayashi @ organ-ndl.co.jp>:
>> >> $B%I%a%$%s$X$N;22C$K$O @ .8y$7$F$*$j$^$9!#$7$+$7!"(B
>> >> net sam provision $B%3%^%s%I$GEPO?$5$l$?%f!<%6!<(B Administrator $B$G$O(B
>> >> $B%m%0%*%s$G$-$k$N$G$9$,!"(Bnet rpc user add $B%3%^%s%I$GDI2C$7$?%f!<(B
$B%6!<$G$O(B
>> >> $B%m%0%*%s$,$G$-$^$;$s!#(B
>> >>
>> >> $B @ _Dj$7$?%Q%9%o!<%I$rF~NO$7$?$H$-$O!"(B
>> >>
>> >> $B!V%f!<%6!<$N%"%+%&%s%H$O;HMQITG=$K$J$C$F$$$^$9!#(B
>> >> $B%7%9%F%`4IM}<T$KLd$$9g$o$;$F$/$@$5$$!#!W(B
>> >>
>> >> $B$H$$$&%a%C%;!<%8$,I=<($5$l$^$9$,!"(B
> > $B<j85$K$"$k(B Samba $B8!>Z4D6-$G(B
> >
> > net rpc user add user01 user01pass -U administrator%password
> >
> > $B$N$h$&$KF~NO$7$F:n @ .$7$F$_$^$7$?$,!"FC$K8=>]$O$G$^$;$s$G$7$?!#(B
> > $B8!>Z4D6-$O!"0J2<$+$i%@%&%s%m!<%I$G$-$^$9!#(B
> >
> >
http://wiki.samba.gr.jp/mediawiki/index.php?title=Samba%E3%83%89%E3%83%A1%E3%82%A4%E3%83%B3%E8%A9%95%E4%BE%A1%E7%92%B0%E5%A2%83%28lenny%29
> >
> > $B$=$l$O$=$&$H!":n @ .$7$?%f!<%6$,(B pdbedit -Lw $B%3%^%s%I$J$I$G;2>H$9$k$H(B
> > $BI,$:L58z$J>uBV$K$J$C$F$7$^$&$N$G$"$l$P!"(Bpdbedit -c $B%3%^%s%I$J$I$GL@(B
$B<(E*$K(B
> > $B%f!<%6$N>uBV$rJQ$($F$_$F$O$I$&$G$7$g$&$+!#(B
> >
> > $B4JC1$K9T$&$J$i(B smbpasswd -e $B%f!<%6L>(B $B$G$b$$$1$k$H;W$$$^$9!#(B
> >
> > $B$=$l$G$b$@$a$J$i!":n @ .$7$?%f!<%6$r(B
> >
> > pdbedit -v $B%f!<%6L>(B
> >
> > $B$GI=<($7$?:]$N>pJs$r8+$;$F$$$?$@$1$l$P$H;W$$$^$9!#(B
> >
> > ---
> > TAKAHASHI Motonobu <monyo @ monyo.com>
> >




samba-jp メーリングリストの案内