|
|
@ -75,7 +75,9 @@ public class LdapAccountInitLoad implements ApplicationRunner{ |
|
|
} catch (NamingException e) { |
|
|
} catch (NamingException e) { |
|
|
logger.error("Failed to connect to the LDAP server."); |
|
|
logger.error("Failed to connect to the LDAP server."); |
|
|
} finally{ |
|
|
} finally{ |
|
|
ctx.close(); |
|
|
|
|
|
|
|
|
if (null != ctx){ |
|
|
|
|
|
ctx.close(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|