Linux Client Active Directory Authentication stops working when failover The 2019 Stack Overflow Developer Survey Results Are InDC/DNS failover with global/common DNS roundrobinOpenLDAP SSL errorldap-authentication without sambaSamAccount on linux smb/cifs server (e.g. samba)Linux workstation and Active Directory authenticationActive Directory authentication load balancing and failoverCheck Primary Authentication Protocol for Active Directory (NTLM or Kerberos?)Linux AD integration, unable to login when using Windows Server 2012 DCSet up Samba with Active Directory and local user authenticationCentOS 7 SSH and 2FA (ESET Secure Authentication)Configuration NFS v3 Kerberos on Centos 5.xPAM with pam_krb5 to authenticate nginx requests

Why Did Howard Stark Use All The Vibranium They Had On A Prototype Shield?

What is the use of option -o in the useradd command?

Unbreakable Formation vs. Cry of the Carnarium

Dual Citizen. Exited the US on Italian passport recently

Time travel alters history but people keep saying nothing's changed

Is bread bad for ducks?

Evaluating number of iteration with a certain map with While

Why don't Unix/Linux systems traverse through directories until they find the required version of a linked library?

Can I write a for loop that iterates over both collections and arrays?

What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?

Does a dangling wire really electrocute me if I'm standing in water?

What do hard-Brexiteers want with respect to the Irish border?

Spanish for "widget"

Where to refill my bottle in India?

What function has this graph?

Monty Hall variation

Does duplicating a spell with wish count as casting that spell?

Carnot-Caratheodory metric

Can we apply L'Hospital's rule where the derivative is not continuous?

What do the Banks children have against barley water?

aging parents with no investments

Why could you hear an Amstrad CPC working?

Limit the amount of RAM Mathematica may access?

Poison Arrows Piercing damage reduced to 0, do you still get poisoned?



Linux Client Active Directory Authentication stops working when failover



The 2019 Stack Overflow Developer Survey Results Are InDC/DNS failover with global/common DNS roundrobinOpenLDAP SSL errorldap-authentication without sambaSamAccount on linux smb/cifs server (e.g. samba)Linux workstation and Active Directory authenticationActive Directory authentication load balancing and failoverCheck Primary Authentication Protocol for Active Directory (NTLM or Kerberos?)Linux AD integration, unable to login when using Windows Server 2012 DCSet up Samba with Active Directory and local user authenticationCentOS 7 SSH and 2FA (ESET Secure Authentication)Configuration NFS v3 Kerberos on Centos 5.xPAM with pam_krb5 to authenticate nginx requests



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








6















I have an issue with Linux clients trying to AD authentication by targeting a DNS name (corp.example.com). I have 2 Domain Controller servers DC1(10.0.0.3/24), DC2(10.1.0.3/24) both domain controllers for corp.example.com. Before starting this each Linux client had 1 of the 2 AD servers IP addresses explicitly defined on it. I went through and replaced the IP address with the Domain name (corp.example.com) as shown below in the configs. Tested it and it works great. However, testing failover by turning off one of the Dome Controller servers renders some Linux clients unable to authenticate and times out. See DC/DNS failover with global/common DNS roundrobin for my originally post when I thought it was an network issue.
On the Linux clients:



/etc/openldap/ldap.conf



 uri ldap://DC1 ldap://DC2
base dc=corp,dc=example,dc=com


/etc/krb5.conf



[libdefaults]
default_realm = corp.example.com
clockskew = 300
dns_lookup_kdc
# default_realm = EXAMPLE.COM

[realms]
corp.example.com=
kdc = corp.example.com
default_domain = corp.example.com
kpasswd_server = corp.example.com
admin_server = corp.example.com

# EXAMPLE.COM =
# kdc = kerberos.example.com
# admin_server = kerberos.example.com
#

