<?xml version="1.0" ?>

<kc>

<title>Samba Traffic</title>

<editor contact="mailto:zbrown@tumblerings.org">Zack Brown</editor>

<issue num="35" date="10 Dec 2000 00:00:00 -0800" />

<headquote><a href="http://samba.org">Samba Homepage</a> | <a
href="http://marc.theaimsgroup.com/#samba">Samba List Archives</a>
| <a href="http://samba.he.net/using_samba/">"Using Samba"</a> | <a
href="http://www.redhat.com/support/docs/tips/Samba-Tips/Samba-Tips.html">Samba
Tips</a> | <a href="http://home.germany.net/101-69082/samba.html">A
Samba Doc Page</a> | <a
href="http://www.uwsg.iu.edu/software/source-docs/faq/Samba-meta-FAQ.html">Samba
Meta-FAQ</a> | <a href="http://www.sgi.com/software/samba/faq.html">Samba
For IRIX FAQ</a></headquote>

<intro>

<p>

Want to help write KC Samba? See the <a href="../author.html">KC Authorship
page</a>, the <a href="index.html">KC Samba homepage</a>, and the <a
href="../summaryfaq.html">Thread Summary FAQ</a>. Send any questions to the
<a href="mailto:kcdevel@zork.net">KCDevel mailing list.</a>

</p>

</intro>

<stats posts="125" size="510" contrib="61" multiples="19" lastweek="0">

