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.





80 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. 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
  3. 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
  4. 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
  5. 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
  6. This is a very good post. Just wonderful. Truly, I am amazed at what informative things you've told us today.
    isid.biz |

    ReplyDelete
  7. 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
  8. 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
  9. 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

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

    ReplyDelete

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

    ReplyDelete

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

    ReplyDelete
  13. 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
  14. 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
  15. 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
  16. 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
  17. 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
  18. 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
  19. 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
  20. 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
  21. This comment has been removed by the author.

    ReplyDelete
  22. Packers and Movers Pune, http://www.best7th.in/packers-and-movers-pune/
    Packers and Movers Gurgaon, http://www.best7th.in/packers-and-movers-gurgaon/
    Packers and Movers Chennai, http://www.best7th.in/packers-and-movers-chennai/
    Packers and Movers Mumbai, http://www.best7th.in/packers-and-movers-mumbai/

    ReplyDelete
  23. This comment has been removed by the author.

    ReplyDelete
  24. An excellent information provided thanks for all the information
    visit here : Best Packing Moving Organisation in Hyderabad @
    Packers And Movers Hyderabad charges
    Packers and Movers Hyderabad to Kolkatta

    packers and movers lingampally


    ReplyDelete
  25. Packers And Movers Chennai Local Household Shifting Service, Get Free Best Price Quotes Local Packers and Movers in Chennai List, Compare Charges, Save Money And Time.
    Packers And Movers In Chennai Local

    ReplyDelete


  26. Book Best and Verified packers and movers in Gurgaon and Pune, Expert in Home Relocation within or outside Gurgaon and Pune. Compare 3 quotes from nearby packers and movers in Pune and Gurgaon. Get 100% safe & affordable packing moving from Professional Packers and Movers.

    Packers and movers in Gurgaon
    Packers and movers rates in Gurgaon
    Packers and movers Gurgaon charges
    Packers and movers rates in Pune
    Packers and movers Pune charges
    Packers and movers Pune rates

    ReplyDelete
  27. Thanks for sharing.Introduce this year's most popular magical short video app Likee. Super Star rommel vega is also in Likee. Have a look here!

    ReplyDelete

  28. We have been in the industry for several years now and have been able to satisfy hundreds of clients who have come back to us wanting more. Our Escorts Service in Agra to book so that their needs may be fulfilled. We establish a detailed conversation with our clients and help them choose the best amongst the various choices available.
    Female Escorts in Agra
    Russian Escorts in Agra
    Female Escorts in Faridabad
    Call Girls in Faridabad

    ReplyDelete

  29. We transport all kinds of goods. Home Shifting Services are customized as per customer requirements. We deliver your goods safely at the correct location. Our company is committed to providing high-quality service.
    Best Home Shifting Services in Delhi Ncr

    ReplyDelete
  30. I thank you for the information and articles you provided

    ReplyDelete
  31. Good post but I was wondering if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit further. Appreciate it! 먹튀검증

    ReplyDelete
  32. Your website is really cool and this is a great inspiring article. 먹튀검증사이트

    ReplyDelete
  33. Really satisfied with all the information I have found in this article. It gives immense knowledge on physical education, it is very helpful and quite generous to spread a good message. The author has done a brilliant job on summing all the points here. You just made a new fan with your writing skills. Cheers! 메이저놀이터

    ReplyDelete
  34. I invite you to the page where you can read with interesting information on similar topics. 토토사이트

    ReplyDelete
  35. I read this article. I think You put a lot of effort to create this article. I appreciate your work. seo tijuana

    ReplyDelete
  36. definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog! 먹튀폴리스

    ReplyDelete
  37. thank you for the information provided, we are waiting for the next info

    ReplyDelete
  38. Dieses Mal werde ich euch allen Informationen zur Verfügung stellen. Für diejenigen, die weiterhin wissen möchten, was in der Welt der Technologie jetzt passiert, können Sie mehrere Blogs sehen, die weiterhin aktiv Beiträge über die neueste Technologie bereitstellen.

    ReplyDelete
  39. Amazing information providing by your article, thank you so much for taking the time to share a wonderful article.

    ReplyDelete
  40. Hi there

    Very nice content and blog, I found it very informative and useful, hope to read more nice articles like this one around here,

    Keep sharing the best content,

    Best regards!

    Your follower

    Salvatore from:

    Compra de Ingresso on-line – Os ingressos para visitar o Patrimônio Mundial Natural e uma das 7 Maravilhas da Natureza, que abriga as Cataratas do Iguaçu, são limitados e vendidos exclusivamente on-line, com agendamento de dia e horário para o passeio no site Tour Cataratas Cataratas do Iguaçu É importante lembrar que não existe a opção de compra de bilhete físico no parque. É necessário adquirir o ingresso de entrada no Parque Nacional do Iguaçu com antecedência em sites autorizados.

    Thanks and take care

    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