[logging]
kdc = FILE:/var/log/krb5/krb5kdc.log
admin_server = FILE:/var/log/krb5/kadmind.log
default = SYSLOG:NOTICE:DAEMON
[domain_realm]
.corp.example.com = corp.example.com
.corp = corp.example.com
[appdefaults]
pam =
ticket_lifetime = 1d
renew_lifetime = 1d
forwardable = true
proxiable = false
minimum_uid = 1
external = sshd
use_shmem = sshd
clockskew = 300
retain_after_close = false



/etc/resolve.conf



search corp.example.com
nameserver 10.0.0.3
nameserver 10.1.0.3


This is what I see in the syslog-ng



Nov 30 09:04:56 linux_client nscd: nss_ldap: failed to bind to LDAP server ldap://ad3: Can't contact LDAP server
Nov 30 09:04:59 linux_client sshd[15585]: nss_ldap: failed to bind to LDAP server ldap://ad3: Can't contact LDAP server
Nov 30 08:50:19 linux_client sshd[15242]: Accepted keyboard-interactive/pam for jim from 10.0.0.231 port 61288 ssh2
Nov 30 08:52:02 linux_client sshd[15284]: nss_ldap: could not search LDAP server - Server is unavailable
Nov 30 08:53:09 linux_client sshd[15284]: pam_unix2(sshd:auth): conversation failed
Nov 30 08:53:16 linux_client sshd[15284]: error: ssh_msg_send: write
Nov 30 08:53:26 linux_client sshd[15284]: pam_krb5[15284]: authentication fails for 'jim' (jim@corp.example.com): Authentication failure (Cannot read password)
Nov 30 08:53:26 linux_client sshd[15284]: error: ssh_msg_send: write
Nov 30 08:56:02 linux_client sshd[15289]: nss_ldap: could not search LDAP server - Server is unavailable
Nov 30 08:56:27 linux_client sshd[15289]: pam_krb5[15289]: authentication succeeds for 'jim' (jim@corp.example.com)
Nov 30 08:57:12 linux_client sshd[15289]: nss_ldap: could not search LDAP server - Server is unavailable
Nov 30 08:57:18 linux_client sshd[15289]: _rebind_proc
Nov 30 08:57:31 linux_client sshd[15289]: _rebind_proc
Nov 30 08:57:34 linux_client sshd[15289]: _rebind_proc
Nov 30 08:57:34 linux_client sshd[15289]: pam_ldap: ldap_result Timed out
Nov 30 08:57:34 linux_client sshd[15289]: error: ssh_msg_send: write


I looks like it is not trying the other DCs?










share|improve this question
























  • The DC's are in different subnets. Can the Linux clients reach and communicate with both subnets?

    – joeqwerty
    Nov 29 '12 at 21:27











  • Yes,there is a router between.

    – Jim
    Nov 30 '12 at 13:51











  • "ldap://ad3: Can't contact LDAP server" where does this hostname come from? I only see DC1 and DC2 in your configs.

    – Flamewires
    Aug 20 '16 at 17:32

















6















I have an issue with Linux clients trying to AD authentication by targeting a DNS name (corp.example.com). I have 2 Domain Controller servers DC1(10.0.0.3/24), DC2(10.1.0.3/24) both domain controllers for corp.example.com. Before starting this each Linux client had 1 of the 2 AD servers IP addresses explicitly defined on it. I went through and replaced the IP address with the Domain name (corp.example.com) as shown below in the configs. Tested it and it works great. However, testing failover by turning off one of the Dome Controller servers renders some Linux clients unable to authenticate and times out. See DC/DNS failover with global/common DNS roundrobin for my originally post when I thought it was an network issue.
On the Linux clients:



/etc/openldap/ldap.conf



 uri ldap://DC1 ldap://DC2
base dc=corp,dc=example,dc=com


/etc/krb5.conf



[libdefaults]
default_realm = corp.example.com
clockskew = 300
dns_lookup_kdc
# default_realm = EXAMPLE.COM