<person posts="20" size="81" who="Gerald Carter &lt;gcarter@valinux.com&gt;" />
<person posts="8" size="31" who="&quot;Mayers, Philip J&quot; &lt;p.mayers@ic.ac.uk&gt;" />
<person posts="5" size="21" who="David Collier-Brown &lt;David.Collier-Brown@canada.sun.com&gt;" />
<person posts="5" size="16" who="David Bannon &lt;D.Bannon@latrobe.edu.au&gt;" />
<person posts="4" size="16" who="Jeremy Allison &lt;jeremy@valinux.com&gt;" />
<person posts="4" size="16" who="Nadeem Hasan &lt;nhasan@nadmm.com&gt;" />
<person posts="4" size="15" who="Jelmer Vernooij &lt;jelmer@nl.linux.org&gt;" />
<person posts="4" size="14" who="&quot;Anders C. Thorsen&quot; &lt;anders@aae.wisc.edu&gt;" />
<person posts="3" size="21" who="&quot;Edoardo Costa&quot; &lt;ecosta@wamnet.com&gt;" />
<person posts="3" size="18" who="Pat &lt;slu@firerun.net&gt;" />
<person posts="3" size="14" who="Simo Sorce &lt;simo.sorce@polimi.it&gt;" />
<person posts="3" size="12" who="Adam Williams &lt;awilliam@whitemice.org&gt;" />
<person posts="3" size="12" who="Marc Harding &lt;mharding@ecwebworks.com&gt;" />
<person posts="3" size="11" who="Steve Langasek &lt;vorlon@netexpress.net&gt;" />
<person posts="3" size="9" who="Gerry Kirk &lt;gerry@mccb.org&gt;" />
<person posts="2" size="9" who="Andrew Bartlett &lt;abartlet@pcug.org.au&gt;" />
<person posts="2" size="8" who="Kevin Colby &lt;kevinc@grainsystems.com&gt;" />
<person posts="2" size="8" who="&quot;Torsten Curdt&quot; &lt;tcurdt@dff.st&gt;" />
<person posts="2" size="7" who="Saed Al-Shaer &lt;SaedS@zeine.com&gt;" />
<person posts="1" size="8" who="&quot;Ron Alexander&quot; &lt;rcalex@home.com&gt;" />
<person posts="1" size="7" who="&quot;Eoin Verling&quot; &lt;everling@comnitel.com&gt;" />
<person posts="1" size="7" who="&quot;Eric Boehm&quot; &lt;boehm@nortelnetworks.com&gt;" />
<person posts="1" size="5" who="Patrick &lt;slu@firerun.net&gt;" />
<person posts="1" size="5" who="&quot;Ehrke, Christian&quot; &lt;C.Ehrke@allweiler.de&gt;" />
<person posts="1" size="4" who="Stephan Duehr &lt;duehr@id-pro.net&gt;" />
<person posts="1" size="4" who="&quot;Savacool, William B&quot; &lt;SavacoWB@Cobleskill.edu&gt;" />
<person posts="1" size="4" who="Bielenberg@t-online.de (=?iso-8859-1?Q?G=FCnter?= Bielenberg)" />
<person posts="1" size="4" who="&quot;Rahman, Khalil-ur (ANTS)&quot; &lt;khalil-ur.rahman@ants.co.uk&gt;" />
<person posts="1" size="4" who="&quot;ZINKEVICIUS,MATT (HP-Loveland,ex1)&quot; &lt;matt_zinkevicius@hp.com&gt;" />
<person posts="1" size="4" who="David Collier-Brown &lt;David.Collier-Brown@Canada.Sun.COM&gt;" />
<person posts="1" size="4" who="jbrown@hlmc.com" />
<person posts="1" size="4" who="&quot;DSI-Project&quot; &lt;Stefan.Textor@DSI-Project.de&gt;" />
<person posts="1" size="4" who="&quot;Robert Dahlem&quot; &lt;Robert.Dahlem@gmx.net&gt;" />
<person posts="1" size="3" who="Urban Widmark &lt;urban@teststation.com&gt;" />
<person posts="1" size="3" who="&quot;Ying Chen&quot; &lt;ying@almaden.ibm.com&gt;" />
<person posts="1" size="3" who="dqpr10@canal-plus.fr" />
<person posts="1" size="3" who="&quot;CORNELOUP,THIERRY (HP-France,ex2)&quot; &lt;thierry_corneloup@hp.com&gt;" />
<person posts="1" size="3" who="&quot;Michael Lueck&quot; &lt;mlueck@lueckdatasystems.com&gt;" />
<person posts="1" size="3" who="&quot;yaya&quot; &lt;dyaya_2000@yahoo.com&gt;" />
<person posts="1" size="3" who="&quot;Andrej Borsenkow&quot; &lt;Andrej.Borsenkow@mow.siemens.ru&gt;" />
<person posts="1" size="3" who="Todd Sabin &lt;tas@webspan.net&gt;" />
<person posts="1" size="3" who="Michael Glauche &lt;mg@plum.de&gt;" />
<person posts="1" size="3" who="&quot;Wilson, Robert&quot; &lt;rwilson@isd.co.san-bernardino.ca.us&gt;" />
<person posts="1" size="3" who="Richard Sharpe &lt;sharpe@ns.aus.com&gt;" />
<person posts="1" size="3" who="&quot;lab&quot; &lt;lab@ideeclic.com&gt;" />
<person posts="1" size="3" who="Greg Dickie &lt;greg@discreet.com&gt;" />
<person posts="1" size="3" who="Buchan Milne &lt;bgmilne@cae.co.za&gt;" />
<person posts="1" size="3" who="&quot;J.B. LaRue&quot; &lt;jb.larue@peregrine.mila.com&gt;" />
<person posts="1" size="3" who="&quot;Vern H. Gill&quot; &lt;vgill@technologist.com&gt;" />
<person posts="1" size="3" who="Phil &lt;pmstub@essex.ac.uk&gt;" />
<person posts="1" size="3" who="Alexander Istomin &lt;alec@mipt.sw.ru&gt;" />
<person posts="1" size="2" who="&quot;Adam Read&quot; &lt;read_a@univerahealthcare.org&gt;" />
<person posts="1" size="2" who="Milo Mittag &lt;milo@vision.eye.medizin.uni-tuebingen.de&gt;" />
<person posts="1" size="2" who="Matthew Parslow &lt;MatthewP@spotlight.com.au&gt;" />
<person posts="1" size="2" who="Benoit Geslot &lt;benoit.geslot@bde.espci.fr&gt;" />
<person posts="1" size="2" who="&quot;Pablo&quot; &lt;chucky@sortes.com&gt;" />
<person posts="1" size="2" who="=?ISO-8859-2?Q?=22M=B1czka=2C_Miros=B3aw=22?= &lt;Miroslaw.Maczka@bze.com.pl&gt;" />
<person posts="1" size="2" who="Long Le &lt;longle@verisity.com&gt;" />
<person posts="1" size="2" who="James A Sutherland &lt;jas88@cam.ac.uk&gt;" />
<person posts="1" size="2" who="&quot;Chris James&quot; &lt;cjames@sctcorp.com&gt;" />

</stats>

