| | |
| | | return; |
| | | } |
| | | |
| | | AttributeType attrType1 = DirectoryServer.getAttributeTypeOrDefault("adminport".toLowerCase()); |
| | | AttributeType attrType2 = DirectoryServer.getAttributeTypeOrDefault("adminEnabled".toLowerCase()); |
| | | AttributeType attrType1 = DirectoryServer.getAttributeType("adminport"); |
| | | AttributeType attrType2 = DirectoryServer.getAttributeType("adminEnabled"); |
| | | |
| | | LinkedList<Modification> mods = new LinkedList<>(); |
| | | mods.add(new Modification(ModificationType.REPLACE, Attributes.create(attrType1, adminPort))); |
| | |
| | | String val = getAttr("cn=LDAPS Connection Handler,cn=Connection Handlers,cn=config", "ds-cfg-enabled"); |
| | | if (val != null) |
| | | { |
| | | ldapsPortEnable = "true".equals(val.toLowerCase()); |
| | | ldapsPortEnable = "true".equalsIgnoreCase(val); |
| | | } |
| | | if (ldapPort == null && ldapsPort == null) |
| | | { |
| | |
| | | adminConnectorEntry = result.getFirst(); |
| | | } |
| | | |
| | | AttributeType attrType = DirectoryServer.getAttributeTypeOrDefault(attrName); |
| | | AttributeType attrType = DirectoryServer.getAttributeType(attrName); |
| | | List<Attribute> attrs = adminConnectorEntry.getAttribute(attrType); |
| | | if (!attrs.isEmpty()) |
| | | { |