Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TetraWiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Vishal Megamart
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== How To Install & Configure Samba4 == [root@ldap]# /usr/local/samba/bin/samba-tool domain provision Realm [TPG.COM]: Domain [TPG]: Server Role (dc, member, standalone) [dc]: DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]: DNS forwarder IP address (write 'none' to disable forwarding) [10.10.16.30]: Administrator password: < p@$$W0RD > Retype password: < p@$$W0RD > Looking up IPv4 addresses More than one IPv4 address found. Using 10.10.16.61 Looking up IPv6 addresses No IPv6 address will be assigned Setting up secrets.ldb Setting up the registry Setting up the privileges database Setting up idmap db Setting up SAM db Setting up sam.ldb partitions and settings Setting up sam.ldb rootDSE Pre-loading the Samba 4 and AD schema Adding DomainDN: DC=tpg,DC=com Adding configuration container Setting up sam.ldb schema Setting up sam.ldb configuration data Setting up display specifiers Adding users container Modifying users container Adding computers container Modifying computers container Setting up sam.ldb data Setting up well known security principals Setting up sam.ldb users and groups Setting up self join Adding DNS accounts Creating CN=MicrosoftDNS,CN=System,DC=tpg,DC=com Creating DomainDnsZones and ForestDnsZones partitions Populating DomainDnsZones and ForestDnsZones partitions Setting up sam.ldb rootDSE marking as synchronized Fixing provision GUIDs A Kerberos configuration suitable for Samba 4 has been generated at /usr/local/samba/private/krb5.conf Once the above files are installed, your Samba4 server will be ready to use Server Role: active directory domain controller Hostname: ldap NetBIOS Domain: TPG DNS Domain: tpg.com DOMAIN SID: S-1-5-21-536971849-2238763039-3306137457 [root@ldap]# /usr/local/samba/sbin/samba [root@ldap]# /usr/local/samba/bin/smbclient --version Version 4.0.0 [root@ldap]# /usr/local/samba/bin/smbclient -L localhost -U% Domain=[TPG] OS=[Unix] Server=[Samba 4.0.0] Sharename Type Comment --------- ---- ------- netlogon Disk sysvol Disk IPC$ IPC IPC Service (Samba 4.0.0) Domain=[TPG] OS=[Unix] Server=[Samba 4.0.0] Server Comment --------- ------- Workgroup Master --------- ------- [root@ldap]# /usr/local/samba/bin/smbclient //localhost/netlogon -UAdministrator%'Pa$$w0rd' -c 'ls' Domain=[TPG] OS=[Unix] Server=[Samba 4.0.0] . D 0 Tue Jan 8 01:41:30 2013 .. D 0 Tue Jan 8 01:41:40 2013 60452 blocks of size 1048576. 49834 blocks available [root@samba ~]# cat /etc/resolv.conf # Generated by NetworkManager domain tpg.com nameserver 10.10.16.61 [root@ldap ~]# host -t SRV _kerberos._udp.tpg.com. _kerberos._udp.tpg.com has SRV record 0 100 88 samba.tpg.com. [root@ldap ~]# host -t SRV _ldap._tcp.tpg.com _ldap._tcp.tpg.com has SRV record 0 100 389 samba.tpg.com. [root@ldap ~]# cp -pvr /usr/local/samba/share/setup/krb5.conf /etc/ `/usr/local/samba/share/setup/krb5.conf' -> `/etc/krb5.conf' [root@ldap ~]# cat /etc/krb5.conf [libdefaults] default_realm = TPG.COM dns_lookup_realm = false dns_lookup_kdc = true [root@ldap ~]# kinit administrator@TPG.COM Password for administrator@TPG.COM: Warning: Your password will expire in 41 days on fri sep 19 22:48:02 2013 [root@ldap ~]# klist Ticket cache: FILE:/tmp/krb5cc_0 Default principal: administrator@TPG.COM Valid starting Expires Service principal 01/09/13 00:16:17 01/09/13 10:16:17 krbtgt/TPG.COM@TPG.COM renew until 01/10/13 00:15:55 '''User creation Via Command Line''' [root@ldap samba-4.0.0]# /usr/local/samba/bin/samba-tool user add nitesh New Password: < vrpl@123 > Retype Password: < vrpl@123 > User 'nitesh' created successfully
Summary:
Please note that all contributions to TetraWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TetraWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)