<section
  title="Trouble with Roaming profiles"
  author="John Quirk"
  contact="mailto:jq_quirk@hotmail.com"
  subject="Roaming profiles, permissions"
  archive="http://lists.samba.org/pipermail/samba-ntdom/2000-November/030101.html"
  posts="9"
  startdate="22 Nov 2000 13:08:38 -0800"
  enddate="06 Dec 2000 14:02:39 -0800"
> 
<mention></mention>
<mention>John Quirk</mention>

<p>
<editorialize who="John Quirk">There have been lots of discussion on the samba-ntdom
lists about roaming profiles so we will start with this one.</editorialize>
</p>

<p>
Jason Todd started with:</p>

<quote who="Jason Todd">

<p>
Hi, here are 3 questions I've been fighting with...
</p>

<p>Background:  I'm running Samba 2.0.7 on RedHat 7.0 (kernel 2.2.16-22smp).
This machine is set up as a "PDC" managing domain logons.  All client
machines are NT 4, varying service packs but I think all are at least SP4,
and the problems below even occur on SP6.</p>

<p>1)  Problem:  Certain users get the message "could not find your profile,
contact your network administrator" or something like that, and they are
kicked right out after trying to log in.  I check the Samba logs, and they
are showing connections to the appropriate shares (including the home
share).  I peeked around in the registry, comparing the users' "profile
location" key with that of users experiencing no problems, and couldn't
find any discrepancies.  However, in C:\WINNT\Profiles, for one problem
user in particular (and a few others), there are several "username.###"
and "username.###.bak" entries, with ### ranging from 000 upward.  Maybe
that is a clue to the solution or cause. </p>

<p>2)  Problem:  I suspect this might be related to #1 above.  My own
personal account on the domain will not let me change any HKLU registry
settings.  I think other users are experiencing this one, too.  In the
domain "logon.bat" file, I have </p>


<p><em>"NET USE x: \\MACHINENAME\SHARE /PERSISTENT:NO"</em></p>

<p>to map a few network drives.  The /PERSISTENT:NO causes the command to
return an error about not being able to save a profile registry setting
(about saving drive connections).  Other peculiarities:</p>

<p>        2a) Logging in, I always get the stupid "Welcome to NT" window.</p>

<p>        2b) I set a new wallpaper and click OK, it doesn't take.</p>

<p>        2c) I set a new desktop color and click OK, it DOES take.</p>

<p>In addition, each client machine keeps listing an "DOMAIN\Account unknown"
in its user manager, permissions boxes, etc.  I think it believes that
"Account Unknown" owns the registry, or at least the HKLU branch.
</p>

<p>3)  How-to:  This one is much simpler, how do I map NT groups to UNIX
groups?  I've heard rumors of a "domain group map" or similar parameter,
but seen no documentation on it or the format of the map file.  I simply
want to create a UNIX group, such as "power" and then specify that each
user in that UNIX group will be a Power User on the NT domain.  If this
can be done, I'd like to know how, or if it can't yet, that's fine (I
suppose  :).</p>


</quote>

<p>David Bannon said in reply to Jasons's problems</p>

<quote who="David Bannon">

<p>
A trivial suggestion but : if the local pc is short on diskspace you get
this effect. Just a suggestion...</p>

<p>
I've seen this in relation to diskspace shortages, starts when the
domain profile area is short of space and user profiles cannot be copied to
the server. Each logon makes a new entry and then the client soon fills up.
Especially if you have lots of users per machine.</p>

</quote>
<p> This seemed to fix Jason problems and he expanded with:</p>
<quote who="Jason Todd">

<p>Thanks to those who supplied feedback to my previous questions.  All is
well now (mostly).  It turns out that it was a disk usage problem after
all.  I didn't think to check the quotas of the problem users.  I set each
quota to 200 MB for the /home partition but [explicative] IE 5 ate up all
of the space with its cache.  I'm a Netscape guy myself...</p>

<p>Anyways, I'm playing around with the registry permissions stuff and I
think I found a cheap solution.  I noticed that for some reason, most
users have "NTUSER.DAT" and "ntuser.dat.LOG" in their ~/profile directory,
and other users (myself included) have "ntuser.dat" and "ntuser.dat.LOG"
instead (notice the case).  I removed the lowercase "ntuser.dat" off my
~/profile directory as well as my "locally" stored profile on one of the
client machines then logged into NT.  Previously there was just "username"
in the WINNT\Profiles directory but now there is "username.000" which
seems to be storing ALL of my correct profile information, Desktop,
registry, etc.  I'm not too concerned by the extra profile directories
hanging around.  BTW, there are no local accounts on the machine in
question, except for the usual (Administrator, Guest, etc.).</p>