[realms]
corp.example.com=
kdc = corp.example.com
default_domain = corp.example.com
kpasswd_server = corp.example.com
admin_server = corp.example.com

# EXAMPLE.COM =
# kdc = kerberos.example.com
# admin_server = kerberos.example.com
#

[logging]
kdc = FILE:/var/log/krb5/krb5kdc.log
admin_server = FILE:/var/log/krb5/kadmind.log
default = SYSLOG:NOTICE:DAEMON
[domain_realm]
.corp.example.com = corp.example.com
.corp = corp.example.com
[appdefaults]
pam =
ticket_lifetime = 1d
renew_lifetime = 1d
forwardable = true
proxiable = false
minimum_uid = 1
external = sshd
use_shmem = sshd
clockskew = 300
retain_after_close = false



/etc/resolve.conf



search corp.example.com
nameserver 10.0.0.3
nameserver 10.1.0.3


This is what I see in the syslog-ng



Nov 30 09:04:56 linux_client nscd: nss_ldap: failed to bind to LDAP server ldap://ad3: Can't contact LDAP server
Nov 30 09:04:59 linux_client sshd[15585]: nss_ldap: failed to bind to LDAP server ldap://ad3: Can't contact LDAP server
Nov 30 08:50:19 linux_client sshd[15242]: Accepted keyboard-interactive/pam for jim from 10.0.0.231 port 61288 ssh2
Nov 30 08:52:02 linux_client sshd[15284]: nss_ldap: could not search LDAP server - Server is unavailable
Nov 30 08:53:09 linux_client sshd[15284]: pam_unix2(sshd:auth): conversation failed
Nov 30 08:53:16 linux_client sshd[15284]: error: ssh_msg_send: write
Nov 30 08:53:26 linux_client sshd[15284]: pam_krb5[15284]: authentication fails for 'jim' (jim@corp.example.com): Authentication failure (Cannot read password)
Nov 30 08:53:26 linux_client sshd[15284]: error: ssh_msg_send: write
Nov 30 08:56:02 linux_client sshd[15289]: nss_ldap: could not search LDAP server - Server is unavailable
Nov 30 08:56:27 linux_client sshd[15289]: pam_krb5[15289]: authentication succeeds for 'jim' (jim@corp.example.com)
Nov 30 08:57:12 linux_client sshd[15289]: nss_ldap: could not search LDAP server - Server is unavailable
Nov 30 08:57:18 linux_client sshd[15289]: _rebind_proc
Nov 30 08:57:31 linux_client sshd[15289]: _rebind_proc
Nov 30 08:57:34 linux_client sshd[15289]: _rebind_proc
Nov 30 08:57:34 linux_client sshd[15289]: pam_ldap: ldap_result Timed out
Nov 30 08:57:34 linux_client sshd[15289]: error: ssh_msg_send: write


I looks like it is not trying the other DCs?










share|improve this question
























  • The DC's are in different subnets. Can the Linux clients reach and communicate with both subnets?

    – joeqwerty
    Nov 29 '12 at 21:27











  • Yes,there is a router between.

    – Jim
    Nov 30 '12 at 13:51











  • "ldap://ad3: Can't contact LDAP server" where does this hostname come from? I only see DC1 and DC2 in your configs.

    – Flamewires
    Aug 20 '16 at 17:32













6












6








6








I have an issue with Linux clients trying to AD authentication by targeting a DNS name (corp.example.com). I have 2 Domain Controller servers DC1(10.0.0.3/24), DC2(10.1.0.3/24) both domain controllers for corp.example.com. Before starting this each Linux client had 1 of the 2 AD servers IP addresses explicitly defined on it. I went through and replaced the IP address with the Domain name (corp.example.com) as shown below in the configs. Tested it and it works great. However, testing failover by turning off one of the Dome Controller servers renders some Linux clients unable to authenticate and times out. See DC/DNS failover with global/common DNS roundrobin for my originally post when I thought it was an network issue.
On the Linux clients:



/etc/openldap/ldap.conf



 uri ldap://DC1 ldap://DC2
base dc=corp,dc=example,dc=com


/etc/krb5.conf



[libdefaults]
default_realm = corp.example.com
clockskew = 300
dns_lookup_kdc
# default_realm = EXAMPLE.COM

[realms]
corp.example.com=
kdc = corp.example.com
default_domain = corp.example.com
kpasswd_server = corp.example.com
admin_server = corp.example.com

# EXAMPLE.COM =
# kdc = kerberos.example.com
# admin_server = kerberos.example.com
#

[logging]
kdc = FILE:/var/log/krb5/krb5kdc.log
admin_server = FILE:/var/log/krb5/kadmind.log
default = SYSLOG:NOTICE:DAEMON
[domain_realm]
.corp.example.com = corp.example.com
.corp = corp.example.com
[appdefaults]
pam =
ticket_lifetime = 1d
renew_lifetime = 1d
forwardable = true
proxiable = false
minimum_uid = 1
external = sshd
use_shmem = sshd
clockskew = 300
retain_after_close = false



/etc/resolve.conf



search corp.example.com
nameserver 10.0.0.3
nameserver 10.1.0.3


This is what I see in the syslog-ng



Nov 30 09:04:56 linux_client nscd: nss_ldap: failed to bind to LDAP server ldap://ad3: Can't contact LDAP server
Nov 30 09:04:59 linux_client sshd[15585]: nss_ldap: failed to bind to LDAP server ldap://ad3: Can't contact LDAP server
Nov 30 08:50:19 linux_client sshd[15242]: Accepted keyboard-interactive/pam for jim from 10.0.0.231 port 61288 ssh2
Nov 30 08:52:02 linux_client sshd[15284]: nss_ldap: could not search LDAP server - Server is unavailable
Nov 30 08:53:09 linux_client sshd[15284]: pam_unix2(sshd:auth): conversation failed
Nov 30 08:53:16 linux_client sshd[15284]: error: ssh_msg_send: write
Nov 30 08:53:26 linux_client sshd[15284]: pam_krb5[15284]: authentication fails for 'jim' (jim@corp.example.com): Authentication failure (Cannot read password)
Nov 30 08:53:26 linux_client sshd[15284]: error: ssh_msg_send: write
Nov 30 08:56:02 linux_client sshd[15289]: nss_ldap: could not search LDAP server - Server is unavailable
Nov 30 08:56:27 linux_client sshd[15289]: pam_krb5[15289]: authentication succeeds for 'jim' (jim@corp.example.com)
Nov 30 08:57:12 linux_client sshd[15289]: nss_ldap: could not search LDAP server - Server is unavailable
Nov 30 08:57:18 linux_client sshd[15289]: _rebind_proc
Nov 30 08:57:31 linux_client sshd[15289]: _rebind_proc
Nov 30 08:57:34 linux_client sshd[15289]: _rebind_proc
Nov 30 08:57:34 linux_client sshd[15289]: pam_ldap: ldap_result Timed out
Nov 30 08:57:34 linux_client sshd[15289]: error: ssh_msg_send: write


I looks like it is not trying the other DCs?










share|improve this question
















I have an issue with Linux clients trying to AD authentication by targeting a DNS name (corp.example.com). I have 2 Domain Controller servers DC1(10.0.0.3/24), DC2(10.1.0.3/24) both domain controllers for corp.example.com. Before starting this each Linux client had 1 of the 2 AD servers IP addresses explicitly defined on it. I went through and replaced the IP address with the Domain name (corp.example.com) as shown below in the configs. Tested it and it works great. However, testing failover by turning off one of the Dome Controller servers renders some Linux clients unable to authenticate and times out. See DC/DNS failover with global/common DNS roundrobin for my originally post when I thought it was an network issue.
On the Linux clients:



/etc/openldap/ldap.conf



 uri ldap://DC1 ldap://DC2
