[Samba] Samba4: 2DC domain. Which ldap:// address do I use, DC1 or DC2?
steve at steve-ss.com
Mon Jul 30 01:18:16 MDT 2012
On 30/07/12 01:14, John Drescher wrote:
> On Sun, Jul 29, 2012 at 11:43 AM, steve <steve at steve-ss.com> wrote:
>> 2 Samb4 DC's joined and replicating great.
>> I'm running some Linux scripts on DC2 which I copied from DC1.
>> I changed the ldap://address for a script which I copied to DC2 to that of
>> DC2. If I now deliberately failover DC1, the script on DC2 complains that
>> the ldap addresss is invalid.
>> Do I keep the scripts at the same ldap://address on BOTH DC's? Is, that
> I put both ldap servers (actually in my case 3 ldap servers and 3 DCs)
> on that line on both DCs.
Say I have:
ldbsearch --url=ldap://hh1.hh3.site --kerberos=yes --krb5-ccache=$ccache
<some search stuff>
How would I add ldap://hh6.hh3.site to that line?
Is there a way to pull the fqdn's for both DC's from the directory? (so
I can make the script non specific to my domain)
More information about the samba