<p>Maybe this info can help others with similar problems, or maybe some of
you know of better approaches.</p>

</quote>
<p>Michael Glauche added:</p>
<quote who="Michael Glauche">

<p>turn on "delete cache on exit" in the ie preferences. helps a lot. ;)</p>

</quote>

<p>Gerald Carter also suggested:</p>

<quote who="Gerald Carter">

<p>
Set the system policy to ignore the Temporary
Internet Files Folder in the profile.
</p>
</quote>


<p>There where serveral sugestions to use a cron job to remove the
 IE chache files</p>

<p>David Bannon offer the following:</p>

<quote who="David Bannon">

<p>I run a script that sleeps for a minute then removes the whole profile if
the user was a student.</p>
<p>Like this :</p>

      <p><em>root postexec = /usr/local/sbin/setprofile %u -R</em></p>

<p>This way they get the default profile next time they logon and nothing is
left on server. Further, local profiles are turned off.</p>

</quote>

<p>
<editorialize who="John Quirk">Jason's question about mapping NT groups to Unix groups
never got answered in this thread.</editorialize></p>
</section>

<section
  title="Possible GPL Violation By LocSoft"
  author="Zack Brown"
  contact="mailto:zbrown@tumblerings.org"
  subject="iRMX"
  archive="http://marc.theaimsgroup.com/?l=samba-technical&amp;m=97561733501891&amp;w=2"
  posts="4"
  startdate="28 Nov 2000 15:53:27 -0800"
  enddate="01 Dec 2000 13:11:52 -0800"
>

<mention></mention>

<p>In samba-technical, Robert Dahlem asked about the iRMX Samba port, at <a
href="http://www.locsoft.com/engineering/software/sproducts.html">LocSoft
Ltd</a>, which Gary James had also previously asked about. Robert added,
<quote who="Robert Dahlem">I just ask because our sales peoble would
very much like to charge our customers with 15,000 british pounds for
GPLed source code. :-)</quote> Kevin Colby felt that the code was
indeed in violation of the GPL, if the product really was based on
Samba and not just calling itself "Samba". He gave a pointer to the <a
href="http://www.locsoft.com/engineering/software/sproduct-d.html">licencing
page</a>, which offered source licence "for internal security" only,
and he concluded, <quote who="Kevin Colby">I would hope this isn't really
Samba.</quote> Gerald Carter replied, <quote who="Gerald Carter">Andrew and
Jeremy are following up on this off line with their technical contacts.</quote>
And Steve Langasek put in, after some technical investigation, <quote
who="Steve Langasek">There's a free demo download available on their website.
If this is based on Samba, it currently bears little resemblance to our
code. :) It looks as though their config file is intended to look similar to
the one used by Samba, but other than that and the fact that both speak SMB,
it looks to be quite a different creature.</quote></p>

</section>

<section
  title="Problem Join domain with latest CVS"
  author="John Quirk"
  contact="mailto:jq_quirk@hotmail.com"
  subject="Still having problems with latest CVS and win2k joining a samba controlled domain"
  archive="http://lists.samba.org/pipermail/samba-ntdom/2000-December/030234.html"
  posts="7"
  startdate="01 Dec 2000 10:57:57 -0800"
  enddate="04 Dec 2000 08:29:54 -0800"
> 
<mention></mention>

<p>
</p>
<p>Chris Leavoy relayed his experiances with the CVS snapshot</p>

<quote who="Chris Leavoy">

<p>
As shown in the subject, I'm still having problems with the latest CVS of
samba 2.2.  When joining the win2k clients to the domain, I logon using root
(which is also in smbpasswd) and after about 30 or a minute it comes up with
the message welcome to the domain "workgroup".  In those 30-60 seconds,
there is around 50 pages of messages in the log.smd with a log level of 3.
And at the end of it all, there is some garbage about invalid uid, unable to
set uid blah blah, where uid is some weird NEGATIVE number... so it defaults
to 0:0 and then "panics" and blurts stuff about an internal error occured.
About 10 seconds after the panic message, win2k pops up welcome to the
domain.  I reboot the win2k machine, and when I try to login to the domain,
I get the follow error:</p>

