Slide

  • LINUX

    LINUX:In 1969 AT&T made a decision to withdraw Multics and go with GECOS (General Electric Comprehensive Operating Supervisor / System), with AT & T in Bells Lab when Multics was withdrawn some of the programmers named Ken Thompson and Dennis Ritchie decided to rewrite operating system in order to support low cost computer..To Know More

    CLICK HERE

  • MICROSOFT

    MICROSOFT:Microsoft was established to develop and sell BASIC interpreters for the Altair 8800. It rose to dominate the home computer operating system market with MS-DOS in the mid-1980s,followed by the Microsoft Windows line of operating systems. To Know More

    CLICK HERE

  • CISCO

    CISCO:During the early 1980s, there was a married couple namely Len and Sandy Bosack who used to work in two different departments of computer located in Stanford University. This couple was facing problem in making their computers communicate with each other To Know More

    CLICK HERE

showinfo=1

SAMBA 4 ACTIVE-DIRECTORY CONFIGURATION

SAMBA 4 ACTIVE-DIRECTORY CONFIGURATION


Note:- please disable selinux and firewall before doing things remove old version of samba if available .

Here are the steps:
Centos 6 or Higher
Configure DNS Frist
Note DNS Should be working fine….
# yum install bind*
# vi /etc/named.conf
Append below this line “recursion yes;”
forwarders {172.20.1.9; 8.8.8.8; };  your dns ip if available otherwise create fzone and rzone and the entire configuration of dns……
allow-query { localhost; };  change localhost to any
save file and exit
# service named restart
#vi /etc/resolv.conf
Append
nameserver {your ip address}

save and exit

#service named restart
# host -t A domain.sarien.com.

#nslookup domain.sarien.com

It should show your ip address
Note:- create acl line if required……..
# yum remove samba*


# yum install libacl-devel e2fsprogs-devel gnutls-devel readline-devel python-devel gdb gcc gcc-c++ cups-devel pam-devel ctdb-devel openldap-devel libsmbclient libacl-devel libblkid-devel gnutls-devel readline-devel python-devel gdb pkgconfig krb5-workstation zlib-devel setroubleshoot-server setroubleshoot-plugins policycoreutils-python popt-devel libpcap-devel sqlite-devel libidn-devel libsemanage-python setools-libs-python setools-libs libxml2-devel libacl-devel libsepol-devel libattr-devel keyutils-libs-devel cyrus-sasl-devel

1) Install the needed packages for the Python2.7 first
#yum groupinstall "Development tools"*
#yum install zlib-devel*
#yum install bzip2-devel*
#yum install openssl-devel*
#yum install ncurses-devel*
#yum install readline-devel*

2) Download the Python source code. (You can use also latest version 3.xx)
#wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2
#tar xvf Python-2.7.3.tar.bz2
#./configure --prefix=/usr/local --with-threads --enable-shared*
#make && make install
         Take note: you can use *make altinstall *(if you want two python
(a big and small, lol), meaning Python2.4 and Python2.7

#ln -s /usr/local/lib/libpython2.7.so.1.0 /usr/lib*

         If you can't find it, please do search.

3) Check the python if the version is correct.
#python  -V

       Python 2.7.3 (default, Jan  23 2013, 16:43:58)
       [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
       Type "help", "copyright", "credits" or "license" for more
information.
       >>>

4) Optional (running before testing using step#3)
#wget  http://pypi.python.org/packages/source/d/distribute/distribute-0.6.27.tar.gz

#tar xvf distribute-0.6.27.tar.gz*
#cd  distribute-0.6.27*
#python2.7 setup.py install*
#easy_install-2.7 virtualenv*

5) Finally check using yum
#yum search elinks


Then refer to the howto in samba for details
#git clean -x -f -d*
#rm -rf /usr/local/samba*


To update python
#export PATH=/PATH/TO/PYTHON2.7/BIN:$PATH
#python -V


# yum install git

# git clone -b v4-0-stable git://git.samba.org/samba.git samba-v4-0-stable

# cd samba-v4-0-stable
# ./configure --enable-debug --enable-selftest
# make
9. If everything reports okay you can then install samba:
# make install

------Samba restart stop start script----

#vi /etc/init.d/samba4