base dc=corp,dc=example,dc=com


/etc/krb5.conf



[libdefaults]
default_realm = corp.example.com
clockskew = 300
dns_lookup_kdc
# default_realm = EXAMPLE.COM

[realms]
corp.example.com=
kdc = corp.example.com
default_domain = corp.example.com
kpasswd_server = corp.example.com
admin_server = corp.example.com

# EXAMPLE.COM =
# kdc = kerberos.example.com
# admin_server = kerberos.example.com
#

[logging]
kdc = FILE:/var/log/krb5/krb5kdc.log
admin_server = FILE:/var/log/krb5/kadmind.log
default = SYSLOG:NOTICE:DAEMON
[domain_realm]
.corp.example.com = corp.example.com
.corp = corp.example.com
[appdefaults]
pam =
ticket_lifetime = 1d
renew_lifetime = 1d
forwardable = true
proxiable = false
minimum_uid = 1
external = sshd
use_shmem = sshd
clockskew = 300
retain_after_close = false



/etc/resolve.conf



search corp.example.com
nameserver 10.0.0.3
nameserver 10.1.0.3


This is what I see in the syslog-ng



Nov 30 09:04:56 linux_client nscd: nss_ldap: failed to bind to LDAP server ldap://ad3: Can't contact LDAP server
Nov 30 09:04:59 linux_client sshd[15585]: nss_ldap: failed to bind to LDAP server ldap://ad3: Can't contact LDAP server
Nov 30 08:50:19 linux_client sshd[15242]: Accepted keyboard-interactive/pam for jim from 10.0.0.231 port 61288 ssh2
Nov 30 08:52:02 linux_client sshd[15284]: nss_ldap: could not search LDAP server - Server is unavailable
Nov 30 08:53:09 linux_client sshd[15284]: pam_unix2(sshd:auth): conversation failed
Nov 30 08:53:16 linux_client sshd[15284]: error: ssh_msg_send: write
Nov 30 08:53:26 linux_client sshd[15284]: pam_krb5[15284]: authentication fails for 'jim' (jim@corp.example.com): Authentication failure (Cannot read password)
Nov 30 08:53:26 linux_client sshd[15284]: error: ssh_msg_send: write
Nov 30 08:56:02 linux_client sshd[15289]: nss_ldap: could not search LDAP server - Server is unavailable
Nov 30 08:56:27 linux_client sshd[15289]: pam_krb5[15289]: authentication succeeds for 'jim' (jim@corp.example.com)
Nov 30 08:57:12 linux_client sshd[15289]: nss_ldap: could not search LDAP server - Server is unavailable
Nov 30 08:57:18 linux_client sshd[15289]: _rebind_proc
Nov 30 08:57:31 linux_client sshd[15289]: _rebind_proc
Nov 30 08:57:34 linux_client sshd[15289]: _rebind_proc
Nov 30 08:57:34 linux_client sshd[15289]: pam_ldap: ldap_result Timed out
Nov 30 08:57:34 linux_client sshd[15289]: error: ssh_msg_send: write


I looks like it is not trying the other DCs?







linux authentication domain-controller kerberos srv-record






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 13 '17 at 12:14









Community

1




1










asked Nov 29 '12 at 19:18









JimJim

52861731




52861731












  • The DC's are in different subnets. Can the Linux clients reach and communicate with both subnets?

    – joeqwerty
    Nov 29 '12 at 21:27











  • Yes,there is a router between.

    – Jim
    Nov 30 '12 at 13:51











  • "ldap://ad3: Can't contact LDAP server" where does this hostname come from? I only see DC1 and DC2 in your configs.

    – Flamewires
    Aug 20 '16 at 17:32

















  • The DC's are in different subnets. Can the Linux clients reach and communicate with both subnets?

    – joeqwerty
    Nov 29 '12 at 21:27











  • Yes,there is a router between.

    – Jim
    Nov 30 '12 at 13:51











  • "ldap://ad3: Can't contact LDAP server" where does this hostname come from? I only see DC1 and DC2 in your configs.

    – Flamewires
    Aug 20 '16 at 17:32
