<p><em>The system cannot log you on to this domain because the system's computer
account in its primary domain is missing or the password on that account is
incorrect.</em></p>

<p>Has anyone else experienced this situation, or know what on earth is wrong?
Any suggestions or comments on how to resolve this issue is greatly
appreciated.  If there is any information that I left out that could help
isolate the problem, feel free to ask.</p>

<p>I tried this whole thing with a different win2k box, which btw has sp1, and
this time I got the error message "unable to log in to the domain because
the netlogon services is not started."  Well, that's bullshit, because I
used the other win2k machine to remote admin, and saw that the netlogon
service was indeed started and running.  I suspect not, but could this be a
samba related problem</p>

</quote>

<p>
He went on to post his smb.conf file. Anders C. Thorsen asked for more detail
and went on to offer some possible causes
</p>

<quote who="Anders C. Thorsen">

<p>
 1. You have map to guest enabled</p>

<p>2. The guest has a funky UID [such as too large or negative..
in case of too large it will become negative]</p>

<p>3. When logging on as root, it's not fully recognised as such,
mapped to guest, and the behaviour you describe will occur.</p>

</quote>

<p>When Chris posted the extra info Anders ask for and this left Anders unsure 
of what the problem was. David Bannon contributed:</p>

<quote who="David Bannon">

<p>
Seriously though, I have heard a number of people saying that a
'complicated' config file confused 2.2. Nobody seems willing to explain
what they mean by 'complicated' however. Yours, with the defaults all spelt
out might just be what people mean (??).</p>

<p>Just in case (and I don't really believe it will help), could you grab the
conf file from the howto, change only those parameters that you need to
(and there are only about two ) and try with that ??</p>

</quote>

<p>Chris replied that this did not help that he had even tried the basic conf
from the FAQ. Chris also posted a section of his log files this
caught Jeremy Allison attention:</p>

<quote who="Jeremy Allison">

<p>
Is this with CVS of 2.2 ? If so, can you please either
send in a gdb stack backtrace, or a debug level 10 of the
log before this error message.
</p>

</quote>



<p>
That ended this version of the thread.
</p>

</section>

<section
  title="Bugs with Samba strings"
  author="John Quirk"
  contact="mailto:jq_quirk@hotmail.com"
  subject="safe_strcpy errors"
  archive="http://lists.samba.org/pipermail/samba-technical/2000-December/010317.html"
  posts="4"
  startdate="02 Dec 2000 12:32:18 -0800"
  enddate="03 Dec 2000 19:13:00 -0800"
> 
<mention></mention>

<p>Torsten Curdt reported:</p>

<quote who="Torsten Curdt">

<p>We're running the samba 2.2 CVS from Nov 3rd
now for quite a while in production environment.
(big hurray for the brave ;)</p>

<p>It works fine as PDC for our W2k Workstations.
Fileserving seems to be stable, no problems
with joining the domain. All I'm looking forward
to is the auth system rewrite. (maybe then we
can finally use our ldap server even to auth
samba users ;)</p>

<p>The only thing we came across were some string
overflow errors when handling the favorites
of the profiles. Like:</p>

<p><em>ERROR: string overflow by 5 in safe_strcpy 
[/guitar guitars tablature music mp3 olga percussio]</em></p>

<p>The user was not able to log in when this happened!
W2k denied the access! I had to go and clean
the favorites directory!</p>

</quote>

<p>Gerald Carter replied with:
</p>

<quote who="Gerald Carter">

<p>
Currently one of the issues that needs to be
rewritten in Samba is the static nature of strings
(fstrings and pstrings).  Both are declared as char
arrays with a fixed length.  The strcpy, strcat, etc...
functions are wrapped as to prevent buffer overflows.
The problem is things like what you are experiencing.
(although this could be caused by RPC bugs in other
parts of the code).</p>

<p>In order to give you an honest answer, we would need
to see level 10 debug logs at the time of the error.</p>

</quote>

<p>Torsten asked if this was a request to which Jerry repied:</p>

<quote who="Gerald Carter">
<p>Sure.  Send me a level 10 debug log of the failure.
I need the surrounding information 'cause I need to know
what string was being passed in.</p>
</quote>

<p>
No further post on this subject.
</p>

</section>

</kc>