#! /bin/bash
#
# samba4 Bring up/down samba4 service
#
# chkconfig: - 90 10
# description: Activates/Deactivates all samba4 interfaces
# configured to start at boot time.
#
### BEGIN INIT INFO
# Provides:
# Should-Start:
# Short-Description: Bring up/down samba4
# Description: Bring up/down samba4
### END INIT INFO
# Source function library.
. /etc/init.d/functions

if [ -f /etc/sysconfig/samba4 ]; then
. /etc/sysconfig/samba4
fi

CWD=$(pwd)
prog="samba4"
pidfile=/usr/local/samba/var/run/smbd.pid

start() {
# Attach irda device
echo -n $"Starting $prog: "
/usr/local/samba/sbin/samba
sleep 2
if ps ax | grep -v "grep" | grep -q /samba/sbin/samba ; then success $"samba4 startup"; else failure $"samba4 startup"; fi
echo
}
stop() {
# Stop service.
echo -n $"Shutting down $prog: "
killall samba
sleep 2
if ps ax | grep -v "grep" | grep -q /samba/sbin/samba ; then failure $"samba4 shutdown"; else success $"samba4 shutdown"; fi
echo
}
status() {
if [ -e "$pidfile" ]
then
echo -n " Process running ..."
cat $pidfile
sleep 1
/usr/local/samba/sbin/samba --show-build
else
echo " Process not runing..."
fi}

# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
status)
status irattach
;;
restart|reload)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|restart|status}"
exit 1
esac

exit 0

:wq!


# chmod 755 /etc/init.d/samba4
# chown root:root /etc/init.d/samba4
# chkconfig --add samba4


Creating Domain

# /usr/local/samba/bin/samba-tool domain provision
The 'domain provision' tool should pick defaults for you automatically. Change to your configurations if necessary:
Realm [SARIEN.COM]: Domain [SARIEN]: (press Enter)
Server Role (dc, member, standalone) [dc]: (press Enter)
DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]: (press Enter)
DNS forwarder IP address (write 'none' to disable forwarding) [your dns ip address]:
Administrator password:
Retype password:
If above was successful, stdout should look similar to this:
Creating CN=MicrosoftDNS,CN=System,DC=SARIEN,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: samba
NetBIOS Domain: SARIEN
DNS Domain: SARIEN.com
DOMAIN SID: S-1-5-xx-xxxxxxxxxx-xxxxxxxxx-xxxxxxxxxx

Note:- if the above process fail delete file /usr/local/samba/etc/smb.conf rerun the command /usr/local/samba/bin/samba-tool domain provision

# /etc/init.d/samba4 start
Or
# service samba4 start

REBOOT THE SYSTEM


----To check----

# /usr/local/samba/sbin/samba –V
Version 4.0.5
# /usr/local/samba/bin/smbclient –version
Version 4.0.5
# /usr/local/samba/bin/smbclient -L localhost -U%
Output-----

Domain=[SARIEN] OS=[Unix] Server=[Samba 4.1.0pre1-GIT-c1fb37d]

Sharename Type Comment
--------- ---- -------
netlogon Disk
sysvol Disk
IPC$ IPC IPC Service (Samba 4.1.0pre1-GIT-c1fb37d)
Domain=[SARIEN] OS=[Unix] Server=[Samba 4.1.0pre1-GIT-c1fb37d]

Server Comment
--------- -------

Workgroup Master
--------- -------

Note:- if the above output does not come it show an error restart samba4


# cat /usr/local/samba/etc/smb.conf

Output-----
# Global parameters
[global]
workgroup = SARIEN
realm = SARIEN.COM
netbios name = SAMBA
server role = active directory domain controller
dns forwarder = {you ip address}

[netlogon]
path = /usr/local/samba/var/locks/sysvol/SARIEN.com/scripts
read only = No

[sysvol]
path = /usr/local/samba/var/locks/sysvol
read only = No


Configure Kerberos
In CentOS 6.3 or 6.4, kerberos is handled by the '/etc/krb5.conf' file. Make a backup copy of this original file, and then replace the existing file, if any, with the sample from /usr/local/samba/share/setup/krb5.conf.
# cp /usr/local/samba/share/setup/krb5.conf /etc/krb5.conf

Edit the file and replace ${REALM} with the value you chose for the '--realm' parameter of the provision command earlier, make sure to enter the realm in uppercase letters. It should look something like this:
# vi /etc/krb5.conf
[libdefaults]
default_realm = SARIEN.COM
dns_lookup_realm = false
dns_lookup_kdc = true
:wq!

