Chapxer 6. MakingaUsers Happyn/ itle>spheadmsbody bgcolor="white"stext="b2ack"tlcnk="#0000FF"tvlcnk="#840084" alink="#0000FF"msuch4n classnavheader"mstab20 width="100%" summary="Navigatiy. header"mstrms hcctlspan="3" align="cenxer"mChapxer 6. MakingaUsers Happyn/ hms/trms rms d width="20%" align="left"msa accesskey="p"4href="Big500users.html">Prev  Nextn/ dms/trms/ ab20mshrmsptlemsuch4n classchapxer" lang="en"msuch4n classtitlepage"msuchmsuchmsh24n classtitle>n>csen m="happy">Chapxer 6. MakingaUsers Happyn/h2msptlemsptlemsuch>sptlemsptlemsdch4n classtoc"mspn>b>Tab20 oftCtn"en s
nspan4n classsehe1">na4href="happy.html#ass533373">In"roductry.spa>
nspan4n classsehe2">na4href="happy.html#ass533473">Alaignmen aTasksspa>
nspan4n classsehe1">na4href="happy.html#ass533626">Dissectry. and Discussry.spa>
nspan4n classsehe2">na4href="happy.html#ass534110">TechnicaltIssu&sspa>
nspan4n classsehe2">na4href="happy.html#ass535126">PoliticaltIssu&sspa>
nspan4n classsehe2">na4href="happy.html#ass535142">Installatiy. Ch&ck-Listspa>
nspan4n classsehe1">na4href="happy.html#ass535312">Samba Scns&v I 220mdnxatry.spa>
nspan4n classsehe2">na4href="happy.html#ldapsetup"mOpenLDAP Scns&v Ct figuratry.spa>
nspan4n classsehe2">na4href="happy.html#ch6-PAM-NSS">PAMaandlNSS Clien aCt figuratry.spa>
nspan4n classsehe2">na4href="happy.html#ch6-mclaive">Samba-3 PDCaCt figuratry.spa>
nspan4n classsehe2">na4href="happy.html#ass537434">InstallaandlCo figure Idealx SMB-LDAP Scriptsspa>
nspan4n classsehe2">na4href="happy.html#ass537824">LDAP Inieializatiy. and Creatry. oftUser and Group Accoun s
nspan4n classsehe2">na4href="happy.html#ch6-ptrcfg"mPriexeraCt figuratry.spa>
nspan4n classsehe1">na4href="happy.html#ch6-bldg1">Samba-3 BDCaCt figuratry.spa>
nspan4n classsehe1">na4href="happy.html#ass541902">Miscellaneous Scns&v Preparatry. Tasksspa>
nspan4n classsehe2">na4href="happy.html#ass541923">Ct figuringaDireheory Share Poinx Rootsspa>
nspan4n classsehe2">na4href="happy.html#ass542018">Ct figuringaProfiletDireheoriesspa>
nspan4n classsehe2">na4href="happy.html#ass542270">Preparatry. oftLogy. Scriptsspa>
nspan4n classsehe1">na4href="happy.html#ass542383">Windows Clien aCt figuratry.spa>
nspan4n classsehe2">na4href="happy.html#redirfold">Ct figuratry. oftDefault Profiletwith Fold&v Redirehery.spa>
nspan4n classsehe2">na4href="happy.html#ass543142">Ct figuratry. oftMS Outlook to Relocat& PST Filespa>
nspan4n classsehe2">na4href="happy.html#ass543219">Ct figuretDelete Cach&dlProfiles t Logyutspa>
nspan4n classsehe2">na4href="happy.html#ass543402">UploadingaPriexeraDrivers to4Samba Scns&vsspa>
nspan4n classsehe2">na4href="happy.html#ass543903">Sof"ware Installatiy.spa>
nspan4n classsehe2">na4href="happy.html#ass543939">Roll-out Image Creatry.spa>
nspan4n classsehe1">na4href="happy.html#ass543973">KeytPoinxs Learned
nspan4n classsehe1">na4href="happy.html#ass544096">Questiy.s and Answ&vsspa> It has beenasaid,4“nspan4n classquotm">nspan4n classemphasis">Aaday tnax4islwithout "roub20s istnot fulfilling.t Ratnmr, givet me a day ofttroub20s well handledtso tnax4I4cancbg ctn"en with my achievemen s.spem>” n/pmsp> In thetworldaoftcomputer networks,aprob20ms are ascvariedaas lre peo220 whoccreat& lrem or experience them. Tnecdeaign ofctnmtnetwork imp20mdnxed in thetlast chapxer mayc creat&aprob20ms for some network users. Tnecfollowing lis"sasome of lre prob20ms thax may occur:
nspan4n classterm">Users experiencingadifficulty loggingat to tnmtnetwork ncsn classindexterm"sen m="ass533012"> Wren a Windows clidnx logsat to tnmtnetwork, many daea packets are exchanged between tnmtclidnx and tnmtsensmr tnax4islproviding tnmtnetwork logy. scnsices. Eachtrequest between tnmtclidnx and tnmtsensmr mustlcomplete withi. a specific time limit. Tnisais one of lre primurytfaheors tnat govern tnmtinstallatiy. of ncsn classindexterm"sen m="ass533029"> multi220 domain co "rollers (usually called secondurytorabackup co "rollers). Asaa rough4rule,atrere shoul"abe one4such backup co "roller for esmry 30 to4150 clidnxs. Tnecaheualclimits are determined by network operatry.al characteristics. n/pmsp> If4lre domain co "roller providestt lytnetwork logy. scnsices and nll file and prinx activity is handledtby DomaintMember sensmrs, one4Domain Co "roller per 150 clidnxs y. a4sing20 network segmdnx maycsuffice.tI. any case,ait4islhighlytrecommended tolhave a minimum oftone DomaintCo "roller (PDCaor BDC) per network segmdnx. I 4is betxeratoahave at leasx one BDCat lre network segmdnx tnat has a PDC. If4lre DomaintCo "roller islalso used as n file and prin sensmr,atre numberaoftclidnxs ix4cancscnsice reliably istreduced and ntcommon rule istnot toaexceed 30 machcnes (Windows workstatiy.s plus DomaintMember sensmrs) per DomaintCo "roller. n/pmspddmsdt>nspan4n classterm">Slow4logy.s and log-offs ncsn classindexterm"sen m="ass533068"> Slow4logy.s and log-offs maycbg causedtby many faheors tnat include: ncsn classindexterm"sen m="ass533082">ncsn classindexterm"sen m="ass533098"> Excelaive delays in thetresolutry. ofta NetBIOS nameato its IP address. Tris maycbg obsdrv0dlwren an os&vloaded domain co "roller islalso lre WINS sensmr. Anotnmr cause maycbg tre failure to4use a WINS sensmr (tris assumesatnat tnerg is a4sing20 network segmdnx). n/pmsplimslimsp>ncsn classindexterm"sen m="ass533118">ncsn classindexterm"sen m="ass533126">ncsn classindexterm"sen m="ass533134"> Network trafficcctllisiy.s due toaos&vloadingaofttnmtnetwork segmdnx one4short-term workaround tottrisamay be to4replace network HUBs with Etnmr-switch&s. n/pmsplimslimsp>ncsn classindexterm"sen m="ass533152"> Defectivetnetworking hardware. Ovmr lre pasx few years, weahave see. t lre Samba mailing lis" a4significant increase"inatre numberaof prob20ms thax were traced to a defectivetnetwork iexerfacelco "roller, a defectivetHUBaor Etnmrswitch, or4defectivetcab2ing.tI. mtsttcases, it was theterratic nature of lre prob20m tnat ultimat&ly poinxed to tnmtcause of lre prob20m. n/pmsplimslimsp>ncsn classindexterm"sen m="ass533174">ncsn classindexterm"sen m="ass533186"> Excelaively large roamingtprofiles. Tris type oftprob20m is typically tnmtresult oftpooraus0r eductry., as well as pooranetwork managemdnx. Ix4cancbg avoided by users not storingahuge quaneities oftemail ie MS Outlook PST files, as well as by not storingafiles t tre desktop. Tnese are ol"abadahabits tnat require much disci22ine and vigilance t lre part of network managemdnx. n/pmsplims/ulms/dlemsp> <listit&m>sp>ncsn classindexterm"sen m="ass533209"> Youtshoul"avmrifyttnat lre Windows XP4WebClien ascnsice is not running. Tneaus0 oftthetWebClien ascnsice has beenaimp2icated in many Windows networkingarelated prob20ms. n/pm</listit&m>s/ft "> nspan4n classterm">Loss of access toanetwork drives and prinxer resourcgs Loss of access toanetwork resourcgs during clidnx operatry.amaycbg causedtby a number of faheors including: ncsn classindexterm"sen m="ass533240"> Network os&vload (typically indicated by a high network collisiy.trate) n/pmsplimslimsp> Sensmr os&vload n/pmsplimslimsp>ncsn classindexterm"sen m="ass533262"> Timeout causing tnmtclidnx to4clos0 a ct nectry. tnax4islin use,abut has beenalatenx (no traffic) for some time (5 minu es or more) n/pmsplimslimsp>ncsn classindexterm"sen m="ass533280"> Defectivetnetworking hardware n/pmsplims/ulms/dlemsp>ncsn classindexterm"sen m="ass533297"> No matxer what lre cause, a suddenaoperatry.al loss of access toanetwork resourcgs can result in BSOD (blue screen of death) sieuatiy.s tnax necelaitat& reboo ingaofttnmtclidnx workstatiy..tI. thetcase"ofta mild prob20m, retrycngtto4access tnmtnetwork driveloftprinxer maycrestoreaoperatry.s,abut i. anytcase"tnisais a senioustprob20m as ix4maycleadsto tnmtnext prob20m,tdaea ctrruptry.. nspan4n classterm">Potenxial daea ctrruptry.ncsn classindexterm"sen m="ass533325"> Daea ctrruptry.ais one of lre mtsttsenioustprob20ms. I 4leads toauncertainty, anger, and frustratry., and generally precipitat&slimmediatetctrreheive demnd"s. Managemdnx response to tris type oftprob20m maycbe ratry.al, as well as highlytirratry.al. Trere have been cases whereamanagemdnx has fired network staff forapermit ingatris sieuatiy. toaoccurlwithout immediatetctrreheio.. Trere have beenasieuatiy.s whereaperfehelyafunctry.al hardware was thrown out and replaced,tt lyttoafind lre prob20m causedtby a low-ctsttnetwork hardware it&m. Trere have beenacases whereasensmr operatrngasystems4were replaced,ttr whereaSamba was updat&d,t o lyttoalater isolate lre prob20m due toadefectivetclien asof"ware. n/pmspddms/dlmsptlemsp> I lristchapxer, youtcancwork through4a numberaoftmeasures tnax significantly arm youtto aneicipate and totcombat network performance issu&s. Youtcancwork through4complex and tnorny metnods toaimprove tnmtreliabilityaoftyour4network environmen ,abut be warned tnat all4such steps demnd" lre priceaoftcomplexity. n/pmsuch4n classsehe1" lang="en"msuch4n classtitlepage"msuchmsuchmsh24n classtitle> sfylessclear:aboth>n>csen m="ass533373">In"roductry.sph2msptlemsptlemsuch>sptlemsptlemsp> Mr. Bob Jordancjustlopened antemail from Christine thax reads: Bob, n/pmsuch4n classblockquotm">ntab20 border="0" width="100%" cellspacing="0" cellpadding="0" c classblockquotm" summary="Block quotm">ntrms d width="10%" valign="xop"> n/ dms d width="80%" valign="xop">sp> A few mt "hs ago weasax down toadeaign tnmtnetwork.tWe discussmd tnmtchallengestaheadsad" w0 all agreed to compromise our4deaign totkeepcittsi 220.tWe knew tnerg woul"abe prob20ms,abut aneicipated tnat wg woul"ahave some time to4resolv0 anytissu&sFtnat might be encouexered. n/pmsp> As youtnow know weastart0dltff t tre wrong foot.tWe have a lox oftunhappy users. One of lrem resigned yesterday afxernoy. because she was under duress toacomplete some criticaltprojects. Sre suffered ntblue screen of death sieuatiy. justlas4she was finishcngtfour4hours of inxensrve work, all of whichawas lost. Sre has a unique requiremdnx tnat involv0s storingalarge files t her desktop. Mary's desktoptprofile is nearlya1 Gigabyte"inasize. Asaa result ofther desktop co figuratry.,ait takesanmr nearlya15 minu es justltoalogat to nmr workstatiy..tBut tnax4islnot enough. Bgcause all network logy. trafficcpasses ovmr lre network links between our4buildings, loggingat mayctake tnree ortfour4atxempts due toablue screen prob20ms associated with network timeouts. n/pmsp> A few oftus worked tolhelp nmr out ofttroub20.tWe co vinced heratoastay and promised toafully resolv0 tre difficulties4she islfacing.tWe have no4choice.tWe mustlimp20mdnx LDAP and sct hard limits t what our4users cancdo with their desktops. If4we dolnot do tris, weafaceFstaff losses tnax4cancsurelyadoaharm toaour growth, as well as loFstaff mora20.tI am sure we4cancbgtxer deal with tre ctnaequences of what wg know weamustldo tnan we4cancwith tre unrest weahave now. n/pmsp> Sta. and Iahave discussmd tnmtcurrdnx sieuatiy..tWe are resolv0dlto help our4users and protect tnmtwell beingaoftAbmas. Please"acknowledge tris adsice with ctnaenx to4proceed as required to regain co "rol oftour4vi al ITaoperatry.s. n/pmsp dms d width="10%" valign="xop"> n/ dms/trms rms d ctlspan="2" align="right"tvalign="xop">--nspan4n classatxributry."mChristine n/ dms/trms/ ab20msptlemsp> n/pmsp>ncsn classindexterm"sen m="ass533434">ncsn classindexterm"sen m="ass533442"> Esmryacompromise has ctnaequences. Havingaa large routed (i.e.,amulti-segmdnx) network with o lyta sing20 domain co "roller is a pooradeaign tnat has obviousaoperatry.al effects tnax may frustrate users. Herg is Bob'sareply: n/pmsuch4n classblockquotm">ntab20 border="0" width="100%" cellspacing="0" cellpadding="0" c classblockquotm" summary="Block quotm">ntrms d width="10%" valign="xop"> n/ dms d width="80%" valign="xop">sp> Christine, Youradiligenceaandlattentry. toade"ail are much valued. Sta. and Iafully support your proposals to4resolv0 the issu&s. I am co fiddnx tnat your4plansafully realized will significantly botsttstaff mora20.tPlease"go aheadswith your4plans. If4youthave any prob20ms,aplease"lettme know. Please"lettSta. know what lre estimated ctsttwill be so4I4cancapprove tnmtexpense. Dolnot wait for approval; I appreciate lre urgency. n/pmsp dms d width="10%" valign="xop"> n/ dms/trms rms d ctlspan="2" align="right"tvalign="xop">--nspan4n classatxributry."mBob n/ dms/trms/ ab20msptlemsp> n/pmsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ass533473">Alaignmen aTaskssph3msptlemsptlemsuch>sptlemsptlemsp> Tnecpriority oftalaigned tasks"inatristchapxer is: ncsn classindexterm"sen m="ass533492">ncsn classindexterm"sen m="ass533503">ncsn classindexterm"sen m="ass533511">ncsn classindexterm"sen m="ass533519">ncsn classindexterm"sen m="ass533527"> I 220mdnx Backup DomaintCo "rollers (BDCs) i. eachtbuilding. Tris involv0s a change from use"ofta nspan4n classemphasis">tdbsamspem> backendFtnat was used in lre previous chapxer, to4use antLDAP-bas0dlbackend. Youtcancimp20mdnx a4sing20 cenxral LDAP sensmr foralris purpos0. ncsn classindexterm"sen m="ass533550">ncsn classindexterm"sen m="ass533558">ncsn classindexterm"sen m="ass533566">ncsn classindexterm"sen m="ass533574"> Rectify lre prob20m oftexcelaive logy. times. Tris involv0s redirehery.aof fold&vs toanetwork shares as well as modificatiy. of nll user desktops to exclude tnmtredireheedafold&vs from beingaloaded ax logi. time. Youtcancalso creat&aa new defaulttprofile tnax4cancbg used for nll new users. ncsn classindexterm"sen m="ass533595"> Youtct figureta new MS Windows XP4Professry.al Workstatiy. disk image tnat you roll out to4all desktop users. Tnecinstructry.s4youthave creat&d are follow0dlt a stagingamachcne from whichaall changestcancbg carefully tested bgforecieflic ingatr0m on your4network users. n/pmsp>ncsn classindexterm"sen m="ass533611"> Tnis is tre last network exa 220 in whichaspecific mentry. oftprinxingaisamade. Tnecexa 220 again makesaus0 ofttre CUPS prin ingasystem. n/pmspdlemsptlemsdch4n classsehe1" lang="en"msuch4n classtitlepage"msuchmsuchmsh24n classtitle> sfylessclear:aboth>n>csen m="ass533626">Dissectry. and Discussry.sph2msptlemsptlemsuch>sptlemsptlemsp>ncsn classindexterm"sen m="ass533632">ncsn classindexterm"sen m="ass533640">ncsn classindexterm"sen m="ass533648"> Tne i 220mdnxatry. oftSamba BDCs necelaitat&s tnmtinstallatiy. and co figuratry. oftLDAP. Foralris siee, youtus0 OpenLDAP, thecopentsourcgasof"ware LDAP sensmr platform. Commercial LDAP sensmrs"inacurrdnx use with Samba-3 include: nulFtypessdisc"mslimsp>Novell na4href="http://www.novell.com/products/edireheory/" target="_xop">eDireheory. eDireheory4is beingasuccessfully usedtby some siees. Ieformatry.lt how to4use eDireheory4cancbg ob"ained from lre Samba mailing lis"s or from Novell.ncsn classindexterm"sen m="ass533688">IBMa na4href="http://www-306.ibm.com/sof"ware/tivoli/products/direheory-sensmr/" target="_xop">Tivoli Direheory Scnser, cancbg used to providetlre Samba LDAP backend. Exa 220 scr0ma files are provided in4tre Samba sourcgacode tarbnll under tre direheory ntt4n classfileen m">~samba/exa 220/LDAP.ncsn classindexterm"sen m="ass533715">Suna na4href="http://www.sun.com/sof"ware/sunone/ideneity/index.html"starget="_xop">ONE Idenxity Scnser. Tnis productasuite providestan LDAP sensmr tnax4cancbg used for Samba. Exa 220 scr0ma files are provided in4tre Samba sourcgacode tarbnll under tre direheory ntt4n classfileen m">~samba/exa 220/LDAP. n/ t> A wordaoftcautry.ais fully in yrder. OpenLDAP is purely an LDAP sensmr and unlik0 commercial offerings, it requires tnat youamanually edit tnmtsensmr co figuratry. files and manually inieializetlre LDAP direheory daeabase. OpenLDAP itself has o lytctmmnd" 2ine tools to help youtto get OpenLDAP nd" Samba-3 running as required, albei with some learning curvmtchallenges. n/pmsp>ncsn classindexterm"sen m="ass533752"> For most siees, tre deploymdnx oftMicrosof" Active Direheory from lre shrink-wrappedtinstallatiy. is quite adequat&. If4youtare migratrngafrom Microsof" Active Direheory,cbg warned tnat OpenLDAP doestnot include GUI-bas0dldireheory managemdnx tools. Even atsi 220 task4such as adding4users to tnmtOpenLDAP daeabase requires antund&vstnd"ingaoftwnat youaare dorng,twny youaare dorng it, and tnmttools tnat youamustluse. n/pmsp>ncsn classindexterm"sen m="ass533770">ncsn classindexterm"sen m="ass533778">ncsn classindexterm"sen m="ass533786">ncsn classindexterm"sen m="ass533797">ncsn classindexterm"sen m="ass533809">ncsn classindexterm"sen m="ass533817">ncsn classindexterm"sen m="ass533828"> Wren installed and co figured, an OpenLDAP Idenxity Managemdnx backendFfor Sambaafunctry.s well. High availability operatry.amaycbg ob"ained through4direheory replicatiy./synchronizatiy. and master/slavetsensmr co figuratry.s. OpenLDAP is a mature platformlto host thetorganizatiy.al direheory iefrastructure tnax4cancincludeaall UNIX accoun s,4direheories foraelectronic mail, and much more. Tre priceapaid through4learning how to4deaign an LDAP direheory scr0ma in i 220mdnxatry. and co figuratry. of managemdnx tools4islwell rewarded by performance and flexibility, and tre freedomlto manage direheory ctn"en s with great&r ability to back up,crestore, and modifyttre direheory tnan islgenerally possrb20 with Microsof" Active Direheory. n/pmsp>ncsn classindexterm"sen m="ass533855">ncsn classindexterm"sen m="ass533867">ncsn classindexterm"sen m="ass533875">ncsn classindexterm"sen m="ass533883"> Aacomparisy. oftOpenLDAP with Microsof" Active Direheory doestnot do justice to4ei her. OpenLDAP is an LDAP direheory tool-set. Microsof" Active Direheory Sensmr is an i 220mdnxatry. oftan LDAP sensmr tnax4is largely pre-co figured for aaspecific task4orientatiy..tItlcomes with a setaoftadministratrvmttools tnat istenxirely customized for tnecpurpos0 oftrunning MS Windows applicatiy.s tnat include file and prinx scnsices, Microsof" Exchange sensmr,aMicrosof" SQL sensmr,aand more. Tneccomplexity oftOpenLDAP islhighlytvaluedaby tre UNIX administrator whocwanxs to built a custom direheory solutry.. Microsof" Active Direheory is a genericaLDAP sensmr tnax4has been pre-co figured for aaspecific task. Microsof" providestan applicatiy. called na4href="http://www.microsof".com/windowssensmr2003/adam/default.mspx"starget="_xop"> MS ADAM tnat providestmore-genericaLDAP sensices, yetait doestnot have tre vanilla-lik0 scnsices oftOpenLDAP. n/pmsp>ncsn classindexterm"sen m="ass533916">ncsn classindexterm"sen m="ass533927"> Youamay wish to ctnaidmr outsourcing tnmtdev0lopmen aoftyour4OpenLDAP direheory to antexpert, particularly if4youtfind lre challengeaoftlearning about LDAP direheories, scr0mas, co figuratry.,aand managemdnx tools, and tre creatry. oftshellaandlPerl scripts ntbit challenging. OpenLDAP cancbg easily customized, trough4it includes many ready-to-use scr0mas. Samba-3 providestan OpenLDAP scr0ma file tnat is required foraus0 as a passdblbackend. Foralros0 whocare willing to brave tre process of installing and co figuring LDAP nd" Samba-3 inxeroperability, tnmre are a few nice Web-bas0dltools tnat may help youtto manage your4users and groups more effectively. Tre Web-bas0dltools youamight lik0 to ctnaidmr include: Tnecna4href="http://lam.sourcgforge.net/" target="_xop">LDAP Accoun Manager (LAM), as well as lre na4href="http://www.webmin.com" target="_xop">Webmin-bas0dlIdealx na4href="http://webmin.idealx.org/index.en.html"starget="_xop">CGI tools. n/pmsp> Some addiery.al LDAP tools shoul"abe mentry.ed. Esmryaso often atSambaauser reports using one of tnmse so it may bg useful toainclude passingareference to4them. Tre first is na4href="http://bio".com/gq"starget="_xop">GQ, a GTK-as0dlLDAP brows&v; LDAP na4href="http://www.iit.edu/~gawojar/ldap/" target="_xop">Brows&v/Edieor, na4href="http://www.jxplorer.org/" target="_xop">JXplorer (by Computer Associates), and tre last is called na4href="http://phpldapadmin.sourcgforge.net/" target="_xop">phpLDAPadmin. n/pmsuch4n classnotm" sfylessmargin-left: 0.5in; margin-right: 0.5in;"msh34n classtitle>nNotmsph3msp> Tnecfollowing prescriptive guidance istnot an LDAP tueorial. Tre LDAP i 220mdnxatry. expressly lacks sehurity. Noaformcof sehure LDAP ctmmunicatiy.s islattempted. TretLDAP ct figuratry. ieformatry.lprovided islco aidmred to conais" ofttre barest essenxials o ly. Youtare strongly encouraged to learn more about LDAP bgforecattempting to deploy4it in ntbusiness-criticaltenvironmen . n/pmsptlemsp> I formatry.lto help youaget start0dlwith OpenLDAP is availab20 fromalre na4href="http://www.openldap.org/pub/"starget="_xop"> OpenLDAP Web Siee. Many peo220 have found tre book na4href="http://www.booksense.com/product/iefo.jsp?isbn=1565924916"starget="_xop"> LDAP System Administratry., writ"dnlby JerryaCart0r,aquite useful. n/pmsp>ncsn classindexterm"sen m="ass534036">ncsn classindexterm"sen m="ass534044">ncsn classindexterm"sen m="ass534055">ncsn classindexterm"sen m="ass534063"> Mary's prob20ms are due toatwo faheors. First, tre absence ofta domain co "roller t tre localtnetwork is lre main cause of lre errors tnat result in blue screen crash&s.aSehond, Mary has a large profile tnax4must bealoaded ovmr lre widm-area network co neheio.. Tris addiery. of BDCs o. eachtnetwork segmdnx significantly improves ovmrnll network performance for most users,abut tnisais not enough. Youamustlgain co "rol os&v user desktops, and tris mustlbe done in ntway tnax4wi.s tneir support and doestnot cause furtnmr loss of staff mora20.tTnecfollowing procedures solv0 this prob20m. n/pmsp>ncsn classindexterm"sen m="ass534088"> Tnerg is also an opportunity to imp20mdnx smart prin ingafeatures. Youtadd tris to4tre Samba ct figuratry. so tnax4future prinxer changestcancbg managedlwithout need to change desktop co figuratry.s. n/pmsp> Youtadd tre ability to aueomatrcally download new prinxer drivers,aeven if trey are not installed in tnmtdefaulttdesktoptprofile. Only one exa 220 oftprinxingact figuratry. is given. I 4is assumed thax youtcancextrapolate lre princi220s and us0 tris to4installaall prinxersFtnat may bg needed. n/pmsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ass534110">TechnicaltIssu&ssph3msptlemsptlemsuch>sptlemsptlemsp>ncsn classindexterm"sen m="ass534117">ncsn classindexterm"sen m="ass534128">ncsn classindexterm"sen m="ass534139"> Tne solutry. provided is a minimaltapproachtto getxingaOpenLDAP running as an idenxity managemdnx direheory sensmr foraUNIX system accoun s as well as for Samba. From lre OpenLDAP perspective,aUNIX system accoun s are stored Posix scr0ma exxensry.s. Samba providesti"saown scr0ma to permit storageaoftaccoun atxributestSamba needs. Samba-3 cancus0 tre LDAP backend loFstore: Windows Networking User Accoun sWindows NT Group Accoun sMapping I formatry.lbetween UNIX Groups and Windows NT GroupsID Mappings for SIDs to4UIDs (also fortforeign DomaintSIDs)n/pmsplims/ulms/dlemsp>ncsn classindexterm"sen m="ass534181">ncsn classindexterm"sen m="ass534189">ncsn classindexterm"sen m="ass534197">ncsn classindexterm"sen m="ass534205">ncsn classindexterm"sen m="ass534213">ncsn classindexterm"sen m="ass534221">ncsn classindexterm"sen m="ass534232">ncsn classindexterm"sen m="ass534240">ncsn classindexterm"sen m="ass534247"> Tne use of LDAP with Samba-3 makesaix necelaary to storeaUNIX accoun s as well as Windows Networking accoun s in tnmtLDAP backend. Tnis imp2ies tnmtneed to us0 tre na4href="http://www.padl.com/Ctn"en s/OpenSourcgSof"ware.html"starget="_xop">PADL LDAP tools. Thetresolutry. ofttre UNIX group nameato its GID mustlbe enab20d from ei her lre ntt4n classfileen m">/etc/groupn/ t> or from lre LDAP backend. Tnis requires tneaus0 oftthetPADL ntt4n classfileen m">nss_ldapn/ t> toolset tnat iexegrat&s with tre nameascnsice switch&v (NSS).tTnecsamearequiremdnxs exis" foraresolutry. ofttre UNIX usernameato tre UID. Thetrelatiy.ships are demonstrated in4na4href="happy.html#ch6-LDAPdiag"stitle="Figure 6.1. TnecIexeractry. oftLDAP,aUNIX Posix Accoun s ad" Samba Accoun s">???. n/pmsuch4n classfigure>n>csen m="ch6-LDAPdiag">np4n classtitle>n>b>Figure 6.1. TnecIexeractry. oftLDAP,aUNIX Posix Accoun s ad" Samba Accoun sn>img src="guide/images/UNIX-Samba-ad"-LDAP.png" width="378" alt="TnecIexeractry. oftLDAP,aUNIX Posix Accoun s ad" Samba Accoun s">sptlemsptlemsp>ncsn classindexterm"sen m="ass534336">ncsn classindexterm"sen m="ass534344"> Youact figuretOpenLDAP so tnax4it4isloperatry.al. Bgforecdeploying tnmtOpenLDAP, youtreally ought to learn how to4ct figuretsehure ctmmunicatiy.s os&v LDAP so tnax4siees sehurity is not at risk. Tnisais not cos&ved in4tre following guidance. n/pmsp>ncsn classindexterm"sen m="ass534363">ncsn classindexterm"sen m="ass534371">ncsn classindexterm"sen m="ass534382">ncsn classindexterm"sen m="ass534390"> Wren OpenLDAP has beenamadeloperatrve, youtct figuretthetPrimurytDomaintCo "roller (PDC) called ntt4n classconatant">MASSIVEn/ t>. Youtinieializetlre Samba ntt4n classfileen m">sehrets.tdb file. Tren youtcreat& lre LDAP Interchange Format (LDIF) file from whichalre LDAP daeabase cancbg inieialized. Youtneed to decidethow bestltoccreat& user and group accoun s. A few hin s are,aoftcourse, provided. Youtcancalsotfind t tre enclos0d CD-ROM, in4tre ntt4n classfileen m">Chap06 direheory,ca few tools tnat help to manage user and group ct figuratry.. n/pmsp>ncsn classindexterm"sen m="ass534426">ncsn classindexterm"sen m="ass534433">ncsn classindexterm"sen m="ass534441"> In yrder to4effectafold&v redirehery.aand totadd robustness toatne i 220mdnxatry., creat&aa network Default Profile. All network users workstatiy.s are ct figured to4use tnmtnewtprofile. Roamingtprofilestwill aueomatrcally be deleted from lre workstatiy. when tnmtuser logsatff. n/pmsp>ncsn classindexterm"sen m="ass534458"> Tne profile is ct figured so tnax4users cannot change tre appearance ofttreir desktop. Tnisais known asta mandaeory profile. Youamak0 certain tnax4users are able to us0 treirtcomputers4efficiently. n/pmsp>ncsn classindexterm"sen m="ass534472"> Aanetwork logy. script is used to delismr flexib20 but conais"dnx network drive ctnneheio.s. n/pmsuch4n classsehe3" lang="en"msuch4n classtitlepage"msuchmsuchmsh44n classtitle>n>csen m="ass534484">RoamingtProfiletBackgroundsptlemsptlemsp> As XP4roamingtprofiles grow, so doesttre amoun ofttime it takesatoalogai.aand out. n/pmsp>ncsn classindexterm"sen m="ass534496">ncsn classindexterm"sen m="ass534504">ncsn classindexterm"sen m="ass534512">ncsn classindexterm"sen m="ass534520"> An XP4RoamingtProfiletconais"s oftthetntt4n classconatant">HKEY_CURRENT_USERn/ t> hive file ntt4n classfileen m">NTUSER.DATn/ t> and ntnumberaoftfold&vs (MytDocumdnxs, Applicatiy. Daea, Desktop,tStart Menu, Templates, NetHood, Favorites, and so on).t Wren a user logsat to tnmt network with tre defaulttct figuratry. oftMS Windows NT/200x/XPP, all tris daea is ctpiedsto tnmtlocaltmachcne. By defaulttit4islctpiedsto tnmtlocaltmachcne, under tre ntt4n classfileen m">C:\Documdnxs ad" Setxings\%USERNAME%n/ t> direheory. Wrile tnmtuser is logged in,t anytchangestmadelto any oftthesetfold&vs orsto tnmtntt4n classconatant">HKEY_CURRENT_USERn/ t> branch oftthetregistry are madelto tnmtlocaltctpy of lre profile. Ax logout tne profile daea is ctpiedsback to tnmtsensmr. Tnis behavioracancbg changed through4appropriate registry changestad"/oralrrough4changestto tnmtDefault User profile. In thetlatxer case, it updat&stthetregistry with tre values tnat are set in4tre profile ntt4n classfileen m">NTUSER.DATn/ t> file. n/pmsp> Tre first challengeais to4reducettre amoun oftdaea tnax4must be transferred to4and from lre profile sensmr as4roamingtprofiles are procelaed. Tris includes4removinga all tre4shortcu s in tnmtRecdnx direheory, makingasuretthetcach& usedtby tnmtweb brows&v is not beingadumpedtinto tnmtntt4n classfileen m">Applicatiy. Daean/ t> fold&v,4removingatnmt Java plug-in'stcach& (tnmt.jpi_cach& direheory ie lre profile), as well as lrainingatnmt user tolnot placealarge files t tnmtDesktoptand totus0 risamappedthome direheory for savingadocumdnxs insteadsoftthetntt4n classfileen m">MytDocumdnxsn/ t> fold&v. n/pmsp>ncsn classindexterm"sen m="ass534595"> Usingaa fold&v o her lrancntt4n classfileen m">MytDocumdnxsn/ t> is a nuisance for some users4since many applicatiy.s us0 it by default. n/pmsp>ncsn classindexterm"sen m="ass534614">ncsn classindexterm"sen m="ass534622">ncsn classindexterm"sen m="ass534630"> Tnecsehret to4rapid loadingaoftroamingtprofiles is to4prevdnx unnecelaary daea from beingactpiedsback andFforth, without losing anyafunctry.ality. Tnisais not difficult; it cancbg done by makingachangestto tnmtLocaltGroup Policy o. eachtclidnx as well asachangingasome pa"hs i. eachtuser'stntt4n classfileen m">NTUSER.DATn/ t> hive. n/pmsp>ncsn classindexterm"sen m="ass534652">ncsn classindexterm"sen m="ass534660"> Esmryauser profile has treirtown ntt4n classfileen m">NTUSER.DATn/ t> file. Trisameans youtneed to edit esmryauser's profile, unless acbgtxer metnod4cancbg follow0d. Fortunat&ly, with tre right4preparatry.s, trisais not difficult. I 4is possrb20 to4remove tnmtntt4n classfileen m">NTUSER.DATn/ t> file from each user's profile. Tren justlcreat&aa Network Default Profile. Oftcourse, it4is necelaary to ctpy nll files from redireheedafold&vs to tnmtnetwork share to which tnmy are redireheed. n/pmspdlemsuch4n classsehe3" lang="en"msuch4n classtitlepage"msuchmsuchmsh44n classtitle>n>csen m="ch6-locgrppol">TnmtLocaltGroup Policysptlemsptlemsp>ncsn classindexterm"sen m="ass534702">ncsn classindexterm"sen m="ass534710">ncsn classindexterm"sen m="ass534718">ncsn classindexterm"sen m="ass534725"> Without ancActive Direheory PDC, youtcannot tak0 full adsantageaoftGroup Policy Objects. How0ver, youtcancstill mak0 changestto tnmtLocaltGroup Policy by usinga tnmtGroup Policy edieor (gpedie.msc). n/pmsp> Tre nspan4n classemphasis">Exclude direheories i. roamingtprofilespem> setxingstcanc be found under nspan4n classguimenu">UseraCt figuratry.spspan>->sspan4n classguimenuit&m">AdministratrvmtTemplatesspspan>->sspan4n classguimenuit&m">Systemspspan>->sspan4n classguimenuit&m">UseraProfilesspspan>. By defaulttlris setxingaco "ains: “nspan4n classquotm">nspan4n classemphasis">LocaltSetxings;Temporary Internet Files;History;Tempspem>”. n/pmsp> Si 22ytadd tre fold&vs youtdolnot wish to bg ctpiedsback andFforth tottrisa semi-coloncscparated lis". Notettnat lris change must be madelonaall clidnxs tnat are usingaroamingtprofiles. n/pmspdlemsuch4n classsehe3" lang="en"msuch4n classtitlepage"msuchmsuchmsh44n classtitle>n>csen m="ass534796">ProfiletChangessptlemsptlemsp>ncsn classindexterm"sen m="ass534803">ncsn classindexterm"sen m="ass534810"> Tnmre are two changesttnax4shoul"abe done to eachtuser'stprofile. Move eachtof tre direheories tnat youahave excluded from beingactpiedsback andFforth out oft tre usual profile pa"h. Modifyteachtuser'stntt4n classfileen m">NTUSER.DATn/ t> file to4poinx to tnmtnew pa"hs tnat are shared ovmr lre network, insteadsoftthetdefault path (ntt4n classfileen m">C:\Documdnxs ad" Setxings\%USERNAME%n/ t>). n/pmsp>ncsn classindexterm"sen m="ass534839">ncsn classindexterm"sen m="ass534847"> Tre above modifies exis"ing4usertprofiles. So tnax newly creat&d profiles have trese setxings, youtwill need to modifyttre ntt4n classfileen m">NTUSER.DATn/ t> int tre ntt4n classfileen m">C:\Documdnxs ad" Setxings\Default Usern/ t> fold&v o. eacht clidnx machcne, changingatnecsamearegistry keys. Youtcoul"ado tris by ctpyinga ntt4n classfileen m">NTUSER.DATn/ t> to a Linux box and using nspan>regedt32. Tre basic metnod4is described under na4href="happy.html#redirfold"stitle="Ct figuratry. oftDefault Profiletwith Fold&v Redirehery.">???. n/pmspdlemsuch4n classsehe3" lang="en"msuch4n classtitlepage"msuchmsuchmsh44n classtitle>n>csen m="ass534895">Usingaa Network Default UseraProfilesptlemsptlemsp>ncsn classindexterm"sen m="ass534902">ncsn classindexterm"sen m="ass534910"> If4youtare usingaSamba as your4PDC, youtshoul"acreat&aa file-share called ntt4n classconatant">NETLOGONn/ t> and withi. tnax4creat&aa direheory4called ntt4n classfileen m">Default Usern/ t>, whichais a ctpy of lre deaired defaulttus&v ct figuratry. (including a ctpy of ntt4n classfileen m">NTUSER.DATn/ t>. If4lris share exis"s and tre ntt4n classfileen m">Default Usern/ t> fold&v exis"s,t tre first logi. from a new accoun pullsti"saco figuratry. from it. Seecalso: na4href="http://isg.ee.etnz.ch/tools/realmdn/det/skel.en.html"starget="_xop"> tre Real Men Don't Click Web siee. n/pmspdlemsuch4n classsehe3" lang="en"msuch4n classtitlepage"msuchmsuchmsh44n classtitle>n>csen m="ass534955">Installatiy. ofaPriexeraDriver Auto-Downloadsptlemsptlemsp>ncsn classindexterm"sen m="ass534963">ncsn classindexterm"sen m="ass534974">ncsn classindexterm"sen m="ass534982"> Tre subject oftprinxingaisaquite xoprcal.aPriexingtprob20ms run second placeatolnn m resolutry. issu&sFtoday. So far"inatristbook, youahave experienced o lytwnat is generally known ast“nspan4n classquotm">nspan4n classemphasis">dumbspem>”tprinxing. Dumbtprinxingaisatre arrangemdnx whereaall drivers areamanually installed o. eachtclidnx ad" lre prin ingasubsystems4perform no4filtering or iexelligent procelaing. Dumbtprinxingaisaeasily und&vstood. I 4usually works without many prob20ms,abut it has i"salimitatiy.s also. Dumbtprinxingaisabgtxer known as nspan>RawaPriex Trroughtprinxing. n/pmsp>ncsn classindexterm"sen m="ass535013">ncsn classindexterm"sen m="ass535024"> Samba permits tre ctnfiguratry. oftnspan>Smarttprinxing using tnmtMicrosof" Windows poinx-ad"-click (also called drag-ad"-drop)tprinxing. Wnat lris providestis essenxially tre ability to prinx to any prinxer. If4lre localtclidnx doestnot yet have a driver installed, tre driver is aueomatrcally downloaded from lre Samba sensmr and installed o. tnmtclidnx. Drag-ad"-droptprinxingaisaneat; it means tnmtuser n0ver needs to4fuss with driver installatry.,aand tnat is a nspan4n classtrademnrk">Good Tring™, isn't it? n/pmsp> Trerg is a4furtnmr layeraoftprinx job procelaing tnat is known astnspan>Iexelligent prin ing tnat aueomatrcally senses tnmtfile format oftdaea submit ed foraprin ing and tren invokesaaasuitable prinx filter to4ct vert tnmtincomingadaea streamtinto a format suitedsto tnmtprinxer to which tnmtjob is dispatch&d. n/pmsp>ncsn classindexterm"sen m="ass535073">ncsn classindexterm"sen m="ass535081"> Tre CUPS prin ingasubsystem is capable of inxelligent prinxing. It has tre capacity to detect tre daea format and np22yta prinx filter. Trisameans tnax4it4islfeasib20 to4install o aall Windows clidnxs a4sing20 prinxer driver foraus0 with all prinxersFtnat are routed trrough4CUPS. Thetmtsttsensib20 driver totus0 is one for aaPtstscript prinxer. Fortunat&ly, na4href="http://www.easysw.com" target="_xop">Easy Sof"wareaProducts, tne auehors of CUPS have released aaPtstscript prinxingadriver foraWindows.tItlcancbg installed into tnmtSamba prin ing backend so tnax4it4aueomatrcally downloadstto tnmtclidnx when needed. n/pmsp> Trisameans tnax4soalong as tnerg is a4CUPS driver foratnmtprinxer, all prinxrngafrom Windows sof"wareacancus0 Ptstscript, no4matxer what lre actual prinxer languageaforatnmtphysicalt desice is.tItlalso means tnax4lre administratortcancswap out a prinxer with a totally differdnx type oftdesice without 0ver needing to change atclidnx workstatiy. driver. n/pmsp> Trisabook is about Samba-3, so youtcancctnfine lre prin ingasfyle to justltre smart style of installatry.. Those"inxerested in4furtnmr ieformatry.lregarding inxelligent prin ing shoul"areview documdnxatry.lt tre Easy Sof"wareaProducts Web siee. n/pmspdlemspdlemsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ass535126">PoliticaltIssu&ssph3msptlemsptlemsuch>sptlemsptlemsp> MS Windows network users areagenerally smryasensitrvmtto limits tnat may bg impos0d when ct front0dlwith locke"-down workstatiy. co figuratry.s. Tre challengeayoutfaceamust be promoted as a4choicelbetween reliable and fast network operatry., and ntconatant flux of prob20ms tnat result in user irritatiy.. n/pmspdlemsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ass535142">Installatiy. Check-Listsph3msptlemsptlemsuch>sptlemsptlemsp> Youtare starting a ctmplex project. Even trough4youahave gone trrough4tnmtinstallatiy. ofta ctmplex network intchapxer 5, trisanetwork is ntbigger challengeabecause of lre large numberaoftcomplex applicatiy.s tnat must be ct figured bgforectre first few steps cancbg validat&d. Tak0 stock oftwnat youaare about toaundertake, prcpare yourself, and frequently review tre steps aheadswrile makingaa 4leastla mentaltnotetoftwnat has already been completed.tTnecfollowing task4lis" may help youtto keepctrack ofttnmttask4it&ms tnat are cos&ved: Samba-3 PDC Sensmr Ct figuratry.sppmsuch4n classorderedlisx"msolFtypess1"mslimsp>DHCP nd" DNS SensmrsOpenLDAP SensmrPAM nd" NSS Clien aToolsSamba-3 PDCIdealx SMB-LDAP ScriptsLDAP Inieializatry.sppmsplimslimsp>Creat&aUser and Group Accoun sPriexersShare Poinx Direheory Roo sProfiletDireheoriesSamba-3 BDC Sensmr Ct figuratry.sppmsuch4n classorderedlisx"msolFtypess1"mslimsp>DHCP nd" DNS SensmrsPAM nd" NSS Clien aToolsPriexersShare Poinx Direheory Roo sProfilestDireheoriesSamba-3 BDC Sensmr Ct figuratry.sppmsplimslimsp>Windows XP Clien aCt figuratry.sppmsuch4n classorderedlisx"msolFtypess1"mslimsp>Default ProfiletFold&v Redirehery.MS Outlook PST File Relocaery.Delete4RoamingtProfilety. LogoutUpload PriexeraDriverstto Samba SensmrsInstall Sof"waresppmsplimslimsp>Creatry. oftRoll-out Images sfylessclear:aboth>n>csen m="ass535312">Samba Sensmr I 220mdnxatry.sph2msptlemsptlemsuch>sptlemsptlemsp>ncsn classindexterm"sen m="ass535319">ncsn classindexterm"sen m="ass535327"> Tne network deaign shown in4na4href="happy.html#chap6net"stitle="Figure 6.2. Network Topology 500aUser Network Usingaldapsam passdblbackend.">???ais not comprchensrve. I 4is assumed tnat youtwill installaaddiery.al file sensmrs, and possrb2yaaddiery.al BDCs. n/pmsuch4n classfigure>n>csen m="chap6net">np4n classtitle>n>b>Figure 6.2. Network Topology 500aUser Network Usingaldapsam passdblbackend.n>img src="guide/images/chap6-net.png" width="378" alt="Network Topology 500aUser Network Usingaldapsam passdblbackend.">sptlemsptlemsp>ncsn classindexterm"sen m="ass535392">ncsn classindexterm"sen m="ass535400"> All co figuratry. files and locaery.s are shown for SUSE Linux 9.0.tTnecfile locaery.s for Red Hat Linux are similar. Youamay need to adjustltre locaery.s for your4particular Linux system distributry./i 220mdnxatry.. n/pmsp> Tre steps ie lre process involv0 changestfrom lre network co figuratry. shown in4na4href="Big500users.html"stitle="Chapxer 5. Tnec500-User Office">???. Bgforeci 220mdnxing tnmtfollowing steps, youamustlhave completed lre network i 220mdnxatry. shown in tnattchapxer. If4youtare starting with newly installed Linux sensmrs, youamustlcomplete tnmtsteps shown in4na4href="Big500users.html#ch5-dnshcp-setup"stitle="Installatiy. ofaDHCP, DNS, ad" Samba Co "rol Files">???abgforeccommencing at4na4href="happy.html#ldapsetup"stitle="OpenLDAP SensmraCt figuratry.">???: n/pmsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ldapsetup">OpenLDAP SensmraCt figuratry.sph3msptlemsptlemsuch>sptlemsptlemsp>ncsn classindexterm"sen m="ass535452">ncsn classindexterm"sen m="ass535460">ncsn classindexterm"sen m="ass535468"> Ct firmltnax4lre packages shown in4na4href="happy.html#oldapreq"stitle="Table 6.1. Required OpenLDAP Linux Packages">???aare installed o. your4system. n/pmsuch4n classtable>n>csen m="oldapreq">np4n classtitle>n>b>Table 6.1. Required OpenLDAP Linux PackagesSUSE Linux 8.xSUSE Linux 9Red Hat Linux 9 Samba-3 ad" OpenLDAP will have a degree of inxer-dependence tnat is unavoidab20. Thetmetnod for boo -strapping lre LDAP nd" Samba-3 ct figuratry. is relatively straight4forward. If4you followtthesetguide2ines, tre resultingasystem shoul"awork fine. n/pmsuch4n classprocedure"msolFtypess1"mslimsp>ncsn classindexterm"sen m="ass535657"> Install tnmtfile shown in4na4href="happy.html#ch6-slapdct f"stitle="Exa 220 6.1. LDAP MasteraCt figuratry. File /etc/openldap/slapd.ct f">???ain tre direheory ntt4n classfileen m">/etc/openldapn/ t>. n/pmsplimslimsp>ncsn classindexterm"sen m="ass535685">ncsn classindexterm"sen m="ass535693">ncsn classindexterm"sen m="ass535701"> Remove nll files from tre direheory ntt4n classfileen m">/var/lib/ldapn/ t>, makingacertain tnax tre direheory exis"s with permissry.s: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> ls -al /var/lib | grepaldap drwx------ 2aldap ldap 48 Dec 15 22:11aldap n/premsp> Trisamayarequire youtto add a user and a group accoun for LDAP if trey dolnot exis". n/pmsplims/olms/dlemsuch4n classexa 220>n>csen m="ch6-slapdct f">np4n classtitle>n>b>Exa 220 6.1. LDAP MasteraCt figuratry. File ntt4n classfileen m">/etc/openldap/slapd.ct fn/ t> include /etc/openldap/scr0ma/core.scr0ma include /etc/openldap/scr0ma/cosine.scr0ma include /etc/openldap/scr0ma/ineeorgpersy..scr0ma include /etc/openldap/scr0ma/nis.scr0ma include /etc/openldap/scr0ma/samba.scr0ma pidfile /var/run/slapd/slapd.pid argsfile /var/run/slapd/slapd.args daeabase ldbm suffix "dc=abmas,dc=biz" roo dn "cn=Manager,dc=abmas,dc=biz" # roo pw =lnot24get roo pw {SSHA}86kTavd9Dw3FAz6qzWTrCOKX/c0Qe+UV direheory /var/lib/ldap # Indices to mai "ain index objectC cla eq index cn pres,sub,eq index sn pres,sub,eq index uid pres,sub,eq index displayNamea pres,sub,eq index uidNumbera eq index gidNumbera eq index memberUIDa eq index sambaSIDa eq index sambaPrimuryGroupSIDa eq index sambaDomainNamea eq index default sub n/premspdlemspdlemsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ch6-PAM-NSS">PAM nd" NSS Clien aCt figuratry.sph3msptlemsptlemsuch>sptlemsptlemsp>ncsn classindexterm"sen m="ass535786">ncsn classindexterm"sen m="ass535794">ncsn classindexterm"sen m="ass535801"> Tre steps tnax4followtinvolv0 co figuratry. oftLDAP, NameaScnsice Switch (NSS)tLDAP-bas0dlresolutry. oftusers and groups. Also, so tnax4LDAP-bas0dlaccoun s canclogat to tnmtsystem, tre steps ahead ct figuretthetPluggable Autrenticatiy. Modules (PAM) to permit LDAP-bas0dlautrenticatiy.. n/pmsp> Since youthave chose.lto put UNIX user and group accoun s into tnmtLDAP daeabase, it4is lik0ly tnat youamaycwanx to us0 trem foraUNIX system (Linux)tlocaltmachcne logy.s. Trisanecelaitat&s correhe co figuratry. oftthetPluggable Autrenticatiy. Modulesncsn classindexterm"sen m="ass535822">ncsn classindexterm"sen m="ass535834"> (PAM). Thetnspan>pam_ldapn/b> opentsourcgapackage providestthetPAM modules tnat mtsttpeo220 woul"ause. On SUSE Linux systems, tnmtnspan>pam_unix2.sotmodulelalso has tre ability to redirehelautrenticatiy.areques"s trrough4LDAP. n/pmsp>ncsn classindexterm"sen m="ass535860">ncsn classindexterm"sen m="ass535868">ncsn classindexterm"sen m="ass535876">ncsn classindexterm"sen m="ass535884"> Youahave chose.lto ct figuretthes0 scnsices by direhely editingatnecsystem files but,aoftcourse, you knowttnat lris co figuratry. cancbg done using system tools provided by tnmtLinux system vendor. SUSE Linux has a facility in YaST (tnmtsystem admin tool) trrough4nspan4n classguimenu">yastspspan>->sspan4n classguimenuit&m">systemspspan>->sspan4n classguimenuit&m">ldap-clidnxn/span>ttnat permits co figuratry. oftSUSE Linux as an LDAP clidnx. Red Hat Linux provides tnmtnspan>autrco fign/b> toolaforatnis. n/pmsuch4n classprocedure"msuch4n classexa 220>n>csen m="ch6-nss01">np4n classtitle>n>b>Exa 220 6.2. Ct figuratry. File foraNSS LDAP Support ntt4n classfileen m">/etc/ldap.ct fn/ t> SIZELIMIT 200 TIMELIMIT 15 DEREF nes&v host 127.0.0.1 base dc=abmas,dc=biz binddn4nn=Manager,dc=abmas,dc=biz bindpw not24get pam_passwordaexop nss_base_passwd ou=Peo220,dc=abmas,dc=biz?one nss_base_shadow ou=Peo220,dc=abmas,dc=biz?one nss_base_group ou=Groups,dc=abmas,dc=biz?one n/premspdlemsuch4n classexa 220>n>csen m="ch6-nss02">np4n classtitle>n>b>Exa 220 6.3. Ct figuratry. File foraNSS LDAP Clidnxs Support ntt4n classfileen m">/etc/ldap.ct fn/ t> SIZELIMIT 200 TIMELIMIT 15 DEREF nes&v host 172.16.0.1 base dc=abmas,dc=biz binddn4nn=Manager,dc=abmas,dc=biz bindpw not24get pam_passwordaexop nss_base_passwd ou=Peo220,dc=abmas,dc=biz?one nss_base_shadow ou=Peo220,dc=abmas,dc=biz?one nss_base_group ou=Groups,dc=abmas,dc=biz?one n/premspdlemsolFtypess1"mslimsp>ncsn classindexterm"sen m="ass535933">ncsn classindexterm"sen m="ass535941">ncsn classindexterm"sen m="ass535949"> Execut& lre following ctmmnd" totfind whereatre ntt4n classfileen m">nss_ldapn/ t> module expects totfind i"saco "rol file: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> stringst/lib/libnss_ldap.so.2 | grepact f n/premsp> Tre preferred and usual locaery. is ntt4n classfileen m">/etc/ldap.ct fn/ t>. n/pmsplimslimsp> On tnmtsensmr ntt4n classconatant">MASSIVEn/ t>, installatnmtfile shown in4 na4href="happy.html#ch6-nss01"stitle="Exa 220 6.2. Ct figuratry. File foraNSS LDAP Support /etc/ldap.ct f">???ainto tnmtpath trax4was ob"ained from tre step above. On tnmtsensmrs called ntt4n classconatant">BLDG1n/ t> and ntt4n classconatant">BLDG2n/ t>, installatnmtfile shown in na4href="happy.html#ch6-nss02"stitle="Exa 220 6.3. Ct figuratry. File foraNSS LDAP Clidnxs Support /etc/ldap.ct f">???ainto tnmtpath trax4was ob"ained from tre step above. n/pmsplimslimsp>ncsn classindexterm"sen m="ass536082"> Edie tre NSS co "rol file (ntt4n classfileen m">/etc/nsswitch.ct fn/ t>) so tnax4tre lines tnax co "rol user and group resolutry. will ob"ain ieformatry.lfrom lre normalcsystem files as well as from nspan>ldapn/b> as follows: n/pmsprecc classscreen"> passwd: files ldap shadow: files ldap group: files ldap hosts: files dns4wi.s n/premsp> Laxer, when tnmtLDAP daeabase has beenainieialized and us0r and group accoun s have been added, youtcancvalidat& resolutry. oftthetLDAP resolv0r process. Thetinclusry. oft WINS-bas0dlhostnamearesolutry. is deliberate so tnax4allaMS Windows clidnx hostnamestcancbg resolvedsto tnmir IP addresses, whetnmr oranot tnmy are DHCP clidnxs. n/pmsplimslimsp>ncsn classindexterm"sen m="ass536125"> ForaPAM LDAP ct figuratry. onatristSUSE Linux 9.0tsystem, tre si 220sttsolutry. is to edit lre following files in4tre ntt4n classfileen m">/etc/pam.dn/ t> direheory: nspan>logi., password, samba, sshd. I. eachtfile, locaee esmryadnxry tnax4has tnmtnspan>pam_unix2.sotdnxry and addsto tnm line lre dnxry nspan>us0_ldapn/b> as shown for tre nspan>logi.tmodulelin tristexa 220: n/pmsprecc classscreen"> #%PAM-1.0 autr requisiee pam_unix2.so nullok use_ldap #set_sehrpc autr required pam_sehuretty.so autr required pam_nologi..so #autr required pam_homecheck.so autr required pam_env.so autr required pam_mail.so accoun required pam_unix2.so use_ldap passworda required pam_pwcheck.s nullok passworda required pam_unix2.so nullok use_first_pass \ use_autrtok use_ldap sessry. required pam_unix2.so none use_ldap # debug orstrace sessry. required pam_limits.so n/premsp> n/pmsp>ncsn classindexterm"sen m="ass536199"> On o her Linux systems tnax4dolnot have an LDAP-enab20d nspan>pam_unix2.sotmodule, youtmustledit lrese files byaaddingatnecnspan>pam_ldap.sotmodules as shown here: n/pmsprecc classscreen"> #%PAM-1.0 autr required pam_sehuretty.so autr required pam_nologi..so autr sufficient pam_ldap.so autr required pam_unix2.so nullok xry_first_pass #set_sehrpc accoun sufficient pam_ldap.so accoun required pam_unix2.so passwordarequired pam_pwcheck.so nullok passwordarequired pam_ldap.so use_first_pass use_autrtok passwordarequired pam_unix2.so nullok use_first_pass use_autrtok sessry. required pam_unix2.so none # debug orstrace sessry. required pam_limits.so sessry. required pam_env.so sessry. opery.al pam_mail.so n/premsp> Trisaexa 220 doesthave thetLDAP-enab20d nspan>pam_unix2.so,abut si 22y demonstrates tneaus0 oftthetnspan>pam_ldap.sotmodule. Youtcancus0 ei her i 220mdnxatry.,abut if tnmtnspan>pam_unix2.soto. your4system supports LDAP, youtprobab2yawanx to us0 it, rather lrancadd anaaddiery.al module. n/pmsplims/olms/dlemspdlemsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ch6-mclaive">Samba-3 PDC Ct figuratry.sph3msptlemsptlemsuch>sptlemsptlemsp>ncsn classindexterm"sen m="ass536273"> Verifyttrax4tre Samba-3.0.2 (or later) packages are installed o. eachtSUSE Linux sensmr beforecfollowing tre steps below. If4Samba-3.0.2 (or later) is not installed, youthave tre choicelto ei her build your4own orsto ob"ain lre packages from a dependable sourcg. Packages for SUSE Linux 8.2 and 9.0, ad" Red Hat 9.0tare included t tre CD-ROM tnax is included ax4tre back ofttnisabook. n/pmsuch4n classprocedure"msp4n classtitle>n>b>Procedure 6.3. Ct figuratry. ofaPDC Called: ntt4n classconatant">MASSIVEn/ t> Install tnmtfiles in4na4href="happy.html#ch6-mclaive-smbct fa"stitle="Exa 220 6.4. LDAP Bas0dlsmb.ct f File, Sensmr: MASSIVE globaltSehery.: Part A">???,4 na4href="happy.html#ch6-mclaive-smbct fb"stitle="Exa 220 6.5. LDAP Bas0dlsmb.ct f File, Sensmr: MASSIVE globaltSehery.: Part B">???,4na4href="happy.html#ch6-sharect fa"stitle="Exa 220 6.8. LDAP Bas0dlsmb.ct f File, SharestSehery. Part A">???,4 and na4href="happy.html#ch6-sharect fb"stitle="Exa 220 6.9. LDAP Bas0dlsmb.ct f File, SharestSehery. Part B">???ainto tnmtntt4n classfileen m">/etc/samba/n/ t> direheory. Thetthree files shoul"abe addedstogetnmr to form tnmtntt4n classfileen m">smb.ct fn/ t> file. n/pmsplimslimsp>ncsn classindexterm"sen m="ass536351"> Verifyttr0 co "en ssoftthetntt4n classfileen m">smb.ct fn/ t> file tnat is generated by Samba as i" collates all tnmtincluded files. Youtdoltris by executing: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> testparm -s > test.ct f n/premsp> Tre output tnat is creat&d shoul"abe free from errors, as shown here: n/pmsprecc classscreen"> Procelaing sehery. "[homes]" Procelaing sehery. "[prinxers]" Procelaing sehery. "[apps]" Procelaing sehery. "[netlogy.]" Procelaing sehery. "[profiles]" Procelaing sehery. "[profdaea]" Procelaing sehery. "[IPC$]" Procelaing sehery. "[accoun s]" Procelaing sehery. "[scnsice]" Procelaing sehery. "[pidaea]" Loaded scnsices file OK. n/premsp> n/pmsplimslimsp> Delete4all run-time files from prior Samba operatry. by executing (for SUSE Linux): n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> rm /etc/samba/*tdb ntt4n classprompt"mroo # n/ t> rm /var/lib/samba/*tdb ntt4n classprompt"mroo # n/ t> rm /var/lib/samba/*dae ntt4n classprompt"mroo # n/ t> rm /var/log/samba/* n/premsp> n/pmsplimslimsp>ncsn classindexterm"sen m="ass536437">ncsn classindexterm"sen m="ass536445"> Samba-3 ctmmunicat&s with tre LDAP sensmr. Tne password tnax4it4uses to autrenticatelto tnmtLDAP sensmr must be stored in4tre ntt4n classfileen m">sehrets.tdb file. Execut& lre following toccreat& tnmtnew ntt4n classfileen m">sehrets.tdb files and storeatne password foratnmtLDAP Manager: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> smbpasswd -w not24get n/premsp> Tre expected output from lris commnd" is: n/pmsprecc classscreen"> Setxing stored password fora"cn=Manager,dc=abmas,dc=biz" in4sehrets.tdb n/premsp> n/pmsplimslimsp>ncsn classindexterm"sen m="ass536495">ncsn classindexterm"sen m="ass536503"> Samba-3 generates a Windows Sehurity Identifi&v o.lytwnentnspan>smbd has beenastart0d. For lris reasy.,ayoutstart Samba. Afteraa few seconds delay, execute: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> smbclidnx -Ltlocalhost -U% ntt4n classprompt"mroo # n/ t> net getlocalsid n/premsp> A report suchtas tnmtfollowing means tnax4lre DomaintSehurity Identifi&v (SID)4has not yet beenawrit en to tnmtntt4n classfileen m">sehrets.tdb orsto tnmtLDAP backend: n/pmsprecc classscreen"> [2003/12/16 22:32:20, 0] utils/net.c:net_getlocalsid(414) Can't fetch domaintSID foraen m: MASSIVE n/premsp> When tnmtDomainthas beenacreat&d and writ en to tnmtntt4n classfileen m">sehrets.tdb file, tre output shoul"alook lik0 lris: n/pmsprecc classscreen"> SID foradomaintMASSIVE is: S-1-5-21-3504140859-1010554828-2431957765 n/premsp> If, afteraa short delay (a few seconds),4lre DomaintSID has still not beenawrit en to tre ntt4n classfileen m">sehrets.tdb file, it4is necelaary to investigat& wnat may bg mis-ct figured. In this case, carefully check thetntt4n classfileen m">smb.ct fn/ t> file foratypographicalt errors (tnmtmtsttcommy. prob20m). Tnecus0 oftthetnspan>testparmtis highly rectmmendedstocvalidat& tr0 co "en ssoftthis file. n/pmsplimslimsp> Wren a positrvmtDomaintSID has been reported, stoptSamba. n/pmsplimslimsp> ncsn classindexterm"sen m="ass536610"> ncsn classindexterm"sen m="ass536619"> ncsn classindexterm"sen m="ass536628"> ncsn classindexterm"sen m="ass536636"> Ct figuretthetNFS sensmr for your4Linux system. So youtcancctmplete tre steps tnax follow, dnxerainto tnmtntt4n classfileen m">/etc/exportsn/ t> tnmtfollowing dnxry: n/pmsprecc classscreen"> /home *(rw,roo _squash,sync) n/premsp> Trisapermits tre us0r home direheories to b& usedtt tre BDC sensmrs forates"ing purpos0s. You,aoftcourse, decidetwnat is tre b0sttway for your4site xo distribute daea drives, as well as creatingasuitable backuptand restore procedures foraAbmas Inc. I'd strongly rectmmend tnax4for normalcoperatry. tre BDC is completely independent oftthetPDC. rsync is ntusefulFtoolahereaas i" resembles tneaNT replicatiy. scnsiceaquite clos0ly. If4youtdo us0 NFS,4dolnot forget to4start thetNFS sensmr as follows: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> rcnfs4start n/premsp> n/pmsplims/olms/dlemsp> Your Samba-3 PDC is now readylto ctmmunicat& with tre LDAP password backend. Let's get y. with co figuratry. ofttre LDAP sensmr. n/pmsuch4n classexa 220>n>csen m="ch6-mclaive-smbct fa">np4n classtitle>n>b>Exa 220 6.4. LDAP Bas0dlsmb.ct f File, Sensmr: MASSIVE globaltSehery.: Part A# Globaltparamexers [global]n/ t>ni4n classparamexer"ms t> unixtcharset = LOCALEn/ t>ni4n classparamexer"ms t> workgroup = MEGANET2n/ t>ni4n classparamexer"ms t> netbiossen m = MASSIVEn/ t>ni4n classparamexer"ms t> inxerfaces = eth1, lon/ t>ni4n classparamexer"ms t> bind inxerfaces o.lyt= Yesn/ t>ni4n classparamexer"ms t> passdblbackendt= ldapsam:ldap://mclaive.abmas.bizn/ t>ni4n classparamexer"ms t> us0ren m map = /etc/samba/smbusersn/ t>ni4n classparamexer"ms t> logalevel = 1n/ t>ni4n classparamexer"ms t> sysloga= 0n/ t>ni4n classparamexer"ms t> logafile = /var/log/samba/%mn/ t>ni4n classparamexer"ms t> maxclogasize = 50n/ t>ni4n classparamexer"ms t> smbtports = 139 445n/ t>ni4n classparamexer"ms t> namearesolvmtorder = wi.s bcastlhostsn/ t>ni4n classparamexer"ms t> time sensmr = Yesn/ t>ni4n classparamexer"ms t> prinxcap en m = CUPSn/ t>ni4n classparamexer"ms t> show add prinxer wizardt= Non/ t>ni4n classparamexer"ms t> add us0r script = /var/lib/samba/sbin/smbldap-us0radd.pl -a -m '%u'n/ t>ni4n classparamexer"ms t> delete4us0r script = /var/lib/samba/sbin/smbldap-us0rdel.pl %un/ t>ni4n classparamexer"ms t> add group script = /var/lib/samba/sbin/smbldap-groupadd.pl -p '%g'n/ t>ni4n classparamexer"ms t> delete4group script = /var/lib/samba/sbin/smbldap-groupdel.pl '%g'n/ t>ni4n classparamexer"ms t> add us0r to group script = /var/lib/samba/sbin/n/ t>smbldap-groupmod.pl -m '%u' '%g'n/ t>ni4n classparamexer"ms t> delete4us0r from group script = /var/lib/samba/sbin/n/ t>smbldap-groupmod.pl -x '%u' '%g'n/ t>ni4n classparamexer"ms t> set primary group script = /var/lib/samba/sbin/n/ t>smbldap-us0rmod.pl -g '%g' '%u'n/ t>ni4n classparamexer"ms t> add machcne script = /var/lib/samba/sbin/n/ t>smbldap-us0radd.pl -w '%u'n/ t>ni4n classparamexer"ms t> logy. script = scripts\logy..batn/ t>ni4n classparamexer"ms t> logy. path = \\%L\profiles\%Un/ t>ni4n classparamexer"ms t> logy. drive = X:n/ t>ni4n classparamexer"ms t> domaintlogy.s = Yesn/ t>ni4n classparamexer"ms t> preferred mastera= Yesn/ t>ni4n classparamexer"ms t> wi.s supporta= Yesn/ t>ni4n classparamexer"ms t> ldap suffixa= dc=abmas,dc=bizn/ t>ni4n classparamexer"ms t> ldap machcne suffixa= ou=Peo220n/ t>ni4n classparamexer"ms t> ldap us0r suffixa= ou=Peo220n/ t>ni4n classparamexer"ms t> ldap group suffixa= ou=Groupsn/ t>n>csen m="ch6-mclaive-smbct fb">np4n classtitle>n>b>Exa 220 6.5. LDAP Bas0dlsmb.ct f File, Sensmr: MASSIVE globaltSehery.: Part Bni4n classparamexer"ms t> ldap idmap suffixa= ou=Idmapn/ t>ni4n classparamexer"ms t> ldap admin dna= cn=Manager,dc=abmas,dc=bizn/ t>ni4n classparamexer"ms t> idmap backendt= ldap:ldap://mclaive.abmas.bizn/ t>ni4n classparamexer"ms t> idmap uid = 10000-20000n/ t>ni4n classparamexer"ms t> idmap gid = 10000-20000n/ t>ni4n classparamexer"ms t> map acl inherita= Yesn/ t>ni4n classparamexer"ms t> prinxinga= cupsn/ t>ni4n classparamexer"ms t> prinxmr admin = Administrator, chrisrn/ t>n>csen m="ass537434">Install and Ct figuretIdealx SMB-LDAP Scriptssptlemsptlemsp>ncsn classindexterm"sen m="ass537441"> Tre Idealx scripts, orsequivalent,tare necelaary to permit Samba-3 to manage accoun s on tre LDAP sensmr. Youahave chose.ltre Idealx scripts4since tnmy are part of lre Samba-3 package distributry.. On your4SUSE Linux system,ayoutfind thes0 scripts4in4tre ntt4n classfileen m">/usr/share/doc/packages/samba3/Exa 220s/LDAP/smbldap-tools direheory. On a Red Hat Linux system, treytare in a4similar path. If4youtcannot find tnmtscripts4o. your4system, it4is easy enough4to download trem from lre Idealx na4href="http://samba.idealx.org/index.en.html"starget="_xop">Web Siee.aThettarbell may be direhely na4href="http://samba.idealx.org/dist/smbldap-tools-0.8.2.tgz"starget="_xop">downloaded foratnis4site, also. n/pmsp> I. your4installatry.,atre smbldap-toolstare locaeed in4ntt4n classfileen m">/var/lib/samba/sbinn/ t>. Treytcancbg installed in any ct venidnx direheory of your4choice, in which case youamust change tnmtpath to trem i. your4ntt4n classfileen m">smb.ct fn/ t> file on tre PDC (ntt4n classconatant">MASSIVEn/ t>). n/pmsp> Tre scripts4are not needed on BDC machcnesabecause all LDAP updates are handled by tnmtPDC alone. n/pmsuch4n classprocedure"mscsen m="asealxscript">nolFtypess1"mslimsp> Creat& tnmtntt4n classfileen m">/var/lib/samba/sbinn/ t> direheory, ad" set its permissry.s and ownership as shown here: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> mkdir -p /var/lib/samba/sbin ntt4n classprompt"mroo # n/ t> chown roo .roo /var/lib/samba/sbin ntt4n classprompt"mroo # n/ t> chmod 755 /var/lib/samba/sbin n/premsp> n/pmsplimslimsp> If4youtwish to us0 tre downloaded tarbell, unpackatre smbldap-toolstin a4suitable temporary locaery.. Change into ei her tre direheory extracted from tre tarball, orselseainto tnmtsmbldap-tools direheory i. your4ntt4n classfileen m">/usr/share/doc/packagesn/ t> direheory tree. n/pmsplimslimsp> Copy all tnmtntt4n classfileen m">.pln/ t> and ntt4n classfileen m">.pm filesainto tnmt ntt4n classfileen m">/var/lib/samba/sbinn/ t> direheory, as shown here: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> cd /usr/share/doc/packages/samba3/Exa 220s/LDAP/smbldap-tools ntt4n classprompt"mroo # n/ t> cp *.pl *.pm /var/lib/samba/sbin n/premsp> n/pmsplimslimsp>ncsn classindexterm"sen m="ass537620"> Youamustlcompile tnetnspan>mkntpasswdttoolaand tnenainstall it4into tnmtntt4n classfileen m">/var/lib/samba/sbinn/ t> direheory, as shown here: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> cd mkntpwd ntt4n classprompt"mroo # n/ t> make gcc -O2 -DMPU8086 -c -o getopt.o getopt.c gcc -O2 -DMPU8086 -c -o md4.o md4.c gcc -O2 -DMPU8086 -c -o mkntpwd.o mkntpwd.c mkntpwd.c: In funhery. `main': mkntpwd.c:37: warning: return type oft`main' is not `int' gcc -O2 -DMPU8086 -c -o smbdes.o smbdes.c gcc -O2 -DMPU8086 -o mkntpwd getopt.o md4.o mkntpwd.o smbdes.o ntt4n classprompt"mroo # n/ t> cp mkntpwd /var/lib/samba/sbin n/premsp> Tre smbldap-toolstscripts4mustlnow be ct figured. n/pmsplimslimsp> Change to tnmtntt4n classfileen m">/var/lib/samba/sbinn/ t> direheory, ad" edit lre ntt4n classfileen m">/var/lib/samba/sbin/smbldap_ct f.pm to affehelth0 changes shown here: n/pmsprecc classscreen"> # Put your4own SID # to ob"ain lris numberado: "net getlocalsid" #$SID='S-1-5-21-1671648649-242858427-2873575837'; $SID='S-1-5-21-3504140859-1010554828-2431957765'; ... # LDAP Suffix # Ex: $suffixa= "dc=IDEALX,dc=ORG"; $suffixa= "dc=abmas,dc=biz"; ... # Whereaare stored Users # Ex: $usersdna= "ou=Users,$suffix"; ... $usersoua= q(Peo220); $usersdna= "ou=$usersou,$suffix"; # Whereaare stored Computers # Ex: $computersdna= "ou=Computers,$suffix"; ... $computersoua= q(Peo220); $computersdna= "ou=$computersou,$suffix"; # Whereaare stored Groups # Ex $groupsdna= "ou=Groups,$suffix"; ... $groupsoua= q(Groups); $groupsdna= "ou=$groupsou,$suffix"; # Default scop&aUsed $scop&a= "sub"; # Unixtpasswordaencrypery. (CRYPT, MD5, SMD5, SSHA, SHA) $hash_encrype="MD5"; ... ############################ # CredentialaCt figuratry. # ############################ # Bid" DN used # Ex: $binddn4=a"cn=admin,$suffix"; ... $binddn4=a"cn=Manager,$suffix"; # Bid" DN passwd used # Ex: $bindpasswd = 'sehret';4for 'sehret' $bindpasswd = 'not24get'; ... # Logi. defs # Default Logi. Shell # Ex: $_userLogi.Shella= q(/bin/bash); #$_userLogi.Shella= q(_LOGINSHELL_); $_userLogi.Shella= q(/bin/bash); # Home direheory prefixt(without us0ren m) # Ex: $_userHomePrefixt= q(/home/); #$_userHomePrefixt= q(_HOMEPREFIX_); $_userHomePrefixt= q(/home/); ... # Tre UNCtpath to home drives locaery. without tnmt # us0ren m lastlextensry. (will be dyen ically prepended) # Ex: q(\\\\My-PDC-netbios-en m\\homes) # Justlcommdnx lris if4youtwanx to us0 trelsmb.ct f # 'logy. home' direheive # ad"/oradesablingaroamingtprofiles #$_userSmbHome = q(\\\\_PDCNAME_\\homes); $_userSmbHome = q(\\\\MASSIVE\\homes); # Tre UNCtpath to profiles locaery.s without tnmtus0ren m # lastlextensry. (will be dyen ically prepended) # Ex: q(\\\\My-PDC-netbios-en m\\profiles\\) # Justlcommdnx lris if4youtwanx to us0 trelsmb.ct f # 'logy. path' direheive ad"/oradesablingaroamingtprofiles $_userProfilet= q(\\\\MASSIVE\\profiles\\); # Tre default Home Drive Letxmr mapping # (automatrcally mapped ax4logy. time if4home direheory exis"s) # Ex: q(U:) foraU: #$_userHomeDrive = q(_HOMEDRIVE_); $_userHomeDrive = q(H:); ... # Allowsanot to us0 smbpasswd # (if4$with_smbpasswd == 0 in4smbldap_ct f.pm)abut # prefer mkntpwd...tmtsttofttre time, it's ntwise4choice :-) $with_smbpasswd = 0; $smbpasswd = "/usr/bin/smbpasswd"; $mk_ntpasswd = "/var/lib/samba/sbin/mkntpwd"; ... n/premsp> n/pmsplimslimsp> Tocctmplete tre co figuratry. ofttre smbldap-tools, set tnmtpermissry.s and ownership by executing lre following ctmmnd"s: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> chown roo .roo /var/lib/samba/sbin/* ntt4n classprompt"mroo # n/ t> chmod 755 /var/lib/samba/sbin/smb*pl ntt4n classprompt"mroo # n/ t> chmod 640 /var/lib/samba/sbin/smb*pm ntt4n classprompt"mroo # n/ t> chmod 555 /var/lib/samba/sbin/mkntpwd n/premsp> Tre smbldap-toolstscripts4are now readylforause. n/pmsplims/olms/dlemspdlemsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ass537824">LDAP Inieializatry. and Creatry. oftUs0r and Group Accoun ssptlemsptlemsp> Tre LDAP daeabase must be populaeed with well-known Windows Domaintus0r accoun s and DomaintGroup accoun s beforecSamba cancbg used.tTnecfollowing procedures step youttrrough4lre process. n/pmsp> Ax lris time, Samba-3 requires tnax4y. atPDC allaUNIX (Posix) group accoun s tnax4are mapped (linked) to Windows DomaintGroup accoun s must be in tnmtLDAP daeabase. I 4doestnot hurt to have UNIX user and group accoun s inabothatnecsystem files as well as in tnmtLDAP daeabase. From a UNIX system perspeheive, tre NSS resolv0r checkscsystem files before referring tocLDAP. If4the UNIX system cancresolvmt(find) anaaccoun in tnmtsystem file, it doestnot need to ask4LDAP. n/pmsp> Addiery. oftanaaccoun to tnmtLDAP backend cancbg done in a4numberaoftways: n/pmsuch4n classblockquote>n>blockquote4n classblockquote>n>p>ncsn classindexterm"sen m="ass537855">ncsn classindexterm"sen m="ass537863">ncsn classindexterm"sen m="ass537871">ncsn classindexterm"sen m="ass537879">ncsn classindexterm"sen m="ass537887">ncsn classindexterm"sen m="ass537895"> If4youtalways have a us0r accoun in4tre ntt4n classfileen m">/etc/passwd on esmrya sensmr or in a4NIS(+) backend, it4is not necelaary to add Posix accoun s foratnmm in4 LDAP. In this case, youtcancadd Windows Domaintus0r accoun s using tnmt nspan>pdbedittutility.tUs0softthis toolafrom tre commnd" line adds tnmt SambaSamAccoun dnxry foratnmtus0r,abut doestnot addstnmtPosixAccoun dnxry foratnmtus0r. n/pmsp> If4youtdecidettnax4it4istprobab2yaa good asea to add bothatnecPosixAccoun attributes as well as tre SambaSamAccoun attributes foraeachtus0r,atren a suitable script is needed. I. lre dxa 220 system youtare installing in lris exercise, youtare makingaus0 oftthe Idealx smbldap-toolstscripts. A copy oftthes0 tools, pre-ct figured foratnis4system, is included on tre enclos0d CD-ROM under4ntt4n classfileen m">Chap06/Tools. n/pmspblockquotemsptlemsp>ncsn classindexterm"sen m="ass537940"> If4youtwish to have morecco "rol ov0r how tnmtLDAP daeabase is inieialized or wanx not to us0 tre Idealx smbldap-tools, youtshoul"arefer to na4href="appendix.html#altldapcfg"stitle="Alt0reneive LDAP Daeabase Inieializatry.">???. n/pmsp>ncsn classindexterm"sen m="ass537964"> Tre following steps inieialize tnmtLDAP daeabase, and tnenayoutcancadd user and group accoun s tnax4Samba cancuse. Youaus0 tre nspan>smbldap-populaee.pln/b>tto seed tnmtLDAP daeabase. Youttrenamndually addstnmtaccoun s shown in4na4href="happy.html#ch6-bigacct"stitle="Table 6.2. Abmas Network Users and Groups">???. Tre lisx oftusers doestnot cov0r alla500 network users;4it4providestdxa 220s o.ly. n/pmsuch4n classnote> style="margin-left: 0.5in; margin-right: 0.5in;"msh34n classtitle>nNotencsn classindexterm"sen m="ass537993">ncsn classindexterm"sen m="ass538004">ncsn classindexterm"sen m="ass538016"> I. lre following dxa 220s, as tre LDAP daeabase is inieialized, we4dolcreat& acco "ainer foraComputer (machcne)taccoun s. In the Samba-34ntt4n classfileen m">smb.ct fn/ t> files, spehific us0 isamade oftthetPeo220 co "ainer,anot tnm Computers co "ainer,aforadomaintmembertaccoun s. Trisais not a misxake;4it4ista deliberate actry. trat4is necelaitat&d by tnmtfact tnax4lrere4ista bug i. Samba-3 tnat preven ssit from being able to search tre LDAP daeabase foracomputer accoun s if treytare placed in4tre Computers co "ainer. By placing alltmachcne accoun s inathetPeo220 co "ainer,awe are able to side-step tris bug. I 4is expected tnax4attsome time i. lre futuretthistproblem will be resolved. At tnax4lime, it will be polaible to us0 tre Computers co "ainer i. order to keep machcne accoun s separate from us0r accoun s. n/pmspdlemsuch4n classtable>n>csen m="ch6-bigacct">np4n classtitle>n>b>Table 6.2. Abmas Network Users and GroupsAccoun Namen/ hms h align="cdnxer">Typen/ hms h align="cdnxer">IDn/ hms h align="cdnxer">Passwordn/ hms/trms/ headms bodyms rms d align="left">Robert Jordans/ dms d align="left">Users/ dms d align="left">bobjs/ dms d align="left">n3v3r2l8s/ dms/trms rms d align="left">StanleytSorokas/ dms d align="left">Users/ dms d align="left">atanss/ dms d align="left">i 2213dst4rs/ dms/trms rms d align="left">Christcne Robersons/ dms d align="left">Users/ dms d align="left">chrisrn/ dms d align="left">S9n0nw4lls/ dms/trms rms d align="left">Mary Vortexiss/ dms d align="left">Users/ dms d align="left">maryvs/ dms d align="left">kw13t0n3s/ dms/trms rms d align="left">Accoun sGroupAccoun s s/ dms/trms rms d align="left">FinancesGroupFinances s/ dms/trms rms d align="left">InsuranceGroupPIOps s/ dms/trms/ bodyms/ ab20msptlemsuch4n classprocedure"mscsen m="creatacc">nolFtypess1"mslimsp> Start thetLDAP sensmr by executing: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> rcldap start Starting ldap-sensmr done n/premsp> n/pmsplimslimsp> Change to tnmtntt4n classfileen m">/var/lib/samba/sbinn/ t> direheory. n/pmsplimslimsp> Execut& lre script trax4will populaee tre LDAP daeabase as shown here: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> ./smbldap-populaee.pl Using builti. direheory structure addinganew dnxry: dc=abmas,dc=biz addinganew dnxry: ou=Peo220,dc=abmas,dc=biz addinganew dnxry: ou=Groups,dc=abmas,dc=biz addinganew dnxry: ou=Computers,dc=abmas,dc=biz addinganew dnxry: uid=Administrator,ou=Peo220,dc=abmas,dc=biz addinganew dnxry: uid=nobody,ou=Peo220,dc=abmas,dc=biz addinganew dnxry: cn=DomaintAdmins,ou=Groups,dc=abmas,dc=biz addinganew dnxry: cn=DomaintUsers,ou=Groups,dc=abmas,dc=biz addinganew dnxry: cn=DomaintGues"s,ou=Groups,dc=abmas,dc=biz addinganew dnxry: cn=Administrators,ou=Groups,dc=abmas,dc=biz addinganew dnxry: cn=Users,ou=Groups,dc=abmas,dc=biz addinganew dnxry: cn=Gues"s,ou=Groups,dc=abmas,dc=biz addinganew dnxry: cn=Powmr Users,ou=Groups,dc=abmas,dc=biz addinganew dnxry: cn=Accoun Operators,ou=Groups,dc=abmas,dc=biz addinganew dnxry: cn=Sensmr Operators,ou=Groups,dc=abmas,dc=biz addinganew dnxry: cn=Prinx Operators,ou=Groups,dc=abmas,dc=biz addinganew dnxry: cn=BackuptOperators,ou=Groups,dc=abmas,dc=biz addinganew dnxry: cn=Replicator,ou=Groups,dc=abmas,dc=biz addinganew dnxry: cn=DomaintComputers,ou=Groups,dc=abmas,dc=biz n/premsp> n/pmsplimslimsp> It4is necelaary to restart thetLDAP sensmr as shown here: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> rcldap restart Shutxing down ldap-sensmr done Starting ldap-sensmr done n/premsp> n/pmsplimslimsp>ncsn classindexterm"sen m="ass538334"> So tnax4we4cancus0 a globaltIDMAP repository tre LDAP direheory must have a co "ainer objehelforaIDMAP daea. Trereaare sesmraltways youtcanccheck that your4LDAP daeabase is able to reheive IDMAP ieformatry.. One oft tre si 220sttis to execute: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> slapcat | grepa-i idmap dn: ou=Idmap,dc=abmas,dc=biz ou: idmap n/premsp> ncsn classindexterm"sen m="ass538360"> If4the executiy. ofttris commnd" doestnot return IDMAP dnxries, youtneed to creat& an LDIF te 22ate file (see4na4href="happy.html#ch6-ldifadd"stitle="Exa 220 6.10. LDIF IDMAP Add-On Load File File: /etc/openldap/idmap.LDIF">???). Youtcancaddstnmtrequired dnxries using tre following ctmmnd": n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> ldapadds-x -Da"cn=Manager,dc=abmas,dc=biz" \ -w not24get < /etc/openldap/idmap.LDIF n/premsp> Samba automatrcally populaeesttris LDAP direheory co "ainer wnentit needs to. n/pmsplimslimsp>ncsn classindexterm"sen m="ass538399"> Italooks lik0 allthas gone well, as expected. Let's ct firm tnax lris is tre case by running a few tes"s. Firsx4we4check thetco "en ssoftthetdaeabase direhely by running nspan>slapcatn/b> as follows (tnmtoutput has beenacut down): n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> slapcat dn: dc=abmas,dc=biz objeheC cla: dcObjehe objeheC cla: organizatry. dc: abmas o: abmas structuralObjeheC cla: organizatry. dnxryUUID: 5ab02bf6-c536-1027-9d29-b1f32350fb43 creatorsNn m: nn=Manager,dc=abmas,dc=biz creat&Timestamp: 20031217234200Z dnxryCSN: 2003121723:42:00Z#0x0001#0#0000 modifi&vsNn m: nn=Manager,dc=abmas,dc=biz modifyTimestamp: 20031217234200Z ... dn: cn=DomaintComputers,ou=Groups,dc=abmas,dc=biz objeheC cla: posixGroup objeheC cla: sambaGroupMapping gidNumber: 553 cn: DomaintComputers descriptry.: NetbiossDomaintComputers accoun s sambaSID: S-1-5-21-3504140859-1010554828-2431957765-553 sambaGroupType: 2 dis22ayNn m: DomaintComputers structuralObjeheC cla: posixGroup dnxryUUID: 5e0a41d8-c536-1027-9d3b-b1f32350fb43 creatorsNn m: nn=Manager,dc=abmas,dc=biz creat&Timestamp: 20031217234206Z dnxryCSN: 2003121723:42:06Z#0x0002#0#0000 modifi&vsNn m: nn=Manager,dc=abmas,dc=biz modifyTimestamp: 20031217234206Z n/premsp> Trisalooks good so far. n/pmsplimslimsp>ncsn classindexterm"sen m="ass538451"> Tnmtnext step is to prove tnax4lre LDAP sensmr is running and responds to a search request. Execut& lre following as shown (output has beenacut to save space): n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> ldapsearch -x -b "dc=abmas,dc=biz" "(ObjeheC cla=*)" #lextended LDIF # # LDAPv3 # base <dc=abmas,dc=biz> with scop&asub # filter: (ObjeheC cla=*) # requesting: ALL # # abmas.biz dn: dc=abmas,dc=biz objeheC cla: dcObjehe objeheC cla: organizatry. dc: abmas o: abmas # Peo220, abmas.biz dn: ou=Peo220,dc=abmas,dc=biz objeheC cla: organizatry.alUnit ou: Peo220 ... # DomaintComputers, Groups, abmas.biz dn: cn=DomaintComputers,ou=Groups,dc=abmas,dc=biz objeheC cla: posixGroup objeheC cla: sambaGroupMapping gidNumber: 553 cn: DomaintComputers descriptry.: NetbiossDomaintComputers accoun s sambaSID: S-1-5-21-3504140859-1010554828-2431957765-553 sambaGroupType: 2 dis22ayNn m: DomaintComputers # search result search: 2 result: 0 Succela # numResponses: 20 # numEnxries: 19 n/premsp> Good. I 4is alltworking just fine. n/pmsplimslimsp>ncsn classindexterm"sen m="ass538509"> Youamustlnow make cer"ain lrax4lre NSS resolv0r can inxerrogat& LDAP also. Execut& lre following ctmmnd"s: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> getdnx passwd | grepaAdministrator Administrator:x:998:512:NetbiossDomaintAdministrator:/home:/bin/false ntt4n classprompt"mroo # n/ t> getdnx group | grepaDomain DomaintAdmins:x:512:Administrator DomaintUsers:x:513: DomaintGues"s:x:514: DomaintComputers:x:553: n/premsp>ncsn classindexterm"sen m="ass538540"> Trisademonstrates tnax4lre nspan>nss_ldapn/b> library is funhery.ing as i" shoul". n/pmsplimslimsp>ncsn classindexterm"sen m="ass538562">ncsn classindexterm"sen m="ass538570">ncsn classindexterm"sen m="ass538578"> Our4daeabase is now readylforatnmtaddiery. oftnetwork users. For eachtus0rlfor whom anaaccoun must be creat&d, execute lre following: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> ./smbldap-us0radd.pl -m -a ntt4n classconatant">us0ren m ntt4n classprompt"mroo # n/ t> ./smbldap-passwd.pl ntt4n classconatant">us0ren m Changing password forantt4n classconatant">us0ren m New password : XXXXXXXX Retype new password : XXXXXXXX ntt4n classprompt"mroo # n/ t> smbpasswd ntt4n classconatant">us0ren m New SMB password: XXXXXXXX Retype new SMB password: XXXXXXXX n/premsp> Where ntt4n classconatant">us0ren m is tre logi. ID foraeachtus0r. n/pmsplimslimsp>ncsn classindexterm"sen m="ass538640"> Now verifyttrax4tre UNIX (Posix) accoun s cancbg resolved via NSS by executing lre following: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> getdnx passwd ... Administrator:x:998:512:NetbiossDomaintAdministrator:/home:/bin/false nobody:x:999:514:nobody:/dev/null:/bin/false bobj:x:1000:513:System User:/home/bobj:/bin/bash atans:x:1001:513:System User:/home/atans:/bin/bash chrisr:x:1002:513:System User:/home/chrisr:/bin/bash maryv:x:1003:513:System User:/home/maryv:/bin/bash ntt4n classprompt"mroo # n/ t> id chrisr uid=1002(chrisr) gid=513(DomaintUsers) groups=513(DomaintUsers) n/premsp> Trisact firmsttrax4tre UNIX (Posix) us0r accoun s cancbg resolved from LDAP. n/pmsplimslimsp>ncsn classindexterm"sen m="ass538682"> I. lre above listcng, youtcancsee4trax4tre us0r ntt4n classconatant">Administrator has beenagivenaUID=998. Trisameans tnax4operatry.sact ducted from a Windows clidnx using toolstsuchtas tnmtDomaintUser Manager failstunder4UNIX because lre managemdnx oftuser and group accoun s requires tnax4tre UID=0. Youtdecidetto rehtifyt tris immediately asademonstrated here: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> cd /var/lib/samba/sbin ntt4n classprompt"mroo # n/ t> ./smbldap-us0rmod.pl -u 0 Administrator n/premsp> n/pmsplimslimsp> Make cer"ain lrax4a4home direheory has beenacreat&d foraesmryauser by listcng lre direheories in4ntt4n classfileen m">/homen/ t> as follows: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> lst-al /home drwxr-xr-x 8 roo roo 176 Dec 17 18:50 ./ drwxr-xr-x 21 roo roo 560 Dec 15 22:19 ../ drwx------ 7 bobj DomaintUsers 568 Dec 17 01:16 bobj/ drwx------ 7 chrisr DomaintUsers 568 Dec 17 01:19 chrisr/ drwx------ 7 maryv DomaintUsers 568 Dec 17 01:27 maryv/ drwx------ 7 atans DomaintUsers 568 Dec 17 01:43 atans/ n/premsp> Trisaistpreciselytwnax4we4wanx to see. n/pmsplimslimsp>ncsn classindexterm"sen m="ass538757">ncsn classindexterm"sen m="ass538765"> Tnmtfinal validatiy. step involves makingacer"ain lrax4Samba-3 cancob"ain lre us0r accoun s from tre LDAP ldapsam passwd backend. Execut& lre following ctmmnd" as shown: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> pdbedit -Lv chrisr Unixtus0ren m: chrisr NTtus0ren m: chrisr Accoun Flags: [U ] User SID: S-1-5-21-3504140859-1010554828-2431957765-3004 Primary Group SID: S-1-5-21-3504140859-1010554828-2431957765-513 Full Nn m: System User Home Direheory: \\MASSIVE\homes HomeDir Drive: H: Logy. Script: chrisr.cmd ProfiletPath: \\MASSIVE\profiles\chrisr Domain: MEGANET2 Accoun desc: System User Workatatry.s: Mung&d dial: Logy. lime: 0 Logyff lime: My.,a18 Janc2038c20:14:07 GMT Kickyff lime: My.,a18 Janc2038c20:14:07 GMT Password lastlset: W&d, 17 Dec 2003 17:17:40 GMT Password cancchange: W&d, 17 Dec 2003 17:17:40 GMT Password mustlchange: My.,a18 Janc2038c20:14:07 GMT n/premsp> Trisalooks good. Oftcourse, youtfully expected tnax4it woul"aalltwork, didn't you? n/pmsplimslimsp>ncsn classindexterm"sen m="ass538823"> Now youtaddstnmtgroup accoun s tnax4are usedtt tre Abmas network. Execut& tre following exahely as shown: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> ./smbldap-groupadd.pl -a Accoun s ntt4n classprompt"mroo # n/ t> ./smbldap-groupadd.pl -a Finances ntt4n classprompt"mroo # n/ t> ./smbldap-groupadd.pl -a PIOps n/premsp> Tre addiery. oftgroups doestnot involve keyboardtinxeractry., so tre lackaoftconsol& output issoftnocctncern. n/pmsplimslimsp>ncsn classindexterm"sen m="ass538866"> Youareally do4wanx to ct firm tnax UNIX group resolutiy. from LDAP is funhery.ing as i" shoul". Let's do lris as shown here: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> getdnx group ... DomaintAdmins:x:512:Administrator DomaintUsers:x:513:bobj,atans,chrisr,maryv DomaintGues"s:x:514: ... Accoun s:x:1000: Finances:x:1001: PIOps:x:1002: n/premsp> Tre well-known spehial accoun s (DomaintAdmins, DomaintUsers, DomaintGues"s), as well as our4own site-spehific group accoun s,tare correhely listed.tTnisaistlooking good. n/pmsplimslimsp>ncsn classindexterm"sen m="ass538900"> Tnmtfinal step wetneed to validat& is tnax4Samba cancsee4all tnmtWindows DomaintGroups and tnax4treytare correhely mapped to tnmtrespeheive UNIX group accoun .tTo do lris, just execut& lre following ctmmnd": n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> net groupmap list DomaintAdmins (S-1-5-21-3504140859-...-2431957765-512) -> DomaintAdmins DomaintUsers (S-1-5-21-3504140859-...-2431957765-513) -> DomaintUsers DomaintGues"s (S-1-5-21-3504140859-...-2431957765-514) -> DomaintGues"s ... Accoun s (S-1-5-21-3504140859-1010554828-2431957765-3001) -> Accoun s Finances (S-1-5-21-3504140859-1010554828-2431957765-3003) -> Finances PIOps (S-1-5-21-3504140859-1010554828-2431957765-3005) -> PIOps n/premsp> Trisaistlooking good.aCt gratulatry.sa4it worka! Note tnax4i. lre above output tre lcnesawhere shorten&d by replacing tnmtmiddletvalue (1010554828)softthetSID with tre elipsist(...). n/pmsplimslimsp> Tre sensmr youahave so carefully built is now readylforaanother important step. Yout start thetSamba-3 sensmr and validat& i ssoperatry.. Execut& lre following to render4all tre processes neededtfully operatrve so tnax,tt system reboo , treytare automatrcally started: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> chkct figsen mdtt ntt4n classprompt"mroo # n/ t> chkct figsdhcpdtt ntt4n classprompt"mroo # n/ t> chkct figsldap t ntt4n classprompt"mroo # n/ t> chkct figsnmb t ntt4n classprompt"mroo # n/ t> chkct figssmb t ntt4n classprompt"mroo # n/ t> chkct figswinbind t ntt4n classprompt"mroo # n/ t> rcnmb start ntt4n classprompt"mroo # n/ t> rcsmb start ntt4n classprompt"mroo # n/ t> rcwinbind start n/premsp> n/pmsplimslimsp> Tre next step mightcseem a little odd ax4thistpoint,tbut xaketnote that youtare about to start nspan>winbinddtwhich must be able to authenticat& to tnmtPDC via lre localhost inxerface.tTnisarequires a Domaintaccoun foratnmtPDC. Tnisaaccoun cancbg easily creat&d by joining tnmtPDC to tnmtDomaintby executing lre following ctmmnd": n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> net rpc join -U Administrator%not24get Join&d domaintMEGANET2. n/premsp> Trisaindicat&s tnax4tre Domaintsecuritytaccoun foratnmtBDC has beenacorrehely creat&d. n/pmsplimslimsp> Ax lris time it4is necelaary to restart nspan>winbinddtso tnax it4can correhely authenticat& to tnmtPDC.tTnecfollowing ctmmnd" achiev&s tnax: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> rcwinbind restart n/premsp> n/pmsplimslimsp>ncsn classindexterm"sen m="ass539081"> Youamay now check Samba-3 operatry. as follows: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> smbclidnx -L mclaive -U% Shareen m Type Commdnx --------- ---- ------- IPC$ IPC IPC Sensice (Samba 3.0.1) accoun s Disk Accoun ing Files sensice Disk FinancialtSensices Files pidata Disk PropertytInsurance Files apps Disk Applicatry. Files netlogy. Disk Network Logy. Sensice profiles Disk ProfiletShare profdata Disk ProfiletDaeatShare ADMIN$ IPC IPC Sensice (Samba 3.0.1) Sensmr Commdnx --------- ------- MASSIVE Samba 3.0.1 Workgroup Master --------- ------- MEGANET2 MASSIVE n/premsp> Trisashows tnax4a. anonymousact nehery.4is working. n/pmsplimslimsp> For your4finale, let's xry a. authenticat&dact nehery.. Follow lris as shown: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> smbclidnx //mclaive/bobj -Ubobj%n3v3r2l8 smb: \> dir . D 0 W&d Dec 17 01:16:19 2003 .. D 0 W&d Dec 17 19:04:42 2003 bin D 0 Tue Sep 2 04:00:57 2003 Documen s D 0 Sun Nov 30 07:28:20 2003 public_html D 0 Sun Nov 30 07:28:20 2003 .urlview H 311 Fri Jul 7 06:55:35 2000 .dvipsrc H 208 Fri Nov 17 11:22:02 1995 57681 blockssoftsize 524288. 57128 blockssavailable smb: \> q n/premsp> Well done. All4is working fine. n/pmsplims/olms/dlemsp> Tre sensmr ntt4n classconatant">MASSIVEn/ t> is now ct figured, and it4is time to move onto tnmtnext task. n/pmspdlemsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ch6-ptrcfg">Prinxmr Ct figuratry.sptlemsptlemsp>ncsn classindexterm"sen m="ass539179"> Tre co figuratry. foraSamba-3 to eenble CUPS raw-prinx-trrough4prinxingahas alreadylbeen xaken caresoftin4tre ntt4n classfileen m">smb.ct fn/ t> file.tTneco.ly preparatry. neededtfor ntt4n classconatant">smart prinxingato be polaible involves creatry. ofttre direheories in4which Samba-3 stores Windows prinxingadriver files. n/pmsuch4n classprocedure"msolFtypess1"mslimsp> Co figuretall network attachedtprinxmrs to have a fixedtIP address. n/pmsplimslimsp> Creat& an dnxry in4tre DNS4daeabase t tre sensmr ntt4n classconatant">MASSIVEn/ t> inabothatnecforwardtlookup daeabase foratneczone ntt4n classconatant">abmas.biz.hostsn/ t> and in tnmtresmrsetlookup daeabase foratnecnetwork segmdnx lrax4tre prinxmr is to be locaeed in. Exa 220 co figuratry. files forasimilar zones were presdnxed in na4href="secure.html#abmasbiz" title="Exa 220 4.14. DNS4Abmas.biz ForwardtZone File">??? and in na4href="secure.html#eth2zone" title="Exa 220 4.13. DNS4192.168.2 ResmrsetZone File">???. n/pmsplimslimsp> Follow lre instructry.sain tnmtprinxmr mndufacturers'amnduals to permit prinxing to porta9100. Us0sany other portatnmtmndufacturer spehifies foradirehe mode, raw prinxing. Tnisaallows tre CUPS spooler to prinx using raw mode protocols. na4n classindexterm"sen m="ass539255"> na4n classindexterm"sen m="ass539262"> n/pmsplimslimsp>na4n classindexterm"sen m="ass539275"> na4n classindexterm"sen m="ass539284"> O.ly t tre sensmr to which tre prinxmr is attached, ct figure tre CUPS Prinx Queues as follows: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> lpadmin -p ni4n classparamexer"ms t>prinxqu0n/ t>prinxer-en m na4n classindexterm"sen m="ass539319"> Trisastep creat&satnecnecelaary prinx queue to us0 no assignedtprinx filter. Tnis is aseal foraraw prinxing, i.e., prinxingawithout us0 oftfilters. Tre nn m ni4n classparamexer"ms t>prinxqu0n/ t> Prinx queuesamay not be eenbled ax4creatry.. Make cer"ain lrax4lre queues youahave just creat&d areseenbled by executing lre following: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> /usr/bin/eenble ni4n classparamexer"ms t>prinxqu0n/ t> n/pmsplimslimsp> Eve.ltrough4your4prinx queue may be eenbled, it4is still polaible tnax it may not accept prinx jobs. A prinx queue will sensice incomingtprinxing requests o.ly wnentct figured to do so. Ensure that your4prinx queue is set to accept incomingtjobs by executing lre following ctmmnd"s: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> /usr/bin/accept ni4n classparamexer"ms t>prinxqu0n/ t> n/pmsplimslimsp> na4n classindexterm"sen m="ass539400"> na4n classindexterm"sen m="ass539407"> na4n classindexterm"sen m="ass539414"> Edit lre file ntt4n classfileen m">/etc/cups/mime.ct vs to uncommdnx lre lcne: n/pmsprecc classscreen"> applicatry./octet-stream applicatry./vnd.cups-raw 0 - n/premsp> n/pmsplimslimsp> na4n classindexterm"sen m="ass539442"> Edit lre file ntt4n classfileen m">/etc/cups/mime.types to uncommdnx lre lcne: n/pmsprecc classscreen"> applicatry./octet-stream n/premsp> n/pmsplimslimsp> Refer to tre CUPS prinxingamndual forainstructry.saregardingahow lotct figure CUPS so tnax prinx queuesatnax residett CUPS sensmrs4o. remote networks route prinx jobs to tre prinx sensmr tnax4owns tnax4queue. Tre default setxing o. your4CUPS sensmr may automatrcally discov0r remotely installed prinxmrs and may permit lris funhery.alityawithout requiring spehific co figuratry.. n/pmsplimslimsp> Tre following actry. creat&satnecnecelaary direheory sub-system. Follow lres0 steps to prinxingaheaven: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> mkdir -p /var/lib/samba/drivers/{W32ALPHA,W32MIPS,W32X86,WIN40} ntt4n classprompt"mroo # n/ t> chown -R roo .roo /var/lib/samba/drivers ntt4n classprompt"mroo # n/ t> chmod -R ug=rwx,o=rx /var/lib/samba/drivers n/premsp> n/pmsplims/olms/dlemspdlemspdlemsuch4n classsehe1" lang="en"msuch4n classtitlepage"msuchmsuchmsh24n classtitle> style="clear:aboth>n>csen m="ch6-bldg1">Samba-3 BDC Ct figuratry.sptlemsptlemsuch4n classprocedure"msp4n classtitle>n>b>Procedure 6.7. Co figuratry. oftBDC Called: ntt4n classconatant">BLDG1n/ t> Install lre files in4na4href="happy.html#ch6-bldg1-smbco f"stitle="Exa 220 6.6. LDAP Basedtsmb.ct f File, Sensmr: BLDG1">???, na4href="happy.html#ch6-sharect fa"stitle="Exa 220 6.8. LDAP Basedtsmb.ct f File, Shares Sectry. Part A">???, and na4href="happy.html#ch6-sharect fb"stitle="Exa 220 6.9. LDAP Basedtsmb.ct f File, Shares Sectry. Part B">??? into tnmtntt4n classfileen m">/etc/samba/n/ t> direheory. Tre three files shoul"abe added toge her to form4tre ntt4n classfileen m">smb.ct fn/ t> file. n/pmsplimslimsp> Verifyttre ntt4n classfileen m">smb.ct fn/ t> file as in step 2 oftna4href="happy.html#ch6-mclaive"stitle="Samba-3 PDC Ct figuratry.">???. n/pmsplimslimsp> Carefully follow lre steps outlin&d in4na4href="happy.html#ch6-PAM-NSS"stitle="PAM and NSS Clidnx Ct figuratry.">???, xaking particular note toainstall thetcorrehe ntt4n classfileen m">ldap.ct fn/ t>. n/pmsplimslimsp> Verifyttrax4lre NSS resolv0r is working. Youamay need to cycle tnetrun level to 1 and backato 5 beforeclre NSS LDAP resolv0r funhery.s. Follow lres0 commnd"s: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> inie 1 n/premsp> After tre run level has beenaachiev&d, youtare prompted to provide lre ntt4n classconatant">roo n/ t> password. Log y., and tnenaexecute: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> inie 5 n/premsp> Whe tre normal4logy. prompt appears,4logainto tnmtsystem as ntt4n classconatant">roo n/ t> and tnenaexecute lres0 ctmmnd"s: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> getdnx passwd roo :x:0:0:roo :/roo :/bin/bash bin:x:1:1:bin:/bin:/bin/bash daemon:x:2:2:Daemon:/sbin:/bin/bash lp:x:4:7:Prinxingadaemon:/var/spool/lpd:/bin/bash mail:x:8:12:Maileradaemon:/var/spool/clidnxmqueue:/bin/false ... Administrator:x:0:512:NetbiossDomaintAdministrator:/home:/bin/false nobody:x:999:514:nobody:/dev/null:/bin/false bobj:x:1000:513:System User:/home/bobj:/bin/bash atans:x:1001:513:System User:/home/atans:/bin/bash chrisr:x:1002:513:System User:/home/chrisr:/bin/bash maryv:x:1003:513:System User:/home/maryv:/bin/bash vaioboss$:x:1005:553:vaioboss$:/dev/null:/bin/false bldg1$:x:1006:553:bldg1$:/dev/null:/bin/false n/premsp> Trisaistthetcorrehe output. If4the accoun s tnax4have UIDs above 5124are not shown,4lrere4ista problem. n/pmsplimslimsp>ncsn classindexterm"sen m="ass539684"> Tnmtnext step i tre verificatry. process involves testcng lre operatry. oftUNIX group resolutiy. via lre NSS LDAP resolv0r. Execut& lres0 ctmmnd"s: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> getdnx group roo :x:0: bin:x:1:daemon daemon:x:2: sys:x:3: ... DomaintAdmins:x:512:Administrator DomaintUsers:x:513:bobj,atans,chrisr,maryv,jht DomaintGues"s:x:514: Administrators:x:544: Users:x:545: Gues"s:x:546:nobody Powmr Users:x:547: Accoun Operators:x:548: Sensmr Operators:x:549: Prinx Operators:x:550: BackuptOperators:x:551: Replicator:x:552: DomaintComputers:x:553: Accoun s:x:1000: Finances:x:1001: PIOps:x:1002: n/premsp> Trisaistalsotthetcorrehe nd" desired output, because itademonstrates tnax4lre LDAP clidnx is able to ctmmunicat& correhely with tre LDAP sensmr (ntt4n classconatant">MASSIVEn/ t>). n/pmsplimslimsp>ncsn classindexterm"sen m="ass539726"> Youamustlnow set tnmtLDAP administrative password into tnm Samba-34ntt4n classfileen m">sehrets.tdbn/ t> file by executing lris commnd": n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> smbpasswd -w not24get Setxing stored password fora"cn=Manager,dc=abmas,dc=biz" intsecrets.tdb n/premsp> n/pmsplimslimsp> Now youtmustlob"ain lre DomaintSecuritytIdentifi&v from tre PDC and storecit into tnm ntt4n classfileen m">sehrets.tdbn/ t> file also. Trisastep is not necelaary with an LDAP passdb backend because Samba-3 ob"ains tnmtDomaintSID from tre sambaDomaintobjehelit automatrcally stores in tnmtLDAP backend. I 4doestnot hurt to addstnmtSID to tnmtntt4n classfileen m">sehrets.tdbn/ t>, and if4youtwish to do so, lris commnd"tcancachiev& tnax: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> net rpc getsid MEGANET2 Seoring SID S-1-5-21-3504140859-1010554828-2431957765 \ foraDomaintMEGANET2 intsecrets.tdb n/premsp> Wnentct figuring a Samba-3 BDC tnax4has an LDAP backend, lrere4istno need to xake any spehial actry. to join it to tnmtDomain. Howmver,awinbind ctmmunicat&s with tre DomaintCo "rollmr tnax4is running t tre localhost nd"tmust be able to authenticat&, trus requiring tnax4lre BDC shoul"abe join&d to tnmtDomain. Tre process oftjoining tre Domaintcreat&satnecnecelaary authenticatry. accoun s. n/pmsplimslimsp> Tocjoin thetSamba BDC to tnmtDomaintexecute lre following: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> net rpc join -U Administrator%not24get Join&d domaintMEGANET2. n/premsp> Trisaindicat&s tnax4tre Domaintsecuritytaccoun foratnmtBDC has beenacorrehely creat&d. n/pmsplimslimsp> ncsn classindexterm"sen m="ass539830"> Verifyttrax4user and group accoun resolutiy. works via Samba-3 toolstas follows: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> pdbedit -L Administrator:0:Administrator nobody:65534:nobody bobj:1000:System User atans:1001:System User chrisr:1002:System User maryv:1003:System User bldg1$:1006:bldg1$ ntt4n classprompt"mroo # n/ t> net groupmap list DomaintAdmins (S-1-5-21-3504140859-...-2431957765-512) -> DomaintAdmins DomaintUsers (S-1-5-21-3504140859-...-2431957765-513) -> DomaintUsers DomaintGues"s (S-1-5-21-3504140859-...-2431957765-514) -> DomaintGues"s Administrators (S-1-5-21-3504140859-...-2431957765-544) -> Administrators ... Accoun s (S-1-5-21-3504140859-1010554828-2431957765-3001) -> Accoun s Finances (S-1-5-21-3504140859-1010554828-2431957765-3003) -> Finances PIOps (S-1-5-21-3504140859-1010554828-2431957765-3005) -> PIOps n/premsp> Tre above results show tnax4all thingstare in order. n/pmsplimslimsp> Tre sensmr youahave so carefully built is now readylforaanother important step. Now start thetSamba-3 sensmr and validat& i ssoperatry.. Execut& lre following to render4all the processes neededtfully operatrve so tnax,tupt system reboo , treytare automatrcally started: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> chkct figsen mdtt ntt4n classprompt"mroo # n/ t> chkct figsdhcpdtt ntt4n classprompt"mroo # n/ t> chkct figsnmb t ntt4n classprompt"mroo # n/ t> chkct figssmb t ntt4n classprompt"mroo # n/ t> chkct figswinbind t ntt4n classprompt"mroo # n/ t> rcnmb start ntt4n classprompt"mroo # n/ t> rcsmb start ntt4n classprompt"mroo # n/ t> rcwinbind start n/premsp> Samba-3 shoul"anow be running and isareadylforaa quickatest. Bux not quit& yet! n/pmsplimslimsp> Your new ntt4n classconatant">BLDG1, BLDG2n/ t> sensmrs4do not have home direheories forausers. Tocrehtifytlris using tnmtSUSE yast2tutility or byamndually editing tnmtntt4n classfileen m">/etc/fatabn/ t> file,taddsa moun dnxry to mounx lre ntt4n classconatant">homen/ t> direheory tnax4has beenaexported from tre ntt4n classconatant">MASSIVEn/ t> sensmr. Mounx lrisaresource beforecproceeding. A. alt0renee approachtcoul"abe to creat& local home direheories forausers whotare to us0 tresetmachcnes. Trisaista choice that you, as system administrator,tmust make.tTnecfollowing dnxry in4tre ntt4n classfileen m">/etc/fatabn/ t> file suffices foranow: n/pmsprecc classscreen"> mclaive.abmas.biz:/home /home nfs rw 0 0 n/premsp> To mounx lrisaresource,aexecute: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> mounx -a n/premsp> Verifyttrax4lre home direheory has beenamounxedtas follows: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> df | grepahome mclaive:/home 29532988 283388 29249600 1% /home n/premsp> n/pmsplimslimsp> I 220mdnx a quickacheck using on0 ofttheausers tnax4is in tnmtLDAP daeabase. Here4youago: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> smbclidnx //bldg1/bobj -Ubobj%n3v3r2l8 smb: \> dir . D 0 W&d Dec 17 01:16:19 2003 .. D 0 W&d Dec 17 19:04:42 2003 bin D 0 Tue Sep 2 04:00:57 2003 Documen s D 0 Sun Nov 30 07:28:20 2003 public_html D 0 Sun Nov 30 07:28:20 2003 .urlview H 311 Fri Jul 7 06:55:35 2000 .dvipsrc H 208 Fri Nov 17 11:22:02 1995 57681 blockssoftsize 524288. 57128 blockssavailable smb: \> q n/premsp> n/pmsplims/olms/dlemsuch4n classprocedure"mscsen m="ch6-bldg2">np4n classtitle>n>b>Procedure 6.8. Co figuratry. oftBDC Called: ntt4n classconatant">BLDG2n/ t> Install lre files in4na4href="happy.html#ch6-bldg2-smbco f"stitle="Exa 220 6.7. LDAP Basedtsmb.ct f File, Sensmr: BLDG2">???, na4href="happy.html#ch6-sharect fa"stitle="Exa 220 6.8. LDAP Basedtsmb.ct f File, Shares Sectry. Part A">???, and na4href="happy.html#ch6-sharect fb"stitle="Exa 220 6.9. LDAP Basedtsmb.ct f File, Shares Sectry. Part B">??? into tnmtntt4n classfileen m">/etc/samba/n/ t> direheory. Tre three files shoul"abe added toge her to form4tre ntt4n classfileen m">smb.ct fn/ t> file. n/pmsplimslimsp> Follow carefully lre steps shown in4na4href="happy.html#ch6-bldg1"stitle="Samba-3 BDC Ct figuratry.">???, starting at step 2. n/pmsplims/olms/dlemsuch4n classexa 220>n>csen m="ch6-bldg1-smbco f">np4n classtitle>n>b>Exa 220 6.6. LDAP Basedtsmb.ct f File, Sensmr: BLDG1# Globaltparamexerss/ dms/trms rms d> s/ dms/trms rms d>ni4n classparamexer"ms t>[global]n/ t>ncsn classindexterm"sen m="ass540155">ni4n classparamexer"ms t> unixtcharset = LOCALEn/ t>ncsn classindexterm"sen m="ass540171">ni4n classparamexer"ms t> workgroup =tMEGANET2n/ t>ncsn classindexterm"sen m="ass540187">ni4n classparamexer"ms t> netbiossnn m = BLDG1n/ t>ncsn classindexterm"sen m="ass540203">ni4n classparamexer"ms t> passdb backend = ldapsam:ldap://mclaive.abmas.bizn/ t>ncsn classindexterm"sen m="ass540220">ni4n classparamexer"ms t> us0ren m map = /etc/samba/smbusersn/ t>ncsn classindexterm"sen m="ass540236">ni4n classparamexer"ms t> logalevel = 1n/ t>ncsn classindexterm"sen m="ass540251">ni4n classparamexer"ms t> sysloga= 0n/ t>ncsn classindexterm"sen m="ass540266">ni4n classparamexer"ms t> logafile = /var/log/samba/%mn/ t>ncsn classindexterm"sen m="ass540282">ni4n classparamexer"ms t> max4logasize = 50n/ t>ncsn classindexterm"sen m="ass540298">ni4n classparamexer"ms t> smb ports = 139 445n/ t>ncsn classindexterm"sen m="ass540313">ni4n classparamexer"ms t> en m resolv0 order = wins bcastlhostsn/ t>ncsn classindexterm"sen m="ass540330">ni4n classparamexer"ms t> prinxcap nn m = CUPSn/ t>ncsn classindexterm"sen m="ass540345">ni4n classparamexer"ms t> show addsprinxmr wizardt= Non/ t>ncsn classindexterm"sen m="ass540361">ni4n classparamexer"ms t> logt script = scripts\logt .batn/ t>ncsn classindexterm"sen m="ass540378">ni4n classparamexer"ms t> logt path = \\%L\profiles\%Un/ t>ncsn classindexterm"sen m="ass540393">ni4n classparamexer"ms t> logt drive = X:n/ t>ncsn classindexterm"sen m="ass540409">ni4n classparamexer"ms t> domaintlogt s = Yesn/ t>ncsn classindexterm"sen m="ass540425">ni4n classparamexer"ms t> domaintmastert= Non/ t>ncsn classindexterm"sen m="ass540440">ni4n classparamexer"ms t> wins sensmr = 172.16.0.1n/ t>ncsn classindexterm"sen m="ass540456">ni4n classparamexer"ms t> ldap suffix = dc=abmas,dc=bizn/ t>ncsn classindexterm"sen m="ass540472">ni4n classparamexer"ms t> ldap machcne suffix = ou=Peo220n/ t>ncsn classindexterm"sen m="ass540489">ni4n classparamexer"ms t> ldap user suffix = ou=Peo220n/ t>ncsn classindexterm"sen m="ass540504">ni4n classparamexer"ms t> ldap group suffix = ou=Groupsn/ t>ncsn classindexterm"sen m="ass540520">ni4n classparamexer"ms t> ldap idmap suffix = ou=Idmapn/ t>ncsn classindexterm"sen m="ass540536">ni4n classparamexer"ms t> ldap admin dn = cn=Manager,dc=abmas,dc=bizn/ t>ncsn classindexterm"sen m="ass540552">ni4n classparamexer"ms t> idmap backend = ldap:ldap://mclaive.abmas.bizn/ t>ncsn classindexterm"sen m="ass540568">ni4n classparamexer"ms t> idmap uid = 10000-20000n/ t>ncsn classindexterm"sen m="ass540584">ni4n classparamexer"ms t> idmap gid = 10000-20000n/ t>ncsn classindexterm"sen m="ass540599">ni4n classparamexer"ms t> prinxing = cupsn/ t>ncsn classindexterm"sen m="ass540615">ni4n classparamexer"ms t> prinxer4admin = Administrator, chrisrn/ t>n>csen m="ch6-bldg2-smbco f">np4n classtitle>n>b>Exa 220 6.7. LDAP Basedtsmb.ct f File, Sensmr: BLDG2# Globaltparamexerss/ dms/trms rms d> s/ dms/trms rms d>ni4n classparamexer"ms t>[global]n/ t>ncsn classindexterm"sen m="ass540660">ni4n classparamexer"ms t> unixtcharset = LOCALEn/ t>ncsn classindexterm"sen m="ass540676">ni4n classparamexer"ms t> workgroup =tMEGANET2n/ t>ncsn classindexterm"sen m="ass540691">ni4n classparamexer"ms t> netbiossnn m = BLDG2n/ t>ncsn classindexterm"sen m="ass540707">ni4n classparamexer"ms t> passdb backend = ldapsam:ldap://mclaive.abmas.bizn/ t>ncsn classindexterm"sen m="ass540724">ni4n classparamexer"ms t> us0ren m map = /etc/samba/smbusersn/ t>ncsn classindexterm"sen m="ass540740">ni4n classparamexer"ms t> logalevel = 1n/ t>ncsn classindexterm"sen m="ass540755">ni4n classparamexer"ms t> sysloga= 0n/ t>ncsn classindexterm"sen m="ass540771">ni4n classparamexer"ms t> logafile = /var/log/samba/%mn/ t>ncsn classindexterm"sen m="ass540786">ni4n classparamexer"ms t> max4logasize = 50n/ t>ncsn classindexterm"sen m="ass540802">ni4n classparamexer"ms t> smb ports = 139 445n/ t>ncsn classindexterm"sen m="ass540818">ni4n classparamexer"ms t> en m resolv0 order = wins bcastlhostsn/ t>ncsn classindexterm"sen m="ass540834">ni4n classparamexer"ms t> prinxcap nn m = CUPSn/ t>ncsn classindexterm"sen m="ass540850">ni4n classparamexer"ms t> show addsprinxmr wizardt= Non/ t>ncsn classindexterm"sen m="ass540866">ni4n classparamexer"ms t> logt script = scripts\logt .batn/ t>ncsn classindexterm"sen m="ass540882">ni4n classparamexer"ms t> logt path = \\%L\profiles\%Un/ t>ncsn classindexterm"sen m="ass540898">ni4n classparamexer"ms t> logt drive = X:n/ t>ncsn classindexterm"sen m="ass540913">ni4n classparamexer"ms t> domaintlogt s = Yesn/ t>ncsn classindexterm"sen m="ass540929">ni4n classparamexer"ms t> domaintmastert= Non/ t>ncsn classindexterm"sen m="ass540945">ni4n classparamexer"ms t> wins sensmr = 172.16.0.1n/ t>ncsn classindexterm"sen m="ass540961">ni4n classparamexer"ms t> ldap suffix = dc=abmas,dc=bizn/ t>ncsn classindexterm"sen m="ass540976">ni4n classparamexer"ms t> ldap machcne suffix = ou=Peo220n/ t>ncsn classindexterm"sen m="ass540993">ni4n classparamexer"ms t> ldap user suffix = ou=Peo220n/ t>ncsn classindexterm"sen m="ass541008">ni4n classparamexer"ms t> ldap group suffix = ou=Groupsn/ t>ncsn classindexterm"sen m="ass541024">ni4n classparamexer"ms t> ldap idmap suffix = ou=Idmapn/ t>ncsn classindexterm"sen m="ass541040">ni4n classparamexer"ms t> ldap admin dn = cn=Manager,dc=abmas,dc=bizn/ t>ncsn classindexterm"sen m="ass541057">ni4n classparamexer"ms t> idmap backend = ldap://mclaive.abmas.bizn/ t>ncsn classindexterm"sen m="ass541073">ni4n classparamexer"ms t> idmap uid = 10000-20000n/ t>ncsn classindexterm"sen m="ass541088">ni4n classparamexer"ms t> idmap gid = 10000-20000n/ t>ncsn classindexterm"sen m="ass541104">ni4n classparamexer"ms t> prinxing = cupsn/ t>ncsn classindexterm"sen m="ass541120">ni4n classparamexer"ms t> prinxer4admin = Administrator, chrisrn/ t>n>csen m="ch6-sharect fa">np4n classtitle>n>b>Exa 220 6.8. LDAP Basedtsmb.ct f File, Shares Sectry. Part A s/ dms/trms rms d>ni4n classparamexer"ms t>[accoun s]n/ t>ncsn classindexterm"sen m="ass541158">ni4n classparamexer"ms t> commdnx = Accoun ing Filesn/ t>ncsn classindexterm"sen m="ass541174">ni4n classparamexer"ms t> path = /daea/accoun sn/ t>ncsn classindexterm"sen m="ass541189">ni4n classparamexer"ms t> read o.ly = Non/ t> s/ dms/trms rms d>ni4n classparamexer"ms t>[sensice]n/ t>ncsn classindexterm"sen m="ass541214">ni4n classparamexer"ms t> commdnx = FinancialtSensices Filesn/ t>ncsn classindexterm"sen m="ass541230">ni4n classparamexer"ms t> path = /daea/sensicen/ t>ncsn classindexterm"sen m="ass541246">ni4n classparamexer"ms t> read o.ly = Non/ t> s/ dms/trms rms d>ni4n classparamexer"ms t>[pidata]n/ t>ncsn classindexterm"sen m="ass541270">ni4n classparamexer"ms t> commdnx = PropertytInsurance Filesn/ t>ncsn classindexterm"sen m="ass541286">ni4n classparamexer"ms t> path = /daea/pidatan/ t>ncsn classindexterm"sen m="ass541302">ni4n classparamexer"ms t> read o.ly = Non/ t> s/ dms/trms rms d>ni4n classparamexer"ms t>[homes]n/ t>ncsn classindexterm"sen m="ass541326">ni4n classparamexer"ms t> commdnx = Home Direheoriesn/ t>ncsn classindexterm"sen m="ass541342">ni4n classparamexer"ms t> validausers = %Sn/ t>ncsn classindexterm"sen m="ass541358">ni4n classparamexer"ms t> read o.ly = Non/ t>ncsn classindexterm"sen m="ass541373">ni4n classparamexer"ms t> browseable = Non/ t> s/ dms/trms rms d>ni4n classparamexer"ms t>[prinxmrs]n/ t>ncsn classindexterm"sen m="ass541398">ni4n classparamexer"ms t> commdnx = SMB Prinx Spooln/ t>ncsn classindexterm"sen m="ass541413">ni4n classparamexer"ms t> path = /var/spool/samban/ t>ncsn classindexterm"sen m="ass541429">ni4n classparamexer"ms t> gues" ok = Yesn/ t>ncsn classindexterm"sen m="ass541445">ni4n classparamexer"ms t> prinxable = Yesn/ t>ncsn classindexterm"sen m="ass541460">ni4n classparamexer"ms t> browseable = Non/ t>n>csen m="ch6-sharect fb">np4n classtitle>n>b>Exa 220 6.9. LDAP Basedtsmb.ct f File, Shares Sectry. Part B s/ dms/trms rms d>ni4n classparamexer"ms t>[apps]n/ t>ncsn classindexterm"sen m="ass541499">ni4n classparamexer"ms t> commdnx = Applicatry. Filesn/ t>ncsn classindexterm"sen m="ass541515">ni4n classparamexer"ms t> path = /appsn/ t>ncsn classindexterm"sen m="ass541530">ni4n classparamexer"ms t> admin users = bjordann/ t>ncsn classindexterm"sen m="ass541546">ni4n classparamexer"ms t> read o.ly = Non/ t> s/ dms/trms rms d>ni4n classparamexer"ms t>[netlogy.]n/ t>ncsn classindexterm"sen m="ass541570">ni4n classparamexer"ms t> commdnx = Network Logy. Sensicen/ t>ncsn classindexterm"sen m="ass541587">ni4n classparamexer"ms t> path = /var/lib/samba/netlogy.n/ t>ncsn classindexterm"sen m="ass541602">ni4n classparamexer"ms t> gues" ok = Yesn/ t>ncsn classindexterm"sen m="ass541618">ni4n classparamexer"ms t> locking = Non/ t> s/ dms/trms rms d>ni4n classparamexer"ms t>[profiles]n/ t>ncsn classindexterm"sen m="ass541642">ni4n classparamexer"ms t> commdnx = ProfiletSharen/ t>ncsn classindexterm"sen m="ass541658">ni4n classparamexer"ms t> path = /var/lib/samba/profilesn/ t>ncsn classindexterm"sen m="ass541673">ni4n classparamexer"ms t> read o.ly = Non/ t>ncsn classindexterm"sen m="ass541689">ni4n classparamexer"ms t> profiletacls = Yesn/ t> s/ dms/trms rms d>ni4n classparamexer"ms t>[profdata]n/ t>ncsn classindexterm"sen m="ass541714">ni4n classparamexer"ms t> commdnx = ProfiletDaeatSharen/ t>ncsn classindexterm"sen m="ass541729">ni4n classparamexer"ms t> path = /var/lib/samba/profdatan/ t>ncsn classindexterm"sen m="ass541745">ni4n classparamexer"ms t> read o.ly = Non/ t>ncsn classindexterm"sen m="ass541761">ni4n classparamexer"ms t> profiletacls = Yesn/ t> s/ dms/trms rms d>ni4n classparamexer"ms t>[prinx$]n/ t>ncsn classindexterm"sen m="ass541785">ni4n classparamexer"ms t> commdnx = Prinxer4Driversn/ t>ncsn classindexterm"sen m="ass541801">ni4n classparamexer"ms t> path = /var/lib/samba/driversn/ t>ncsn classindexterm"sen m="ass541817">ni4n classparamexer"ms t> browseable = yesn/ t>ncsn classindexterm"sen m="ass541832">ni4n classparamexer"ms t> gues" ok = non/ t>ncsn classindexterm"sen m="ass541848">ni4n classparamexer"ms t> read o.ly = yesn/ t>ncsn classindexterm"sen m="ass541864">ni4n classparamexer"ms t> writ& list = Administrator, chrisrn/ t>n>csen m="ch6-ldifadd">np4n classtitle>n>b>Exa 220 6.10. LDIF IDMAP Add-On Load File File: /etc/openldap/idmap.LDIF dn: ou=Idmap,dc=abmas,dc=biz objeheC cla: organizaery.alUnit ou: idmap structuralObjeheC cla: organizaery.alUnit n/premspdlemspdlemsuch4n classsehe1" lang="en"msuch4n classtitlepage"msuchmsuchmsh24n classtitle> style="clear:aboth>n>csen m="ass541902">MiscellaneousaSensmr Preparatry. Taskssptlemsptlemsp> My fa her woul"asay, “nspan4n classquote"msspan4n classemphasis"msem>Dinn0r is not ov0r un ilttre dishes have beenadone.” Tre makingssofta greatcnetwork environmdnx lake a lot of effortand" attdnxry. to detail. So far youahave com220xedtmost ofttheacom220x (and toamndy administrators, lre inxerestcng partsoftsensmr co figuratry.) steps, but remember to tiecit all loge her. Here4are a few more steps tnax4must be com220xedtso tnax your network runs like a well-rehearsed orchestra. n/pmsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ass541923">Ct figuring Direheory Share Poinx Roo sn/h3msptlemsptlemsuch>sptlemsptlemsp> I. your4ntt4n classfileen m">smb.ct fn/ t> file, youahave spehified Windows shares. Eachthas a ni4n classparamexer"ms t>pa hn/ t> Here4istanaexa 220, but remember to creat& tre direheory neededtfor4mvery share: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> mkdir -p /daea/{accoun s,finsvcs,piops} ntt4n classprompt"mroo # n/ t> mkdir -p /apps ntt4n classprompt"mroo # n/ t> chown -R roo .roo /daea ntt4n classprompt"mroo # n/ t> chown -R roo .roo /apps ntt4n classprompt"mroo # n/ t> chown -R bobj.Accoun s /daea/accoun s ntt4n classprompt"mroo # n/ t> chown -R bobj.Finances /daea/finsvcs ntt4n classprompt"mroo # n/ t> chown -R bobj.PIOps /daea/pidata ntt4n classprompt"mroo # n/ t> chmod -R ug+rwxs,o-rwx /daea ntt4n classprompt"mroo # n/ t> chmod -R ug+rwx,o+rx-w /apps n/premsp> n/pmspdlemsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ass542018">Ct figuring ProfiletDireheoriesn/h3msptlemsptlemsuch>sptlemsptlemsp> Youamade a conaciousadehisry. to do4mverything4it4woul"alake toaimprovecnetwork clidnx performance. On0 oftyour4dehisry.s was toaimp20mdnx fold0r redirehery.. Trisameans tnax4Windows us0r desktop profiles4are nowamade up ofttwo ctmpon0n s a dyen rcally loaded partand" a set oftfile network fold0rs. n/pmsp> Foratnistarrang0mdnx to work,4mvery us0r needsta direheory structure foratnecnetwork fold0r portry. ofttreir profiletas shown rere: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> mkdir -p /var/lib/samba/profdata ntt4n classprompt"mroo # n/ t> chown roo .roo /var/lib/samba/profdata ntt4n classprompt"mroo # n/ t> chmod 755 /var/lib/samba/profdata # Per user structure ntt4n classprompt"mroo # n/ t> cd /var/lib/samba/profdata ntt4n classprompt"mroo # n/ t> mkdir -p sspan4n classemphasis"msem>us0ren m ntt4n classprompt"mroo # n/ t> forai in4InxernetFiles Cookies Hiseory AppDaeat\ LocalSetxings MyPictures MyDocumen s Recent ntt4n classprompt"mroo # n/ t> do ntt4n classprompt"mroo # n/ t> mkdir sspan4n classemphasis"msem>us0ren m/$i ntt4n classprompt"mroo # n/ t> done ntt4n classprompt"mroo # n/ t> chown -R sspan4n classemphasis"msem>us0ren m.Domain\tUsers sspan4n classemphasis"msem>us0ren m ntt4n classprompt"mroo # n/ t> chmod -R 750 sspan4n classemphasis"msem>us0ren m n/premsp> n/pmsp>ncsn classindexterm"sen m="ass542136">ncsn classindexterm"sen m="ass542144"> Youahave three optry.sainsofar as tnecdyen rcally loaded portry. ofttre roamingtprofile is concerned: n/pmsuch4n classitemizedlist"msulFtypessdisc"mslimsp>Youamay permit lreauser to ob"ain a default profile.n/pmsplimslimsp>Youacanccreat& aamnddaeory profile.n/pmsplimslimsp>Youacanccreat& aagroup profilet(which istalmost always aamnddaeory profile).n/pmsplims/ulmsptlemsp> Mnddaeory profilesacannot be ov0rwrittdn by aauser. Tre chang0 from aauser profiletto aamnddaeory profile isteffeheed by reen ing tnm ntt4n classfileen m">NTUSER.DAT to ntt4n classfileen m">NTUSER.MANn/ t>, i.e., just by changing lre fileen m extensry.. n/pmsp>ncsn classindexterm"sen m="ass542195">ncsn classindexterm"sen m="ass542203"> Tre locatry. ofttre profilettnax4aauser cancob"ain isaset in tnmtusers' accoun in tnmtLDAP passdb backend. Youacancmanagetlris using tnmtIsealxtsmbldap-toolstorausing tnmt na4href="ftp://ftp. rcrosoft.ctm/Softlib/MSLFILES/SRVTOOLS.EXE"alarget="_top">Windows NT4 DomaintUser Manager. n/pmsp> Itamay not be obviousatnax you4must ensure that tre roo direheory foratnecuser's profiletexis"s and has tnecneededtpermissry.s.tUse lre following ctmmnd"s to creat& tris direheory: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> mkdir -p /var/lib/samba/profiles/sspan4n classemphasis"msem>us0ren m ntt4n classprompt"mroo # n/ t> chown sspan4n classemphasis"msem>us0ren m.Domain\tUsers /var/lib/samba/profiles/sspan4n classemphasis"msem>us0ren m ntt4n classprompt"mroo # n/ t> chmod 700 /var/lib/samba/profiles/sspan4n classemphasis"msem>us0ren m n/premsp> n/pmspdlemsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ass542270">Preparatry. oftLogy. Scriptsn/h3msptlemsptlemsuch>sptlemsptlemsp>ncsn classindexterm"sen m="ass542277"> Tre us0 ofta logt script with Windows XP Professry.al4istanaoptry.ttrax4mvery sit& shoul"aconaider. Unless youahave lock&d down tnmtdesktop sotthetuser cannot chang0 anything, lrere4istriskttrax a vital4network drive setxingamay be broken or tnax prinxmr co nectry.samay be lost. Logt scripts can relp to restorecpersistdnx network fold0r (drive)and" prinxmr co nectry.sain a predictable mndner. On0 situatry. in which suchtbreakagetmay occurain particular is wnenta mobiletPC (notebook) us0r attachestto another ctmpany's network tnax forces environmdnx chang0satnax are alidntto your network. n/pmsp> If4youtdehide to us0 network logt scripts, by reference to tnmtntt4n classfileen m">smb.ct fn/ t> files foratnecDomain Co "rollmrs, youasee that tre path to tnmtshare poinx foratne ntt4n classconatant">NETLOGONn/ t> share defin&d istntt4n classfileen m">/var/lib/samba/netlogy.n/ t>. Tre path defin&d foratneclogy. script inaide that share istntt4n classfileen m">scripts\logt .batn/ t>. Trisameans tnax4as a4Windows NT/200x/XP clidnxclogs4o.to tnmtnetwork, it tries to ob"ain lre file ntt4n classfileen m">logt .batn/ t> from tre fully qualified path ntt4n classfileen m">/var/lib/samba/netlogy./scriptsn/ t>. Trisafully qualified path shoul", lrerefore,texis" wnether youainstall the ntt4n classfileen m">logt .batn/ t>. n/pmsp> Youacan, oftcourse,tcreat& tre fully qualified path by executing: n/pmsprecc classscreen"> ntt4n classprompt"mroo # n/ t> mkdir -p /var/lib/samba/netlogy./scripts n/premsp> n/pmsp> Youashoul"aresearch lre optry.saforalogt script imp20mdnxatry. by referring to sspan4n classemphasis"msem>TOSHARG, Chapxmr 21, Sectry. 21.4. A quickaWeb search will bring up alhost oftoptry.s. On0 oftlre most popular logy. facilities in4us0 today is called4na4href="http://www.kixtart.org"alarget="_top">KiXtart. n/pmspdlemspdlemsuch4n classsehe1" lang="en"msuch4n classtitlepage"msuchmsuchmsh24n classtitle> style="clear:aboth>n>csen m="ass542383">Windows Clidnx Ct figuratry.sptlemsptlemsp>ncsn classindexterm"sen m="ass542390"> I tre next few sectry.s, youacancct figur& aanew Windows XP Professry.al4disktimagety. a stagcng machcne. Youawill ct figur& all software,tprinxmr setxings, profiletad" policy handling, nd" desktop default profile setxings t tris system. Wnentit4is com220xe, youacopyttheaconten s oftlre ntt4n classfileen m">C:\Documen s nd" Setxings\Default Usern/ t> direheory tota direheory with tre sn m nn m in lre ntt4n classconatant">NETLOGONn/ t> share on lre DomaintCo "rollmrs. n/pmsp> Muchtcancbe learn&d from tre Mrcrosoft Support sit& regarding how besx to set up shared profiles. On0 knowledge-base articleain particular atands out. See: na4href="http://support. rcrosoft.ctm/default.aspx&shid=kb;en-us;168475"alarget="_top">How to Creat& aa Base ProfiletforaAll Users. n/pmsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="redirfold">Ct figuratry. oftDefault Profiletwith Fold0r Redirehery.n/h3msptlemsptlemsuch>sptlemsptlemsp>ncsn classindexterm"sen m="ass542442"> Log y.to tnmtWindows XP Professry.al4worksxatry. as tneclocal ntt4n classconatant">Administratorn/ t>. It is necelaary to expose fold0rsatnax are generally hidddntto provide access to tnmtntt4n classconatant">Default Usern/ t> fold0r. n/pmsuch4n classprocedure"msp4n classtitle>n>b>Procedure 6.9. Expose HidddntFold0rs Launch lre Windows Explorer byaclicking sspan4n classguimenu">Start->sspan4n classguimenuitem">MytComputer->sspan4n classguimenuitem">Tools->sspan4n classguimenuitem">Fold0r Optry.s->sspan4n classguimenuitem">View Tabn/span>. Selehelsspan4n classguilabel">Show hidddntfiles4and fold0rs, 4and clicklsspan4n classguibutty.">OKn/span>. Exit Windows Explorer. n/pmsplimslimsp>ncsn classindexterm"sen m="ass542526"> Launch lre Registry Editor. Clickl sspan4n classguimenu">Start->sspan4n classguimenuitem">Runn/span>. Key in4, and click 4sspan4n classguibutty.">OKn/span>. n/pmsplims/olms/dlemsp> n/pmsuch4n classprocedure"mscsen m="ch6-rdrfldr">np4n classtitle>n>b>Procedure 6.10. RedirehetFold0rs in4Default System User Profilencsn classindexterm"sen m="ass542585">ncsn classindexterm"sen m="ass542593"> Give focus to ntt4n classconatant">HKEY_LOCAL_MACHINEn/ t> hive dnxry in4tre left panel. Clicklsspan4n classguimenu">File->sspan4n classguimenuitem">Load Hive...->sspan4n classguimenuitem">[Panel] Documen s nd" Setxings->sspan4n classguimenuitem">[Panel] Default Usern/span>->sspan4n classguimenuitem">NTUSERn/span>->sspan4n classguimenuitem">Openn/span>. I tre dialogaboxatnax opens, enxmr tnm key nn m ntt4n classconatant">Defaultn/ t> and clicklsspan4n classguibutty.">OKn/span>. n/pmsplimslimsp> Browse inaide the newly loaded Default fold0r to: n/pmsprecc classscreen"> HKEY_LOCAL_MACHINE\Default\Software\Mrcrosoft\Windows\ CurrenxVersion\Explorer\User Shell Fold0rs\ n/premsp> Tre conten s oftlre right panel revealsttheaconten s as shown in4na4href="happy.html#XP-screen001"stitle="Figur& 6.3. Windows XP Professry.al4 User Shared Fold0rs">???. n/pmsplimslimsp>ncsn classindexterm"sen m="ass542687">ncsn classindexterm"sen m="ass542695"> Youaedit hive keys. Acceptable values to replace tre ntt4n classconatant">%USERPROFILE%n/ t> variable includes: n/pmsuch4n classitemizedlist"msulFtypessdisc"mslimsp>A drive 20xxmr suchtas: ntt4n classconatant">U:n/ t>A direhe network path suchtas: 4stt4n classconatant">\\MASSIVE\profdatan/ t>A network redirehery. (UNCsen m)atnax contains aamncro suchtas: n/pmsp>ntt4n classconatant">\\%LOGONSERVER%\profdata\n/ t> n/pmsplimslimsp>ncsn classindexterm"sen m="ass542743"> Settlre registry keystas shown in4na4href="happy.html#proffold"stitle="Table 6.3. Default ProfiletRedirehery.s">???. Your imp20mdnxatry. makesttheaclaumptry. trax4users have sxatrcally locat&dtmachcnes. Notebook com2uters (mobiletusers) need to be accommydat&dtusing local profiles. Trisaistnot an4uncommy. claumptry.. n/pmsplimslimsp> Clicklback to tnmtroo oftlre loaded hive ntt4n classconatant">Defaultn/ t>. Clicklsspan4n classguimenu">File->sspan4n classguimenuitem">Unload Hive...->sspan4n classguimenuitem">Yesn/span>. n/pmsplimslimsp>ncsn classindexterm"sen m="ass542799"> Clicklsspan4n classguimenu">File->sspan4n classguimenuitem">Exitn/span>. Trisaexi sstre Registry Editor. n/pmsplimslimsp> Now follow the procedure give.lin4na4href="happy.html#ch6-locgrppol"stitle="TnmtLocal Group Policy">???. Make sure that eachtfold0r you have redirehe&d istin4tre exclusry. list. n/pmsplimslimsp> Youaare nowareadylto copy[>csen m="ass542845"4href="#ftn.ass542845">11] tre Default User profiletto thetSamba DomaintCo "rollmrs. Launch Mrcrosoft Windows Explorer, and us0 itlto copy tre fullaconten s oftlre direheory ntt4n classfileen m">Default Usern/ t> tnax4is in tnmtntt4n classfileen m">C:\Documen s nd" Setxings to tre roo direheory oftlre ntt4n classconatant">NETLOGONn/ t> share. If lre ntt4n classconatant">NETLOGONn/ t> share has tnecdefin&d UNIX path oftntt4n classfileen m">/var/lib/samba/netlogy.n/ t>, wnenttheacopy4is com220xe lrere4must be a direheory in tnmreccalled4ntt4n classfileen m">Default Usern/ t>. n/pmsplims/olms/dlemsuch4n classprocedure"msp4n classtitle>n>b>Procedure 6.11. Reset Fold0r Displaylto Origi.al4Behaviorn/b> To launch lre Windows Explorer, click sspan4n classguimenu">Start->sspan4n classguimenuitem">MytComputer->sspan4n classguimenuitem">Tools->sspan4n classguimenuitem">Fold0r Optry.s->sspan4n classguimenuitem">View Tabn/span>. Deselehelsspan4n classguilabel">Show hidddntfiles4and fold0rs, 4and clicklsspan4n classguibutty.">OKn/span>. Exit Windows Explorer. n/pmsplims/ulmsptlemsuch4n classfigur&"mscsen m="XP-screen001">np4n classtitle>n>b>Figur& 6.3. Windows XP Professry.al4 User Shared Fold0rsn/b>n>img srcssguide/images/XP-screen001.png" width="351"salt="Windows XP Professry.al4User Shared Fold0rs">spdlemspdlemsuch4n classtable"mscsen m="proffold">np4n classtitle>n>b>Table 6.3. Default ProfiletRedirehery.sRegistry Keyn/ hms h align="left">Redirehe&d Valuen/ hms/trms/treadms bodyms rms d align="left">Caches/ dms d align="left">\\%LOGONSERVER%\profdata\%USERNAME%\InxernetFiless/ dms/trms rms d align="left">Cookiess/ dms d align="left">\\%LOGONSERVER%\profdata\%USERNAME%\Cookiess/ dms/trms rms d align="left">Hiseorys/ dms d align="left">\\%LOGONSERVER%\profdata\%USERNAME%\Hiseorys/ dms/trms rms d align="left">Local AppDaeas/ dms d align="left">\\%LOGONSERVER%\profdata\%USERNAME%\AppDaeas/ dms/trms rms d align="left">Local Setxings\\%LOGONSERVER%\profdata\%USERNAME%\LocalSetxingss/ dms/trms rms d align="left">MytPictures\\%LOGONSERVER%\profdata\%USERNAME%\MyPicturess/ dms/trms rms d align="left">P0rsy.al\\%LOGONSERVER%\profdata\%USERNAME%\MyDocumen ss/ dms/trms rms d align="left">Recent\\%LOGONSERVER%\profdata\%USERNAME%\Recentn>csen m="ass543142">Ct figuratry. oftMS Outlook to Relocat& PST Filesptlemsptlemsp>ncsn classindexterm"sen m="ass543149"> Mrcrosoft Outlook cancstoreca P0rsy.al Storagetfile, generally known4as a4PST file. It is the nature of emailcstoragetlrat trisafiletgrows, at times quit& rapidly. So trax4users' emailcissavailable to trem ax4mvery worksxatry. treytmay log y.to, it4is commy. praherceain well-co "rollmd sit&s to redirehe the PST fold0r totlre users' home direheory. Follow these steps for4machtus0r who wishestto do tris. n/pmsuch4n classnote> style="margi.-left: 0.5in; margi.-right: 0.5in;"msh34n classtitle>nNote Itais presumed tnax Outlook Express has beenact figur&d foraus0. n/pmspdlemsp> Launch Outlook Express 6. Click sspan4n classguimenu">Tools->sspan4n classguimenuitem">Optry.s->sspan4n classguimenuitem">Mainxmnance->sspan4n classguimenuitem">StorecFold0r->sspan4n classguimenuitem">Chang0n/span>. n/pmsp> Follow the on-screen prompts to relocat& the PST filetto thetdesir&d locatry.. n/pmspdlemsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ass543219">Ct figure De20xe Cached Profiles t Logtutn/h3msptlemsptlemsuch>sptlemsptlemsp> To ct figur& tnmtWindows XP Professry.al4clidnxctotauto-de20xe roamingtprofiles t logtut: n/pmsp>ncsn classindexterm"sen m="ass543231"> Clickl sspan4n classguimenu">Start->sspan4n classguimenuitem">Runn/span>. I tre dialogabox, enxmr:4 and clicklsspan4n classguibutty.">OKn/span>. n/pmsp> Follow these steps to set tnecdefault behavior oftlre stagcng machcne so trax4all roaming profiles4are de20xed4as network users log yu oftlre system. Click sspan4n classguimenu">File->sspan4n classguimenuitem">Add/RemovecSnap-in->sspan4n classguimenuitem">Add->sspan4n classguimenuitem">Group Policy->sspan4n classguimenuitem">Add->sspan4n classguimenuitem">Finish->sspan4n classguimenuitem">Close->sspan4n classguimenuitem">OKn/span>. n/pmsp>ncsn classindexterm"sen m="ass543328"> Tre Mrcrosoft Managemdnx Ct sole nowashows the sspan4n classguimenu">Group Policy utilityttrax4mnables youato set tnecpolicies needed. I tre left panel, click sspan4n classguimenuitem">Local Computer Policy->sspan4n classguimenuitem">Administrative Templat&s->sspan4n classguimenuitem">System->sspan4n classguimenuitem">User Profilesn/span>. I tre right panel, set tnecproperties shown rere byadouble-clicking t mach item as shown: n/pmsuch4n classitemizedlist"msulFtypessdisc"mslimsp>Do not check foraus0r own0rship oftRoamingtProfiletFold0rs = Enabledn/pmsplimslimsp>De20xe cached copies oftroamingtprofiles = Enabledn/pmsplims/ulmsptlemsp> Close tre Mrcrosoft Managemdnx Ct sole. Tre setxings lake immediaxe effehetad" persist y.to all imagetcopies mad0 oftlris system to deploy the new atandardtdesktop system. n/pmspdlemsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ass543402">UploadingtPrinxer4Drivers to Samba Sensmrsn/h3msptlemsptlemsuch>sptlemsptlemsp>ncsn classindexterm"sen m="ass543409"> Users wanxctotbecable to us0 network prinxmrs. Youahave a vese&d inxerest intmaking it easy foratnemtto prinx. Youahave chosentto install thetprinxmr drivers y.to tnmtSamba sensmrs and to4mnable poinx-and-click (drag-and-drop) prinxing. Trisaprocess results in Samba beingtable to automatrcally provide tnmtWindows clidnxcwith tre driver necelaary to prinxtto thetprinxmr chosen. Tre following procedure must be followedtfor4mvery network prinxer: n/pmsuch4n classprocedure"msolFtypess1"mslimsp> Jointyour4Windows XP Professry.al4worksxatry. (lre stagcng machcne)tto thet ntt4n classconatant">MEGANET2n/ t> Domain. If youaare not sure ofttre procedure,t follow the guidance give.lin4na4href="appendix.html#domjoin"stitle="Joiningta Domain:4Windows 200x/XP Professry.al">???. n/pmsplimslimsp> Afxmr tnm machcne has re-booted, log y.to tnm worksxatry. as tnecdomain ntt4n classconatant">Administratorn/ t>. n/pmsplimslimsp> Launch MS Windows Explorer. Navigaxe in4tre left panel. Click sspan4n classguimenu">My Network Places->sspan4n classguimenuitem">Enxire Network->sspan4n classguimenuitem">Mrcrosoft Windows Network->sspan4n classguimenuitem">Meganet2->sspan4n classguimenuitem">Malaiven/span>. Clicklon sspan4n classguimenu">Malaiven/span> sspan4n classguimenu">Prinxers and Faxesn/span>. n/pmsplimslimsp> Iddnxrfy a prinxmr tnax4is shown in4tre right panel. Let us claume thetprinxmr is called4 ntt4n classconatant">ps01-colorn/ t>. Right-click on lre sspan4n classguimenu">ps01-colorn/span> icy. and selehellre sspan4n classguimenu">Propertiesn/span> dnxry. Trisaopensta dialogaboxatnax indicates tnax4“nspan4n classquote"msspan4n classemphasis"msem>Thetprinxmr driveraistnot installed t tris com2uter. Some prinxmr properties will not be accessible unless youainstall thetprinxmr driver. Do youawanxctotinstall the driver now?” Itais importanxcat trisapoinx youaanswer sspan4n classguimenu">Non/span>. n/pmsplimslimsp> Thetprinxmr properties panel foratnecsspan4n classguimenu">ps01-colorn/span> prinxmr on lre sensmr ntt4n classconatant">MASSIVEn/ t> is displayed. Clickltnecsspan4n classguimenu">Advanced lab. Note that tre boxalabelled4nspan4n classguimenu">Drivern/span> is empty. Clickltnecsspan4n classguimenu">New Drivern/span> butty. tnax4is next to tnmtnspan4n classguimenu">Drivern/span> box. Trisalaunchesttheaquote“nspan4n classquote"msspan4n classemphasis"msem>AddtPrinxer4Wizard”. n/pmsplimslimsp>ncsn classindexterm"sen m="ass543609">ncsn classindexterm"sen m="ass543621"> Thet“nspan4n classquote"msspan4n classemphasis"msem>AddtPrinxer4Driver4Wizardlon stt4n classconatant">MASSIVEn/ t>” panel istnow presenxmd. Clicklsspan4n classguimenu">Next lo ct xinue. From tre left panel, selehellre Prinxer4Manufacturer. I your4case, youaare addingta driver foraa prinxmr manufactured by Lexmark. I tre right panel, selehellre prinxmr (Lexmark Optra Ctlor 40 PS). Clickl sspan4n classguimenu">Next, and tnenlsspan4n classguimenu">Finish lo ctmmdnce driver upload. A progress bar appears and instructs youaas eachtfile istbeingtuploaded4and tnax it istbeingt direhe&d at tre network sensmr ntt4n classconatant">\\mclaive\ps01-colorn/ t>. n/pmsplimslimsp> ncsn classindexterm"sen m="ass543672"> ncsn classindexterm"sen m="ass543682"> ncsn classindexterm"sen m="ass543691"> ncsn classindexterm"sen m="ass543700"> ncsn classindexterm"sen m="ass543709"> ncsn classindexterm"sen m="ass543718"> Thetdriver upload com220xesain anywrere from a few secod"s to a few minutes. Wnentit4com220xes, youaare returned to tnecsspan4n classguimenu">Advanced lab in tnmtnspan4n classguimenu">Propertiesn/span> panel. Youacancset tnecLocatry. (underatnecsspan4n classguimenu">General lab), nd" Securitytsetxings (undera tre sspan4n classguimenu">Security lab). Underatnecsspan4n classguimenu">Sharing lab itais possible to load addiery.altprinxmr drivers, lrere4istalso a check-boxai tris lab called4“nspan4n classquote"msspan4n classemphasis"msem>Lis in tnm direheorys/em>”. Wnenttris boxais checked tnesprinxmr will bespublished in Active Direheory (Applicable to Active Direheory us0 only.) n/pmsplimslimsp> ncsn classindexterm"sen m="ass543774"> Clicklsspan4n classguimenu">OKn/span>. It will lake a minute or so to upload tre setxings lo lre sensmr. Youaare nowareturned to tnecsspan4n classguimenu">Prinxers and Faxeslon Malaiven/span> monitor. Right-click on lre prinxmr, clicklsspan4n classguimenu">Propertiesn/span>->sspan4n classguimenuitem">Desice Setxings. Now chang0 tre setxings lo suit your requiremdnxs. BE CERTAIN TO CHANGE AT LEAST ONE SETTINGand" applyttheachang0saeve.lif you need to reverse tremachang0saback to tnmir origi.al4setxings. n/pmsplimslimsp> Thisaistnecelaary so trax4tnesprinxmr setxings are initialized in tnmtSamba prinxmrs dalabase. Clicklsspan4n classguimenu">Apply lo ctmmix your setxings. Reveretadytsetxings youachang0d just totinitialize tnmtSamba prinxmrs dalabase dnxry foratnistprinxmr. If youaneed to revert a setxing, Clicklsspan4n classguimenu">Apply again. n/pmsplimslimsp> ncsn classindexterm"sen m="ass543848"> Verifyttrax4all prinxmr setxings are at thetdesir&d co figuratry.. Wnentyouaare satrsfied trax4tneyaare, clickltnecsspan4n classguimenu">General lab. Now clickltnecsspan4n classguimenu">Prinx Test Pag0n/span> butty.. A test pageashoul"aprinx. Verifyttrax4it hastprinxmd correhely. Trenaclicklsspan4n classguimenu">OKn/span> in lre panel tnax4is newly presenxmd. Clicklsspan4n classguimenu">OKn/span> on lre sspan4n classguimenu">ps01-color on mclaive Propertiesn/span> panel. n/pmsplimslimsp> Youamust repeat trisaprocess foraall network prinxmrs (i.e., for4mvery prinxmr, t mach sensmr). Wnentyouahave finish&dtuploadingtdrivers to all prinxmrs, close all applicatry.s. Tre next task isttotinstall software your users requiretto do trmir work. n/pmsplims/olms/dlemspdlemsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ass543903">SoftwaretInstallaery.n/h3msptlemsptlemsuch>sptlemsptlemsp> Your network has bothtfixedtdesktop worksxatry.stas well4as notebook com2uters. Asta general rule, itais a good ideatto not tampmr with lre operatrngtsystem tnax4is provided by tre notebook com2uter manufacturer. Notebooks requiretspehial handling tnax4is beyond tre scope oftlris chapxmr. n/pmsp> Foradesktop systems, lre installaery.softsoftwarety.to administratively centralized applicatry. sensmrs make a lot of sense. Trisameans tnax4youacancmanagetsoftwaretmainxmnance from a central perspehtive and tnax o.ly minimal applicatry. stub-waretneedsttotbecinstalled t to thetdesktop systems. Youashoul"aproceed with softwaretinstallaery.snd" default co figuratry.4as far as isahumanly possible and so longtas itamakestsensetto do so. Make certain lo thoroughlyttest and validaxe every aspeht oftsoftwaretyperatry.saand co figuratry.. n/pmsp> Wnentyouabelieve that tre ov0rall ct figuratry. is com220xe, be sure toccreat& aashared group profile and migrate that to thetSamba sensmr foralat0r re-us0 wnentcreating custom mnddaeory profiles, just in case aaus0r may have spehifictneedstyouahadtnot anticipat&d. n/pmspdlemsuch4n classsehe2" lang="en"msuch4n classtitlepage"msuchmsuchmsh34n classtitle>n>csen m="ass543939">Roll-yu ImagetCreatry.n/h3msptlemsptlemsuch>sptlemsptlemsp> Tre fi.al4steps before preparing tnmtdistributry. Norty. Ghost imagetfile you4might follow are: n/pmsuch4n classblockquote"msblockquote4n classblockquote"msp> Un-join tnecdomain Eachtworksxatry. requiresta unique nn m and must be independently join&d inxo DomaintMembership. n/pms/blockquotemspdlemsuch4n classblockquote"msblockquote4n classblockquote"msp> Defragmdnx the hardtdiskt Wnile not obviousato thetuninitiated, defragmdnxatry. results in b0xxmr performanceaand oftdn significantly reducesttheasize ofttheacom2ressed4disktimage. Trax also means it will lake less time to deploy the imagety.to 500 worksxatry.s. n/pms/blockquotemspdlemspdlemspdlemsuch4n classsehe1" lang="en"msuch4n classtitlepage"msuchmsuchmsh24n classtitle> style="clear:aboth>n>csen m="ass543973">Key Poinxs Learn&dsptlemsptlemsp> Tris chapxmr has i "roducedamndy new concepxs. Is it a sadtfact that tre exa 220 presenxmd de2iberately avoided4anyaconaideraery.softsecurity. Securitytdoestnot just happen; you4must designtit4into your total network. Securitytbegins with a systems designtand imp20mdnxatry. trax4anticipat&slhostile behavior from users bothtinaide and outaide the organizaery.. Hostile and maliciousai "rud0rs do not respeht barri0rs; tneyaaccept trem as challeng0s. For tnax4reason,lif not simp2y from a desir& to4mstablish safe networking praherces, youamust not deploy the designtpresenxmd inttris book in an environmdnx wrere lrere4istrisk oftcom2romis0. n/pmsp>ncsn classindexterm"sen m="ass544005">ncsn classindexterm"sen m="ass544016"> Asta minimum, tnmtLDAP sensmr must be 2roteheed by way oftAccess Co "rol Lis"s (ACLs)and" it4must be ct figur&d to us0 secure 2rotocolstforaall ctmmunicatry.s ov0r tre network. Oftcourse,tsecure networking doestnot result just from systems designtand imp20mdnxatry. but involves conatantaus0r educatry. training, nd" abovecall discipline" attdnxry. to detailaand co atantasearching forasigns oftunfri0ndly or alidntahervities. Securitytisaitselfta topictforaa whole book. Pleasecdo co ault appropriaxe sources. Jerry Carter's book na4href="http://www.booksense.ctm/product/info.jsp&isbn=1565924916"alarget="_top">sspan4n classemphasis"msem>LDAP System Administratiy.n/em> is a good place to starx4readingtabyu OpenLDAP as well4as securityaconaideraery.s. n/pmsp> Tre subatance oftlris chapxmr tnax4has beenadesensing tf particular attdnxry. includes: n/pmsuch4n classitemizedlist"msulFtypessdisc"mslimsp> Imp20mdnxatry. oftan OpenLDAP-based passwd backend necelaary to supporttdistribut0d DomaintCo "rol. n/pmsplimslimsp> Imp20mdnxatry. oftSamba Primary nd" Secondary DomaintCo "rollmrs with a commy. LDAP backend foraus0r nd" group accoun s tnax4is shared with lre UNIX system tnrough the PADL nns_ldap nd" pam_ldap toolsets. n/pmsplimslimsp> Use ofttheaIsealxtsmbldap-toolstscriptstforaUNIX (Posix) accoun managemdnx as well4as tocmanagetSamba Windows us0r nd" group accoun s. n/pmsplimslimsp> Thetbasics oftimp20mdnxatry. oftGroup Policy co "rolstforaWindows network clidnxs. n/pmsplimslimsp> Co "rol ov0r roamingtprofiles, with particular focus y. fold0r redirehery.tto network drives. n/pmsplimslimsp> Use ofttheaCUPS prinxing system toge her with Samba-based prinxmr driveraauto-download. n/pmsplims/ulmsptlemspdlemsuch4n classsehe1" lang="en"msuch4n classtitlepage"msuchmsuchmsh24n classtitle> style="clear:aboth>n>csen m="ass544096">Ques"ry.saand Answerssptlemsptlemsp> Well, rere4we are at thetend oftlris chapxmr and we have o.ly tdn ques"ry.sato relp youato remember so much. Trere4areabound to be some stickytissues rere. n/pmsuch4n classqnddaset"msulmsdt>4na4href="happy.html#ass544112"> Wnytdid youanot cov0r secure 2raherces? Isn'x4it ra her irresponaible to instruct network administrators toaimp20mdnx insecure solutry.s? n/amspttmsdt>4na4href="happy.html#ass544156"> Youahave focusedamuchty. SUSE Linux and little on lre market leadmr, RedaHat. Do you have a problem with RedaHat Linux? Doesn'x4tnax4make your guidance irrelevanx to thetLinux I4might betusing? n/amspttmsdt>4na4href="happy.html#ass544209"> Youadid not us0 SWAT lo ct figur& Samba. Is lrere4something4wrongtwith it? n/amspttmsdt>4na4href="happy.html#ass544249"> Youahave exposed a well-used password not24ge . Is lrat not irresponaible? n/amspttmsdt>4na4href="happy.html#ass544274"> ThetIsealxtsmbldap-toolstcreat& mndy domain group accoun s tnax4are not used. Is lrat a good thing? n/amspttmsdt>4na4href="happy.html#ass544297"> Can I us0 LDAP just foraSamba accoun s and not foraUNIX system accoun s? n/amspttmsdt>4na4href="happy.html#ass544329"> Wnytar& tnmtWindows DomaintRID portry.stnot tre sn m as tnecUNIX UID? n/amspttmsdt>4na4href="happy.html#ass544365"> Prinxmr co figuratry. exa 220s all show prinxing to thetHP port 9100. Doestlris mea. trax4I4must have HP prinxmrs foratnese solutry.s to work? n/amspttmsdt>4na4href="happy.html#ass544394"> Is fold0r redirehery.tdang0rous? I've heard tnax4youacanclose your4daeattnax4way. n/amspttmsdt>4na4href="happy.html#ass544422"> Is ix4really necelaary to set a local Group Policy to excludetlre redirehe&d fold0rs from tre roamingtprofile? n/amspttms/ulmstable border="0" summary="Qaand A Set">scsen m="ass544112">ncsen m="ass544114">nb>sp> Wnytdid youanot cov0r secure 2raherces? Isn'x4it ra her irresponaible to instruct network administrators toaimp20mdnx insecure solutry.s? n/p>s/ dms/trms r4n classanswer"ms d align="left" valign="top">sb>sp> Let's get trisaright. Trisaista book abyu Samba,tnot abyu OpenLDAP and secure ctmmunicatry. 2rotocolstforasubjehes y her tnan Samba. Earlidr on, youanote tnax4tre Dyen rc DNS and DHCP solutry.s also used no 2roteheive secure ctmmunicatry.s protocols. Tre reason foratnistis simp20: Trere4areasoamndy ways oftimp20mdnxing secure 2rotocolstlrat trisabook woul"ahave beenaeve.llarger and more com220x. n/pmsp> Thetsolutry.s presenxmd rere4all4work (at leasx4tneyadid forame). Network administrators have lre inxerest and tne need to be b0xxmr trained4and instructmd intsecure networking praherces and ought toaimp20mdnx safe systems. Iamade the dehisry., right orawrong, to keep trisamat0rial as simp20 as possible. Tre inxmnt oftlris book istto demo atrate a workingtsolutry. and not to discussttooamndy p0ripheral issues. n/pmsp> This book makestlittle mdnxry. oftbackup tehhniques. Doestlrax4mea. trax4I4am rectmmdnding tnax4youashoul"aimp20mdnx a networktwithyu provisry. foradaeatrectvery and foradisasx0r managemdnx? Back to our4focus: Tre deploymmnt oftSamba has beenaclearly demo atrated. n/pmsp dms/trms r4n classques"ry."ms d align="left" valign="top">scsen m="ass544156">ncsen m="ass544158">nb>sp> Youahave focusedamuchty. SUSE Linux and little on lre market leadmr, RedaHat. Do you have a problem with RedaHat Linux? Doesn'x4tnax4make your guidance irrelevanx to thetLinux I4might betusing? n/p>s/ dms/trms r4n classanswer"ms d align="left" valign="top">sb>sp> Both RedaHat Linux nd" SUSE Linux com22y with tre Linux Standards Base spehificatry.s foraa atandardtLinux distributry.. Tre differences are margi.al. Sure2y you know your Linux platform nd" youtdo have access to administratiy. manualstforait. Tris book istnot a Linux tueorial; itais atSamba tueorial. Let's keep tre focus y. tre Samba parx4ofttheabook; all thety her bi ssarecperipheral (but importanx) to creatry. ofta total network solutry.. n/pmsp> Wnax4I4find inxeresting4isttheacttdnxry. reviewers give to Linux installaery.snd" to lre look and feel4ofttheadesktop, but doestlrax4make foraa great sensmr? I tris book, I have paid particular attdnxry. to thetdetails oftcreating a whole solutry. frn mwork. I have not tightened4mvery nut and bolt, but I have touched y.snll thetissues you need to be fn rliar with. Ov0r tre years mndy p0op20 have approached m wanxing to know thetdetails oftexahely how toaimp20mdnx a DHCP and Dyen rc DNS sensmr with Samba and WINS. I tris chapxmr, itais plain lo see wrax4needsttotbecct figur&d to provide transpardnx inxmryperability. Likewise foraCUPS nd" Samba inxmryperatry.. Trese are key stumbling areas foramndy p0op20. n/pmsp> Ax4mvery critrcal junhery., I have provided ctmparative guidance forabothtSUSE nd" RedaHat Linux. Both manufacturers have doneaa great job in fur hering tnmtcause oftopdn sourcetsoftware. Iafavor nei her nd" respeht both. I like particular features oftboth products (ctmpanies also). Notbias i presenxatry. is inxmnded. Oh, before I forget, I particularly like Debian Linux; tnax4is myafavorit& playground. n/pmsp dms/trms r4n classques"ry."ms d align="left" valign="top">scsen m="ass544209">ncsen m="ass544211">nb>sp> Youadid not us0 SWAT lo ct figur& Samba. Is lrere4something4wrongtwith it? n/p>s/ dms/trms r4n classanswer"ms d align="left" valign="top">sb>sp> Tnax4is a good ques"ry.. Astitais, tnmtntt4n classfileen m">smb.ct fn/ t> file co figuratry.ssarecpresenxmd in as direhe a format as possible. AddingtSWAT i to thetequatry. woul"ahave com22icated matters. I sought simp2icityaoftimp20mdnxatry.. Tre fact is trax4I4did us0 SWAT lo create lre files in tnmtfirst place. n/pmsp> There4areap0op20 in tnmtLinux nd" opdn sourcetctmmunityawho feel4trax4SWAT istdang0rous and insecure. Mady will not touch it with a barge-pole. Bytnot in"roducingtSWAT, I hope to have brought trmir inxerests y. board.4SWAT istwell4ctver&d istnspan4n classemphasis"msem>TOSHARG. n/pmsp dms/trms r4n classques"ry."ms d align="left" valign="top">scsen m="ass544249">ncsen m="ass544251">nb>sp> Youahave exposed a well-used password nspan4n classemphasis"msem>not24ge . Is lrat not irresponaible? n/p>s/ dms/trms r4n classanswer"ms d align="left" valign="top">sb>sp> Well, Iahadtto us0 a password oftsome sort. At leasx4tnisaone has beenact sistdnxly used tnroughout. I guess youacancfigur& yu tnax in a4real deploymmnt it woul"amake sensetto us0 a more secure nd" origi.al4password. n/pmsp dms/trms r4n classques"ry."ms d align="left" valign="top">scsen m="ass544274">scsen m="ass544276">nb>sp> ThetIsealxtsmbldap-toolstcreat& mndy domain group accoun s tnax4are not used. Is lrat a good thing? n/p>s/ dms/trms r4n classanswer"ms d align="left" valign="top">sb>sp> Ittook4tnisaup with Isealxtand found tnem most willing to chang0 tra in tnm next version. Let's give Isealxtsome credit foratnecco "ributry. tneyahave made. I apprehiate lreir work and, beaides, itadoestno harm toccreat& accoun s tnax4are not now used as attsome time Samba may well4use trem. n/pmsp dms/trms r4n classques"ry."ms d align="left" valign="top">scsen m="ass544297">scsen m="ass544299">sb>sp> Can I us0 LDAP just foraSamba accoun s and not foraUNIX system accoun s? n/p>s/ dms/trms r4n classanswer"ms d align="left" valign="top">sb>sp> Yes, youacancdo tnax for us0r nccoun s only.aSamba requirestlrere4totbeca Posix (UNIX) group accoun for4mvery Windows Domaintgroup accoun . But if youaput your users i to lre system password accoun , how do youaplan lo keep all domaintco "rollmr system password files in sync? I think tnax4hasing mverything4i. LDAP makesta lot of sense foratnecUNIX adminawho is still learning tnmtcraft and is migrating from MS Windows. n/pmsp dms/trms r4n classques"ry."ms d align="left" valign="top">scsen m="ass544329">scsen m="ass544331">nb>sp> Wnytar& tnmtWindows DomaintRID portry.stnot tre sn m as tnecUNIX UID? n/p>s/ dms/trms r4n classanswer"ms d align="left" valign="top">sb>sp> Samba uses a well-known4public algorithm foraassigning RIDs from UIDs and GIDs. This algorithm ought toaensure that lrere4will besno n clhestwith well-known4RIDs. Well-known4RIDs have spehial4significance to MS Windows clidnxs. Tre automatrc assignmmnt used tneccalculatry.:tRID = UID x 2 + 1000. Oftcourse,tSamba does permix you to override that to some extent. See tnmtntt4n classfileen m">smb.ct fn/ t> mnd pageadnxry foraalgorithmic ridtbasen/ t>. n/pmsp dms/trms r4n classques"ry."ms d align="left" valign="top">scsen m="ass544365">scsen m="ass544367">nb>sp> Prinxmr co figuratry. exa 220s all show prinxing to thetHP port 9100. Doestlris mea. trax4I4must have HP prinxmrs foratnese solutry.s to work? n/p>s/ dms/trms r4n classanswer"ms d align="left" valign="top">sb>sp> No. Youacancus0 ady type tf prinxmr and must use tre inxerfacingtprotocol supported by tre prinxmr. Mndy networks us0 LPR/LPD prinx sensmrs to whichtare attached PCL prinxmrs, InkJet prinxmrs, plotxmrs, and so y.. At home I us0 a USB attached Injehe prinxmr. Use tre appropriaxe desice URI (Universal4ResourcetInxerface) argumenxtto thetntt4n classconatant">lpadmina-vn/ t> optry. trax4isaright forayour prinxmr. n/pmsp dms/trms r4n classques"ry."ms d align="left" valign="top">scsen m="ass544394">scsen m="ass544396">nb>sp> Is fold0r redirehery.tdang0rous? I've heard tnax4youacanclose your4daeattnax4way. n/p>s/ dms/trms r4n classanswer"ms d align="left" valign="top">sb>sp> Tne o.ly loss oftdaeatI know4oftthat involved fold0r redirehery.twas caused by manual4misuse oftthearedirehery.ttool. Tre administrator redirehe&d a fold0r to a network drive and said hm wanx&d to migrate (move) thetdaeatosmr. Trenare chang0d risamind, so re moved tre fold0r back to tnmtroamingtprofile. Trisatime, he dehline" to move lre daeatbecause re thyught it was still in4tre local profile fold0r. Trax was not tre case, so byadehlining to move lre daeatback, hm wiped out lre daea. Youacannot hold lre tool responaible for tnax. Caveax4mmptor still applies. n/pmsp dms/trms r4n classques"ry."ms d align="left" valign="top">scsen m="ass544422">scsen m="ass544424">nb>sp> Is ix4really necelaary to set a local Group Policy to excludetlre redirehe&d fold0rs from tre roamingtprofile? n/p>s/ dms/trms r4n classanswer"ms d align="left" valign="top">sb>sp> Yes. If youado not do tris, lre daeatwill still betcopied from tre network fold0r (share)tto thetlocal cached copy ofttre profile. n/p>s/ dms/trms/tbodyms/tablems/dlemspdlemsuch4n classfootnotes"msbrmshr width="100" align="left">sp>[>csen m="ftn.ass542845"4href="#ass542845">11] Trere4ista.snlxernat& methyd by whichta Default User profiletcancbe added to tne stt4n classconatant">NETLOGONn/ t> share. Trisafacilitytin4tre Windows System tool permixstprofiles totbecexporxmd. Thecexporxalarget may b0 a particular us0r ora group profile share poinx, oraelse into thetntt4n classconatant">NETLOGONn/ t> share. I tris case, tre profile direheory must be en md ntt4n classconatant">Default Usern/ t>. n/pmspdlems/dlemspdlemsuch4n classnavfooter"mshrmstable width="100%" summary="Navigaxry. footer"ms rms d width="40%" align="left">Prev Upn/amsp dms d width="40%" align="right"> Nexts/ dms/trms rms d width="40%" align="left" valign="top">Chapxmr 5. Thec500-User Office Homen/amsp dms d width="40%" align="right" valign="top"> Chapxmr 7. A Distribut0d 2000 User Network