The DC's are in different subnets. Can the Linux clients reach and communicate with both subnets?

– joeqwerty
Nov 29 '12 at 21:27





The DC's are in different subnets. Can the Linux clients reach and communicate with both subnets?

– joeqwerty
Nov 29 '12 at 21:27













Yes,there is a router between.

– Jim
Nov 30 '12 at 13:51





Yes,there is a router between.

– Jim
Nov 30 '12 at 13:51













"ldap://ad3: Can't contact LDAP server" where does this hostname come from? I only see DC1 and DC2 in your configs.

– Flamewires
Aug 20 '16 at 17:32





"ldap://ad3: Can't contact LDAP server" where does this hostname come from? I only see DC1 and DC2 in your configs.

– Flamewires
Aug 20 '16 at 17:32










1 Answer
1






active

oldest

votes


















0














Instead of using DNS to fail-over your domain controllers, /etc/openldap/ldap.conf allows you to use a space separated list of ldap servers. You can still use host names instead of actual IP addresses as well.



For example: URI ldap://dc01.corp.example.com ldap://dc02.corp.example.com



For more information see: http://linux.die.net/man/5/ldap.conf



I also noticed your 2 IP addresses from above are in separate subnets. Make sure your clients have comms to both. You have already looked into network issues so you are probably fine but I wanted to mention it just in case.






share|improve this answer


















  • 1





    Tried URI ldap://DC1 ldap://DC2, which works when DC1 is accessible, but not when I turn off DC1 to test failover it times out when authenticating.

    – Jim
    Nov 30 '12 at 13:53












  • Now tried URI ldap://10.0.0.3 ldap://10.1.0.3, but still doesn't work when 10.0.0.3 is unavailable. Logs show it keeps trying to contact ldap://10.0.0.3?? Is there a parameter I have to set in ldap.conf to have it try other ldap servers?

    – Jim
    Nov 30 '12 at 14:21






  • 1





    try setting the bind_timelimit <timelimit> I have not had to do that before but it is worth testing/researching.

    – Brian W
    Nov 30 '12 at 19:17







  • 1





    This is less desirable than DNS, as it involves editing configs on all the clients whenever you add or remove domain controllers.

    – Joel Coel
    Oct 6 '15 at 18:26












  • linuxquestions.org/questions/linux-enterprise-47/… mentions a few other settings as well

    – Daniel Farrell
    Jan 6 '17 at 0:18











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f453563%2flinux-client-active-directory-authentication-stops-working-when-failover%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Instead of using DNS to fail-over your domain controllers, /etc/openldap/ldap.conf allows you to use a space separated list of ldap servers. You can still use host names instead of actual IP addresses as well.



For example: URI ldap://dc01.corp.example.com ldap://dc02.corp.example.com



For more information see: http://linux.die.net/man/5/ldap.conf



I also noticed your 2 IP addresses from above are in separate subnets. Make sure your clients have comms to both. You have already looked into network issues so you are probably fine but I wanted to mention it just in case.






share|improve this answer


















  • 1





    Tried URI ldap://DC1 ldap://DC2, which works when DC1 is accessible, but not when I turn off DC1 to test failover it times out when authenticating.

    – Jim
    Nov 30 '12 at 13:53












  • Now tried URI ldap://10.0.0.3 ldap://10.1.0.3, but still doesn't work when 10.0.0.3 is unavailable. Logs show it keeps trying to contact ldap://10.0.0.3?? Is there a parameter I have to set in ldap.conf to have it try other ldap servers?

    – Jim
    Nov 30 '12 at 14:21






  • 1





    try setting the bind_timelimit <timelimit> I have not had to do that before but it is worth testing/researching.

    – Brian W
    Nov 30 '12 at 19:17







  • 1





    This is less desirable than DNS, as it involves editing configs on all the clients whenever you add or remove domain controllers.

    – Joel Coel
    Oct 6 '15 at 18:26












  • linuxquestions.org/questions/linux-enterprise-47/… mentions a few other settings as well

    – Daniel Farrell
    Jan 6 '17 at 0:18