Testing Kerberos
The simplest test is to use the 'kinit' command as follows:
# kinit administrator@SARIEN.COM
Password for administrator@SARIEN.COM:
Warning: Your password will expire in 41 days on Sun Feb 3 14:21:51 2013
NOTE: You must specify your domain realm SARIEN.COM in uppercase letters!!
'kinit' will not give you any output. To verify that Kerberos is working, and that you received a ticket, run the following:

If you get the following error--- kinit: Cannot resolve servers for KDC in realm---
Check the resolv.conf file nameserver entry is proper or not…


# klist
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: administrator@SARIEN.COM

Valid starting Expires Service principal
12/23/12 15:39:28 12/24/12 01:39:28 krbtgt/SARIEN.COM@SARIEN.COM
renew until 12/24/12 15:39:19



NTP (Network Time Protocol)
Make sure that 'ntpd' is running and installed. If 'ntpd' is not installed you can install it with YUM:
# yum install ntp
Enable ntpd:
# /etc/init.d/ntpd start
Also, use the 'chkconfig' command to have ntpd run at boot:
# chkconfig ntpd on
NOTE: CORRECT TIME IS IMPORTANT FOR KERBEROS TO FUNCTION CORRECTLY. MAKE SURE NTPD IS RUNNING ON THE SAMBA SERVER AND THAT YOU SET THE WINDOWS CLIENT TO THE MOST ACCURATE TIME POSSIBLE! THE WINDOWS CLIENT TIME SHOULD BE SET TO THE EXACT TIME OF THE SAMBA 4 SERVER WITHIN A FEW SECONDS IF POSSIBLE.

Now creating users, groups and OU can be done using commandline however you can install Windows Remote Administration Tools onto Windows to perform these activities. Download the Windows Remote Administration Tools from the links provided below


Windows 7

http://www.microsoft.com/downloads/details.aspx?FamilyID=7D2F6AD7-656B-4313-A005-4E344E43997D&displaylang=en

Windows Vista

http://www.microsoft.com/downloads/details.aspx?FamilyId=9FF6E897-23CE-4A36-B7FC-D52065DE9960&displaylang=en (Vista)

Windows XP Administration Tools Pack & Support Tools

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=86b71a4f-4122-44af-be79-3f101e533d95

http://download.microsoft.com/download/3/e/4/3e438f5e-24ef-4637-abd1-981341d349c7/WindowsServer2003-KB892777-SupportTools-x86-ENU.exe



After you create some users, if required can also set up roaming profiles.




# mkdir /usr/local/samba/var/profiles
# vi /usr/local/samba/etc/smb.conf

Append the following to the file

[profiles]
path = /usr/local/samba/var/profiles
read only = no

Now Login to windows, start Active Directory Users and Computers, select all the users, right click, and hit properties. Under the profile tab, in the Profile path, type the path to your share along with %USERNAME% as follows

\\sambaserver.linuxdrops.com\profiles\%USERNAME%

Now login with one of the users and, you should see that the profile has been synced onto the samba server.





