<div class="gmail_quote">On Fri, Jul 31, 2009 at 10:00 PM, David Christensen <span dir="ltr"><<a href="mailto:David.Christensen@viveli.com">David.Christensen@viveli.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
I successfully setup heartbeat and glusterfs (instead of DRBD) to<br>
provide an HA Samba configuration.  I tested that fail over worked fine<br>
all the existing computers were able to get to their shares and re<br>
authenticate users.<br>
<br>
However I discovered that I was not able to join computers to the domain<br>
after the configuration was setup.  The netbios name was changed to<br>
accommodate the new heartbeat VIP and the new VIP is the only address I<br>
have samba bound to.<br>
<br>
When I go to add the computer to the domain, type to the domain in and<br>
hit enter, I am presented with a login dialog box.  When I enter the<br>
admin and password and hit enter, after a few seconds I get the warning<br>
that a controller for the domain could not be foumd.<br>
</blockquote><div><br>So samba is the PDC, if not clear to me from the mail. If this is the case the netbios name <br>of the samba - or windows prewindows 2000  - domain PDC is <br><br>domainname#1B<br><br>The samba - or windows prewindos 200 - domain DC - so also the BC - is<br>
<br>domain#1C<br><br>(e.g. the domain master browser in windows term )<br><br>Now, how your samba PDC/BDC registrar  their name ? If you use wins in smb.conf - let me call the wins server with the ip address x.y.z.w - try to lookup the domain name <br>
<br>nmblookup  -R -U x.y.z.w domainame#1C (e similar for #1B)<br><br>If  not - your PDC is into the same broadcast address (e.g subnet) of your client - <br><br>nmblookup domainname#1B  (#1C also)<br><br>In reality the client was finding domainname#1C for update the machine account onto the PDC. If the one of the preceding command fail well it is only a wins or other namespace registration problem : not a local samba problem. Or, perhaps you have not tell in more depth the different configuration on samba you have done, so it is possible i am wrong.<br>
<br>Regard<br><br><br><br><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
I suspect that there is some caching going on and (maybe) winbind is<br>
using the old info for the PDC and not the new?<br>
<br>
Are there any caches I could clear that may fix this?  Am I on the right<br>
track or is there somethign else I should be looking at?<br>
<br>
When I compare the ldap access logs with and without heartbeat, there is<br>
a difference in the query.  As I previously mentioned, without<br>
heartbeat, adding is successful, with heartbeat it is not.  I found that<br>
the search base is different:<br>
<br>
With heartbeat - SRCH base="cn=groups,cn=accounts,dc=example,dc=com"<br>
scope=2 filter="(&(objectClass=sambaGroupMapping)(gidNumber=99))"<br>
attrs="gidNumber sambaSID sambaGroupType sambaSIDList description<br>
displayName cn objectClass"<br>
<br>
W/heartbeat - SRCH<br>
base="sambaDomainName=exampleHQ,sambaDomainName=exampleHQ,dc=example,dc=com"<br>
scope=2<br>
filter="(&(objectClass=sambaTrustedDomainPassword)(sambaDomainName=exampleHQ))"<br>
attrs=ALL<br>
<br>
When I compared the logs when executing pdbedit -Lv with both setups,<br>
the queries are the same.<br>
<br>
Why would samba do a different query to the same instance of ldap when<br>
configured with heartbeat and without heartbeat?<br>
<br>
The address that samba is binding to/from for access to ldap is not the<br>
VIP provided by heartbeat.<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.9 (GNU/Linux)<br>
Comment: Using GnuPG with Fedora - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
iEYEARECAAYFAkpzTW4ACgkQ5B+8XEnAvqub1ACdGFBhVRaePH0fuTD0mORGIMgB<br>
V48AnR0znBY9KD3nhYYdPtR2dQXUWxBO<br>
=jrTm<br>
-----END PGP SIGNATURE-----<br>
<font color="#888888"><br>
--<br>
389 users mailing list<br>
<a href="mailto:389-users@redhat.com">389-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/fedora-directory-users" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-directory-users</a><br>
</font></blockquote></div><br>