<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ben Donnelly</title>
	<atom:link href="http://bendonnelly.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://bendonnelly.com</link>
	<description></description>
	<lastBuildDate>Thu, 26 Apr 2012 15:26:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title></title>
		<link>http://bendonnelly.com/93/</link>
		<comments>http://bendonnelly.com/93/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 00:23:31 +0000</pubDate>
		<dc:creator>bendy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.bendonnelly.com/?p=93</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.bendonnelly.com/wp-content/uploads/2011/08/image_large.png"><img src="http://www.bendonnelly.com/wp-content/uploads/2011/08/image_large.png" alt="" title="image_large" width="600" height="232" class="alignright size-full wp-image-45" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://bendonnelly.com/93/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://bendonnelly.com/148/</link>
		<comments>http://bendonnelly.com/148/#comments</comments>
		<pubDate>Thu, 03 Feb 2005 22:32:00 +0000</pubDate>
		<dc:creator>bendy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.bendonnelly.com/148/</guid>
		<description><![CDATA[Loading VNC onto a remote Macintosh running SSH - download OSXvnc - Move diskimage to remote computer scp OSXvnc1.5.dmg admin@thatmac.fooschool.edu:~/Applications/ - ssh to remote comptuer, go into Applications folder, mount dmg file, go into .app folder open OSXvnc1.5.dmg cd OSXvnc.app - start the binary over ssh. The localhost option sets it up to sshtunnel. ./OSXvnc-server &#8230;<p><a href="http://bendonnelly.com/148/" class="more-link">Read More</a></p>]]></description>
			<content:encoded><![CDATA[<p><span style="font-size:130%;"><span style="font-weight: bold;">Loading VNC onto a remote Macintosh running SSH</span></span></p>
<p>- download <a href="http://prdownloads.sourceforge.net/osxvnc/OSXvnc1.5.dmg?download">OSXvnc</a></p>
<p>- Move diskimage to remote computer<br />
<br /> <br />
<blockquote><span style="font-size:85%;"><span style="font-family: courier new;">scp OSXvnc1.5.dmg admin@thatmac.fooschool.edu:~/Applications/</span></span></p></blockquote>
<p><span style="font-size:85%;"><span style="font-family: courier new;"></span></span><br />
<br />- ssh to remote comptuer, go into Applications folder, mount dmg file, go into .app folder<br />
<br /><span style="font-family: courier new;font-size:85%;" ><br />
<blockquote>open OSXvnc1.5.dmg<br />
<br />cd OSXvnc.app</p></blockquote>
<p></span><br />
<br />- start the binary over ssh. The localhost option sets it up to sshtunnel.<br />
<br /><span style="font-family: courier new;font-size:85%;" ><br />
<blockquote>./OSXvnc-server -localhost</p></blockquote>
<p></span><br />
<br />- establish ssh tunnel from local computer<br />
<br />
<blockquote><span style="font-size:85%;"><br />
<br />   <span style="font-family: courier new;">ssh -l admin -L 5900:127.0.0.1:5900 thatmac.fooschool.edu</span></span></p></blockquote>
<p><span style="font-size:85%;"><span style="font-family: courier new;"></span></span>- start local vnc client to <span style="font-style: italic;">localhost</span></p>
<p><span style="font-size:85%;"><span style="font-family: courier new;"><br />
<blockquote>vncviewer 127.0.0.1</p>
</blockquote>
<p></span></span>SSH will tunnel the vnc client to the service you started on the remote comptuer. It should pop up. It&#8217;ll be slow. But it works.<br /></p>
]]></content:encoded>
			<wfw:commentRss>http://bendonnelly.com/148/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://bendonnelly.com/146/</link>
		<comments>http://bendonnelly.com/146/#comments</comments>
		<pubDate>Fri, 17 Dec 2004 22:26:00 +0000</pubDate>
		<dc:creator>bendy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.bendonnelly.com/146/</guid>
		<description><![CDATA[Openldap TLS errors Lost a few hours today over a stupid mistake, getting SSL/TLS running on Openldap. When I tried: ldapsearch -x -Z -h woodsy.nicholas.duke.edu -d 1 I got: ldap_bind: Can't contact LDAP server additional info: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure Over and over, I was troubleshooting the certificates, since that&#8217;s the common problem. Certificates &#8230;<p><a href="http://bendonnelly.com/146/" class="more-link">Read More</a></p>]]></description>
			<content:encoded><![CDATA[<p>Openldap TLS errors</p>
<p>Lost a few hours today over a stupid mistake, getting SSL/TLS running on Openldap. When I tried:</p>
<pre> ldapsearch -x -Z -h woodsy.nicholas.duke.edu -d 1 </pre>
<p>I got: </p>
<pre>
ldap_bind: Can't contact LDAP server
        additional info: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
</pre>
<p>Over and over, I was troubleshooting the certificates, since that&#8217;s the common problem. Certificates were fine, and the debug info suggests that it hasn&#8217;t gotten to the certifacate handshake anyways.</p>
<p>Anyways, the dumb error was in slapd.conf</p>
<p>When I uncommented the lines giving the path to the certificates:</p>
<pre>
TLSCertificateFile /usr/share/ssl/certs/slapd.crt
TLSCertificateKeyFile /usr/share/ssl/certs/slapd.key
TLSCACertificateFile /usr/share/ssl/certs/server-ca.crt
</pre>
<p>I&#8217;d left the leading spaces, so the configuration parameters weren&#8217;t even loading. Hint: don&#8217;t do this. </p>
]]></content:encoded>
			<wfw:commentRss>http://bendonnelly.com/146/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://bendonnelly.com/145/</link>
		<comments>http://bendonnelly.com/145/#comments</comments>
		<pubDate>Wed, 06 Oct 2004 19:26:00 +0000</pubDate>
		<dc:creator>bendy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.bendonnelly.com/145/</guid>
		<description><![CDATA[Point and Print connections loose devmode. Users keep loosing thier duplexing options from our samba print queues. I haven&#8217;t solved the problem, but this is what I&#8217;ve learned. We provide print queues that are described by Microsoft as &#8220;Point &#8216;n Print&#8221;. A point &#8216;n print queue spools print jobs that have been formatted by the &#8230;<p><a href="http://bendonnelly.com/145/" class="more-link">Read More</a></p>]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: bold;">Point and Print connections loose devmode.</span></p>
<p>Users keep loosing thier duplexing options from our samba print queues. I haven&#8217;t solved the problem, but this is what I&#8217;ve learned.</p>
<p>We provide print queues that are described by Microsoft as &#8220;Point &#8216;n  Print&#8221;.</p>
<p>A point &#8216;n print queue spools print jobs that have been formatted by the  workstation.</p>
<p>The workstation learns how to format the job by downloading a print  driver during the first connection.</p>
<p>The print driver doesn&#8217;t automatically know if it can submit duplex  jobs, however. It&#8217;s up to the print server to hand off the driver, but  also hand off some subsquent info about what options on the print device  are available. Like a duplexer or extra paper trays or evelope feeders.</p>
<p>So when a user makes a printer shortcut in their account, they are  storing three things</p>
<p>- The UNC path to the print spool- \\SAMBASERVER\printername</p>
<p>- A copy of the print driver, a file that they will carry around in  their profile</p>
<p>- some device configuration options which modify how the driver will  appear to them. This is stored in the Windows registry in long  unfreindly string:</p>
<p>HKEY_CURRENT_USER\Printers\DevModePerUser\&#8221;\\SAMBASERVER\printername&#8221;</p>
<p>That last bit is what keeps vanishing. That&#8217;s what puts a check in the  duplexing checkbox.</p>
<p>The problem seems to be that workstations are somehow not setting that  registry key, or are overwriting the user&#8217;s version of that key.</p>
<p>The machine stores the devmode in</p>
<p>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Print\Providers\LanMan  Print Services\Servers\[server name]\Printers\[name of queue]\Default  DevMode</p>
<p>I&#8217;m thinking, in looking at some computer registries, that the problem  might be that the comptuer is looking to saint.env.duke.edu for the  devmode information, rather than nicknet.env.duke.edu, which is a  virtual samba server on saint.</p>
<p>But I can&#8217;t tell for sure. One user told me that her duplexing comes and  goes from certain machines. I&#8217;m not sure what we&#8217;d have to clear out to  get those bad settings from the local system, or if moving nicknet to  another server will fix it.</p>
]]></content:encoded>
			<wfw:commentRss>http://bendonnelly.com/145/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://bendonnelly.com/144/</link>
		<comments>http://bendonnelly.com/144/#comments</comments>
		<pubDate>Fri, 13 Aug 2004 21:08:00 +0000</pubDate>
		<dc:creator>bendy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.bendonnelly.com/144/</guid>
		<description><![CDATA[Got CUPS/Samba printing working. I spent a day frustraited that I couldnt get samba to allow me to associate driver with queues, but, it turned out it was due to this setting- use client driver = yes which I&#8217;d added in to get past an earlier roadblock I had on the live machine. I hadn&#8217;t &#8230;<p><a href="http://bendonnelly.com/144/" class="more-link">Read More</a></p>]]></description>
			<content:encoded><![CDATA[<p>Got CUPS/Samba printing working. I spent a day frustraited that I couldnt get samba to allow me to associate driver with queues, but, it turned out it was due to this setting-</p>
<p>use client driver = yes</p>
<p>which I&#8217;d added in to get past an earlier roadblock I had on the live machine. I hadn&#8217;t need the parameter on my test machine, and naturally, it seems to disable clickable driver download. </p>
<p>So here the relevant params&#8230;</p>
<pre>

[global]

        load printers = yes
        printing = cups
        printcap name = cups
        show add printer wizard = yes
        lpq cache time = 100

#shares 

[printers]
        comment = all printers
        path = /var/spool/samba
        browseable = no
        public = yes
        guest ok = yes
        printable = yes
        printer admin = print-admin

[print$]
        comment = Printer Drivers
        path = /var/lock/samba/printing/drivers
        browseable = yes
        guest ok = no
        read only = yes
        write list = print-admin
</pre>
<p>I&#8217;m storing the printer drivers in the same path as the runtime tdbs. </p>
]]></content:encoded>
			<wfw:commentRss>http://bendonnelly.com/144/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://bendonnelly.com/143/</link>
		<comments>http://bendonnelly.com/143/#comments</comments>
		<pubDate>Thu, 12 Aug 2004 20:48:00 +0000</pubDate>
		<dc:creator>bendy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.bendonnelly.com/143/</guid>
		<description><![CDATA[Getting not so far, but learing much about samba/cups printing. I could get everything to work on our PDC, except for the assignment of Window print drivers to the cups print queues. I couldn&#8217;t get to work from the &#8220;Add Printer Wizard&#8221;. I got a &#8220;Printer settings could not be saved. Access is denied.&#8221; error. &#8230;<p><a href="http://bendonnelly.com/143/" class="more-link">Read More</a></p>]]></description>
			<content:encoded><![CDATA[<p>Getting not so far, but learing much about samba/cups printing.</p>
<p>I could get everything to work on our PDC, except for the assignment of Window print drivers to the cups print queues. I couldn&#8217;t get to work from the &#8220;Add Printer Wizard&#8221;. I got a &#8220;Printer settings could not be saved. Access is denied.&#8221; error. Got the same thing from the command line, using rpcclient. As far as I can tell, there is no way to perform this action directly on the tdb file which hold the data. It must be done though system calls.</p>
<p>My guess is what&#8217;s keeping it from working is that the smb.conf file that&#8217;s governing this is a second smb process I run independant of the PDC, on a virtual ethernet interface. I wonder if the RPC calls are going back to the main interface, somehow.</p>
]]></content:encoded>
			<wfw:commentRss>http://bendonnelly.com/143/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://bendonnelly.com/142/</link>
		<comments>http://bendonnelly.com/142/#comments</comments>
		<pubDate>Tue, 10 Aug 2004 19:27:00 +0000</pubDate>
		<dc:creator>bendy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.bendonnelly.com/142/</guid>
		<description><![CDATA[Printing I&#8217;m going to try to tackle printing migration. Look like, to get something close to NT style IP printing, which is what we have, we need to do this. 1) Set up CUPS to allow raw printing 2) Set up CUPS to send page log files to syslog 3) add raw print queue to &#8230;<p><a href="http://bendonnelly.com/142/" class="more-link">Read More</a></p>]]></description>
			<content:encoded><![CDATA[<p><span style="font-weight: bold;">Printing</p>
<p>I&#8217;m going to try to tackle printing migration. Look like, to get something close to NT style IP printing, which is what we have, we need to do this.</p>
<p>1) Set up CUPS to allow raw printing<br />
<br />2) Set up CUPS to send page log files to syslog<br />
<br />3) add raw print queue to our printer IPs using the CUPS lpadmin utility<br />
<br />4) Set samba to share CUPS print queues</p>
<p>The test queues seem a little slow, but I&#8217;m going to go ahead with it. The main difficiently I see is auditing print queue usage through the /var/log/cups/page_log file. It seem a bit un-verbose. I&#8217;d like to find away to capture the file names while keeping the printer connection raw.</p>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://bendonnelly.com/142/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://bendonnelly.com/141/</link>
		<comments>http://bendonnelly.com/141/#comments</comments>
		<pubDate>Fri, 21 May 2004 16:58:00 +0000</pubDate>
		<dc:creator>bendy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.bendonnelly.com/141/</guid>
		<description><![CDATA[Extracting values from pdbedit output The verbose output from pdbedit is kinda screwy; here&#8217;s some code to pluck out specific values- I&#8217;ve wanted to be able to grab &#8220;Account desc&#8221; for sorting users as I migrate them. #!/usr/bin/perl #parse a verbose pdbedit record #put record keys and values into a hash #pdbedit command- change for &#8230;<p><a href="http://bendonnelly.com/141/" class="more-link">Read More</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Extracting values from pdbedit output </strong></p>
<p>The verbose output from pdbedit is kinda screwy; here&#8217;s some code to pluck out specific values- I&#8217;ve wanted to be able to grab &#8220;Account desc&#8221; for sorting users as I migrate them. </p>
<p>
<pre>
#!/usr/bin/perl
#parse a verbose pdbedit record
#put record keys and values into a hash

#pdbedit command- change for your system.
$pdbedit = '/usr/local/sbin/pdbedit -s /etc/samba/pdc/smb.conf';

foreach $username (@ARGV){
        open (UREC, "$pdbedit -v $username |");

        foreach (<urec>){
                chomp;
                #split key from value
                @line = split(/: /);
                #looks like the values are formatted with whitespace
                #take out the leading whitespace
                $line[1] =~ s/^\s+//;
                $urec{$line[0]} = $line[1];
        }
        close (UREC);

        #example output
        print "$urec{'NT username'}\n";
        print "$urec{'Full Name'}\n";
        print "$urec{'Account desc'}\n";
}
</pre>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://bendonnelly.com/141/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://bendonnelly.com/140/</link>
		<comments>http://bendonnelly.com/140/#comments</comments>
		<pubDate>Thu, 18 Mar 2004 22:10:00 +0000</pubDate>
		<dc:creator>bendy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.bendonnelly.com/140/</guid>
		<description><![CDATA[XP Pro non-domain computers have trouble authenticating I&#8217;ve seen two cases recently where a user couldn&#8217;t authenticate to our servers when they accessed our network from non-domain computer, unless they mapped a drive. They couldn&#8217;t do it through unc path shortcuts, although one reported that she did so as recently as two weeks ago. In &#8230;<p><a href="http://bendonnelly.com/140/" class="more-link">Read More</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>XP Pro non-domain computers have trouble authenticating</strong></p>
<p>I&#8217;ve seen two cases recently where a user couldn&#8217;t authenticate to our servers when they accessed our network from non-domain computer, unless they mapped a drive.  They couldn&#8217;t do it through unc path shortcuts, although one reported that she did so as recently as two weeks ago.</p>
<p>In other words, most XP computers had no problem with a <em>Start->Search->Search for Computers</em> to bring up \\server.domain.edu They&#8217;d get prompted for a login screen, do the DOMAIN\user44 thing, and they&#8217;d be in.</p>
<p>But with these two users, they could only do it by mapping a drive to to our domain, and supplying credentials in the &#8220;connect as other user&#8221; screen. </p>
<p>Watching the logs on the servers the users were attaching to, it looks like the user attempting to attach was authenticated not with the credentials they entered, but with their local user account &#8220;nickname&#8221;</p>
<p>In this line from the logs, &#8220;Chingay&#8221; was the nickname of the user account. In XP, the user can have a friendly, real world name with a space, and I guess the nickname was equivalent to the real &#8220;username&#8221;.</p>
<pre>
[2004/03/18 10:42:16, 0] smbd/password.c:domain_client_validate(1620)
domain_client_validate: unable to validate password for user Chinggay in
domain KLJAYME to Domain controller pdc.domain.edu. Error was
NT_STATUS_NO_SUCH_USER.
</pre>
<p>I think what these computers have in common is that they were both XP Pro in fast-user-switching mode. It must have something to do with the &#8220;friendly&#8221; login names XP creates during the install. What  is strange is that our server prompts with an authentication screen, but XP fails to use the credentials entered.<br /></p>
]]></content:encoded>
			<wfw:commentRss>http://bendonnelly.com/140/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title></title>
		<link>http://bendonnelly.com/139/</link>
		<comments>http://bendonnelly.com/139/#comments</comments>
		<pubDate>Mon, 15 Mar 2004 20:33:00 +0000</pubDate>
		<dc:creator>bendy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.bendonnelly.com/139/</guid>
		<description><![CDATA[MS Office Files getting set to read-only when edited on a Samba share. A problem cropped up this morning when some home directories were migrated to a new server. Two users reported problems with Excel and Word files crashing. We narrowed it down to files edited and saved by MS Office 2000. The same files &#8230;<p><a href="http://bendonnelly.com/139/" class="more-link">Read More</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>MS Office Files getting set to read-only when edited on a Samba share.</strong></p>
<p>A problem cropped up this morning when some home directories were migrated to a new server. Two users reported problems with Excel and Word files crashing. We narrowed it down to files edited and saved by MS Office 2000. The same files edited in OpenOffice didn&#8217;t have the problem. After saving the files, the permission mask got set to -r&#8212;&#8212;&#8211;. </p>
<p>It was odd, because the problem was easy to reproduce on this server, but not on the original host of the home directories, which had an identical smb.conf. </p>
<p>Turns out that the new server had an rpm isntalled of Samba 2.2.7 , where our other servers had a locally compiled version of 2.2.8</p>
<p>When running testparm on the two installations, the newer install offered this parameter-</p>
<pre> acl compatibility = </pre>
<p>&#8230;set to null, apprently, but it did make a difference. When I installed 2.2.8 on the problem server, it fixed the error. </p>
<p>This recent samba list thread seems to report a similar problem, though the workarounds are done by forcing the mask-<br />
<br />http://lists.samba.org/archive/samba/2004-March/081690.html</p>
<p>We don&#8217;t force many permissons on our shares. Here&#8217;s the config of the share that had the problem.</p>
<pre>
[home6]
        comment =  Home Folders
        path = /slot1/p1/nickhome6
        read only = No
        create mask = 0770
        profile acls = Yes
</pre>
]]></content:encoded>
			<wfw:commentRss>http://bendonnelly.com/139/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