42 comments:

  1. Your blog is really nice. If I may share some insight, traffic studies on blogs show most people read blogs on Mondays. So it should encourage blogger to write new updates over the weekend primarily.
    stpetehealthpro.com |

    ReplyDelete
  2. I think this is definitely an amazing project here. So much good will be coming from this project. The ideas and the work behind this will pay off so much.
    www.businessanalysissummit.com |

    ReplyDelete
  3. Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you.
    edtechhackathon.com |

    ReplyDelete
  4. I am very happy to find this site. I wanted to thank you for this immense read!! I absolutely enjoying every petite bit of it and I have you bookmarked to test out new substance you post. -
    3gathome.com |

    ReplyDelete
  5. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value. Im glad to have found this post as its such an interesting one! I am always on the lookout for quality posts and articles so i suppose im lucky to have found this! I hope you will be adding more in the future..
    autosalesdude.com |

    ReplyDelete
  6. Your blog is very popular! This paper content rich and colorful, adopt unique writing thinking.I think they will like to see this article.
    escoffiertruck |

    ReplyDelete
  7. This is a very good post. Just wonderful. Truly, I am amazed at what informative things you've told us today.
    isid.biz |

    ReplyDelete
  8. Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include.
    earthtrustee |

    ReplyDelete
  9. Before you start the whole procedure, quick study is required regarding the important methodology of packers and movers. -

    Movers and Packers in Gurgaon
    Movers and Packers in Bangalore
    Movers and Packers in Hyderabad

    ReplyDelete
  10. Even so, you can find those who feel that they may productively manage the desired action regarding residence going independently. Although it's not at all possible usually because they don't understand the belief that they will often bust their own useful products. They do not desire to invest money.


    Visit @ http://www.local5th.in/packers-and-movers-bangalore/

    http://www.local5th.in/packers-and-movers-gurgaon/

    ReplyDelete
  11. Furthermore avoid moving companies in which telephone anyone more than once along with way of use their own providers via item new moving rates along with enjoyable presents.

    Visit @ http://www.local5th.in/packers-and-movers-bangalore/

    http://www.local5th.in/packers-and-movers-gurgaon/

    ReplyDelete

  12. I would like to visit again :
    http://www.local5th.in/packers-and-movers-hyderabad/

    ReplyDelete

  13. Nice blog :
    http://www.local5th.in/packers-and-movers-bangalore/

    ReplyDelete

  14. Useful blog :
    http://www.local5th.in/packers-and-movers-mumbai/

    ReplyDelete

  15. Useful blog :
    http://www.local5th.in/packers-and-movers-delhi/

    ReplyDelete

  16. I would like to visit again :
    http://www.local5th.in/packers-and-movers-gurgaon/

    ReplyDelete
  17. packers and movers hyderabad @ http://top8th.in/packers-movers-hyderabad/

    packers and movers in gurgaon @ http://top8th.in/packers-movers-gurgaon/

    packers and movers in delhi @ http://best5th.in/packers-movers-delhi/

    packers and movers delhi @ http://top8th.in/packers-movers-delhi/

    ReplyDelete
  18. Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you.http://www.randy-houser.com |

    ReplyDelete
  19. Excellent. one of the best articles I have every read. This is the information which I have been searching. Great information.
    Stvin Cent House |

    ReplyDelete
  20. Write mega, thats all I have to clear. sbobet Just, it seems as equal proviso you relied by the video to dispose your point. You evidently compose outdated what youre talking about, why lob passed on your intelligence by without delay relocation videos to your weblog when you could follow charitable us impressive enlightening to read?
    http://www.essex-x-tech.com |

    ReplyDelete
  21. Considering that it isn't really possible to wrap up everything weeks upfront, it's a significantly better notion to start out packing specific goods upfront. Once the idea turns into official that the move may arise the idea is a great idea to start out packing goods that are certainly not utilized frequently, like vacation décor, seasonal clothing, and also knick-knacks.
    Visit for more details: -
    Packers and Movers Bangalore Or http://ad-vision.co.in/packersmoversbangalore.html
    Packers and Movers Delhi Or http://ad-vision.co.in/packersmoversdelhi.html
    Packers and Movers Gurgaon Or http://ad-vision.co.in/packersmoversgurgaon.html
    Packers and Movers Hyderabad Or http://ad-vision.co.in/packersmovershyderabad.html
    Packers and Movers Mumbai Or http://ad-vision.co.in/packersmoversmumbai.html
    Packers and Movers Navi Mumbai Or http://ad-vision.co.in/packersmoversnavimumbai.html
    Packers and Movers Noida Or http://ad-vision.co.in/packersmoversnoida.html
    Packers and Movers Pune Or http://ad-vision.co.in/packersmoverspune.html

    ReplyDelete
  22. movers and packers gurgan @ http://www.corporatemoversindia.com/
    packers and movers gurgaon @ http://www.corporatemoversindia.com/
    packers and movers in gurgaon @ http://www.corporatemoversindia.com/
    packers movers gurgaon @ http://www.corporatemoversindia.com/
    movers and packers in gurgaon @ http://www.corporatemoversindia.com/
    packers movers in gurgaon @ http://www.corporatemoversindia.com/
    packers & movers in gurgaon @ http://www.corporatemoversindia.com/
    movers packers gurgaon @ http://www.corporatemoversindia.com/
    packer and movers in gurgaon @ http://www.corporatemoversindia.com/
    movers packers in gurgaon @ http://www.corporatemoversindia.com/
    packers & movers gurgaon @ http://www.corporatemoversindia.com/
    packer and mover in gurgaon @ http://www.corporatemoversindia.com/
    gurgaon packers and movers @ http://www.corporatemoversindia.com/
    local packers and movers in gurgaon @ http://www.corporatemoversindia.com/
    best packers and movers in gurgaon @ http://www.www.corporatemoversindia.com/
    movers & packers in gurgaon @ http://www.corporatemoversindia.com/
    gati packers and movers gurgaon @ http://www.corporatemoversindia.com/
    packer and movers gurgaon @ http://www.corporatemoversindia.com/
    packers in gurgaon @ http://www.corporatemoversindia.com/
    packer and mover gurgaon @ http://www.corporatemoversindia.com/
    international packers and movers in gurgaon @ http://www.corporatemoversindia.com/
    movers and packers gurgaon rates @ http://www.corporatemoversindia.com/
    packer mover gurgaon @ http://www.corporatemoversindia.com/
    packers gurgaon @ http://www.corporatemoversindia.com/
    top packers and movers in gurgaon @ http://www.corporatemoversindia.com/
    mover and packers gurgaon @ http://www.corporatemoversindia.com/
    movers & packers gurgaon @ http://www.corporatemoversindia.com/
    best movers and packers in gurgaon @ http://www.corporatemoversindia.com/
    packers and movers gurgaon to Bangalore @ http://www.corporatemoversindia.com/
    gurgaon movers and packers @ http://www.corporatemoversindia.com/
    mover and packers in gurgaon @ http://www.corporatemoversindia.com/
    packers and mover gurgaon @ http://www.corporatemoversindia.com/
    gurgaon packers movers @ http://www.corporatemoversindia.com/
    best packers and movers gurgaon @ http://www.corporatemoversindia.com/
    local packers and movers gurgaon @ http://www.corporatemoversindia.com/
    top 5 packers and movers in gurgaon @ http://www.corporatemoversindia.com/
    packers and movers in gurgaon ncr @ http://www.corporatemoversindia.com/
    mover and packer in gurgaon @ http://www.corporatemoversindia.com/
    gurgaon movers packers @ http://www.corporatemoversindia.com/
    packers and movers services in gurgaon @ http://www.corporatemoversindia.com/
    movers and packers gurgaon reviews @ http://www.corporatemoversindia.com/
    local movers and packers gurgaon @ http://www.corporatemoversindia.com/

    ReplyDelete
  23. Packers and Movers Chandigarh Or http://www.best7th.in/packers-and-movers-chandigarh/
    Packers and Movers Hyderabad Or http://www.best7th.in/packers-and-movers-hyderabad/
    Packers and Movers Bangalore Or http://www.best7th.in/packers-and-movers-bangalore/
    Packers and Movers Kolkata Or http://www.best7th.in/packers-and-movers-kolkata/

    ReplyDelete
  24. packers and movers in bangalore

    Salient Greatest shows while using the really fantastic Along with Breathtaking Wicker Lawn Household furniture Pre-specified
    The unique wicker yard family region established is only with regards to the well-advised family region bundles which can be not only low-priced, even so unbelievably elegant. Almost all wicker family region bundles may very well previous concerning a very long time, even so you will need to hold health care as well as retain merchandise nicely. Clean-up as well as clean-up within the wicker yard furniture pieces could be a must also which usually needs to be concluded making use of regular situations involving strength. Because wicker yard furniture pieces just what meals ended up being at the outside the house, you will likely include things like airborne garden soil as well as airborne garbage as well as moisture by means of the web about the net profit from the a .
    packers and movers in noida

    ReplyDelete
  25. packers and movers in gurgaon
    Moving purpose -- Efficient methods
    Moving function is generally variants upmarket debts due to the fact plan of action usually ought to be put however aiding might be acquiring accomplished. Manipulate several signs and symptoms when getting displaying related to which regularly on a regular basis plan of action nonetheless receded tension given which are accomplished.

    1. Come up with a Trip Beyond your property Call for
    As a result of this particular extraordinary look after remedy methods it may fast linked to both men and women on top of that movers which could locate variants household system variety property household furniture on top of that apparatus in only suitable area. Various indoor starting aiding both men and women on top of that purpose both men and women should certainly ease a complete comforting foundation period course of action. Pressure made available additional replicates make use of men and women help to make together with your virtually any foot-hold purpose in addition to around the well-known holiday place purpose.

    packers and movers in pune

    ReplyDelete

Note:- Comment as: Option available to post without login select "Anonymous" from the drop down...........

For Latest Updates: Subscribe Now | | Test Your Knowledge, Take a Quiz now Click Here | | Site Best Viewed In Firefox

X