0














Instead of using DNS to fail-over your domain controllers, /etc/openldap/ldap.conf allows you to use a space separated list of ldap servers. You can still use host names instead of actual IP addresses as well.



For example: URI ldap://dc01.corp.example.com ldap://dc02.corp.example.com



For more information see: http://linux.die.net/man/5/ldap.conf



I also noticed your 2 IP addresses from above are in separate subnets. Make sure your clients have comms to both. You have already looked into network issues so you are probably fine but I wanted to mention it just in case.






share|improve this answer


















  • 1





    Tried URI ldap://DC1 ldap://DC2, which works when DC1 is accessible, but not when I turn off DC1 to test failover it times out when authenticating.

    – Jim
    Nov 30 '12 at 13:53












  • Now tried URI ldap://10.0.0.3 ldap://10.1.0.3, but still doesn't work when 10.0.0.3 is unavailable. Logs show it keeps trying to contact ldap://10.0.0.3?? Is there a parameter I have to set in ldap.conf to have it try other ldap servers?

    – Jim
    Nov 30 '12 at 14:21






  • 1





    try setting the bind_timelimit <timelimit> I have not had to do that before but it is worth testing/researching.

    – Brian W
    Nov 30 '12 at 19:17







  • 1





    This is less desirable than DNS, as it involves editing configs on all the clients whenever you add or remove domain controllers.

    – Joel Coel
    Oct 6 '15 at 18:26












  • linuxquestions.org/questions/linux-enterprise-47/… mentions a few other settings as well

    – Daniel Farrell
    Jan 6 '17 at 0:18













0












0








0







Instead of using DNS to fail-over your domain controllers, /etc/openldap/ldap.conf allows you to use a space separated list of ldap servers. You can still use host names instead of actual IP addresses as well.



For example: URI ldap://dc01.corp.example.com ldap://dc02.corp.example.com



For more information see: http://linux.die.net/man/5/ldap.conf



I also noticed your 2 IP addresses from above are in separate subnets. Make sure your clients have comms to both. You have already looked into network issues so you are probably fine but I wanted to mention it just in case.






share|improve this answer













Instead of using DNS to fail-over your domain controllers, /etc/openldap/ldap.conf allows you to use a space separated list of ldap servers. You can still use host names instead of actual IP addresses as well.



For example: URI ldap://dc01.corp.example.com ldap://dc02.corp.example.com



For more information see: http://linux.die.net/man/5/ldap.conf



I also noticed your 2 IP addresses from above are in separate subnets. Make sure your clients have comms to both. You have already looked into network issues so you are probably fine but I wanted to mention it just in case.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 29 '12 at 21:43









Brian WBrian W

214




