Make LDAP auto-reconnect and properly determine the next month in November

(11+1)%12 is 0, not 12...