214







  • 1





    Tried URI ldap://DC1 ldap://DC2, which works when DC1 is accessible, but not when I turn off DC1 to test failover it times out when authenticating.

    – Jim
    Nov 30 '12 at 13:53












  • Now tried URI ldap://10.0.0.3 ldap://10.1.0.3, but still doesn't work when 10.0.0.3 is unavailable. Logs show it keeps trying to contact ldap://10.0.0.3?? Is there a parameter I have to set in ldap.conf to have it try other ldap servers?

    – Jim
    Nov 30 '12 at 14:21






  • 1





    try setting the bind_timelimit <timelimit> I have not had to do that before but it is worth testing/researching.

    – Brian W
    Nov 30 '12 at 19:17







  • 1





    This is less desirable than DNS, as it involves editing configs on all the clients whenever you add or remove domain controllers.

    – Joel Coel
    Oct 6 '15 at 18:26












  • linuxquestions.org/questions/linux-enterprise-47/… mentions a few other settings as well

    – Daniel Farrell
    Jan 6 '17 at 0:18












  • 1





    Tried URI ldap://DC1 ldap://DC2, which works when DC1 is accessible, but not when I turn off DC1 to test failover it times out when authenticating.

    – Jim
    Nov 30 '12 at 13:53












  • Now tried URI ldap://10.0.0.3 ldap://10.1.0.3, but still doesn't work when 10.0.0.3 is unavailable. Logs show it keeps trying to contact ldap://10.0.0.3?? Is there a parameter I have to set in ldap.conf to have it try other ldap servers?

    – Jim
    Nov 30 '12 at 14:21






  • 1





    try setting the bind_timelimit <timelimit> I have not had to do that before but it is worth testing/researching.

    – Brian W
    Nov 30 '12 at 19:17







  • 1





    This is less desirable than DNS, as it involves editing configs on all the clients whenever you add or remove domain controllers.

    – Joel Coel
    Oct 6 '15 at 18:26












  • linuxquestions.org/questions/linux-enterprise-47/… mentions a few other settings as well

    – Daniel Farrell
    Jan 6 '17 at 0:18







1




1





Tried URI ldap://DC1 ldap://DC2, which works when DC1 is accessible, but not when I turn off DC1 to test failover it times out when authenticating.

– Jim
Nov 30 '12 at 13:53






Tried URI ldap://DC1 ldap://DC2, which works when DC1 is accessible, but not when I turn off DC1 to test failover it times out when authenticating.

– Jim
Nov 30 '12 at 13:53














Now tried URI ldap://10.0.0.3 ldap://10.1.0.3, but still doesn't work when 10.0.0.3 is unavailable. Logs show it keeps trying to contact ldap://10.0.0.3?? Is there a parameter I have to set in ldap.conf to have it try other ldap servers?

– Jim
Nov 30 '12 at 14:21





Now tried URI ldap://10.0.0.3 ldap://10.1.0.3, but still doesn't work when 10.0.0.3 is unavailable. Logs show it keeps trying to contact ldap://10.0.0.3?? Is there a parameter I have to set in ldap.conf to have it try other ldap servers?

– Jim
Nov 30 '12 at 14:21




1




1





try setting the bind_timelimit <timelimit> I have not had to do that before but it is worth testing/researching.

– Brian W
Nov 30 '12 at 19:17






try setting the bind_timelimit <timelimit> I have not had to do that before but it is worth testing/researching.

– Brian W
Nov 30 '12 at 19:17





1




1





This is less desirable than DNS, as it involves editing configs on all the clients whenever you add or remove domain controllers.

– Joel Coel
Oct 6 '15 at 18:26






This is less desirable than DNS, as it involves editing configs on all the clients whenever you add or remove domain controllers.

– Joel Coel
Oct 6 '15 at 18:26














linuxquestions.org/questions/linux-enterprise-47/… mentions a few other settings as well

– Daniel Farrell
Jan 6 '17 at 0:18





linuxquestions.org/questions/linux-enterprise-47/… mentions a few other settings as well

– Daniel Farrell
Jan 6 '17 at 0:18

















draft saved

draft discarded
















































Thanks for contributing an answer to Server Fault!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f453563%2flinux-client-active-directory-authentication-stops-working-when-failover%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

Why did Thanos need his ship to help him in the battle scene?Which actor plays Thanos in the Avengers mid-credits scene?Are there economic implications portrayed in comics where the buildings and cities are ruined almost daily?Old X-Men comic where team travels to alien world with a ring-like sun that needs recharging?Why does Ego need help sleeping?Is there an objective answer to who “the strongest Avenger” is?How did Banner get unstuck?Why did Thanos get hit?How did Thanos (or anyone) know the Infinity Stones would give him this power?Did Thanos leave Eitri alive for his after-sales service?In Avengers 1, why does Thanos need Loki?