directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <kayyag...@apache.org>
Subject Re: [ApacheDS] Disable insecure access to server?
Date Mon, 13 May 2013 14:57:40 GMT
try after adding

ldapServer.setConfidentialityRequired(true);



On Mon, May 13, 2013 at 8:23 PM, Ute Schröder <us@crown.de> wrote:

> Hi,
>
> I've configured my embedded apache DS server to use SSL or TLS, like this:
>
>
> [...]
> LdapServer ldapServer = new LdapServer();
> ldapServer.**setDirectoryService(**directoryService);
> ldapServer.setKeystoreFile(**keystoreFile);
> ldapServer.**setCertificatePassword(**certificatePassword);
> StartTlsHandler handler = new StartTlsHandler();
> ldapServer.**addExtendedOperationHandler(**handler);
> List<Transport> transports = new ArrayList<Transport>();
> // add plain port
> TcpTransport ldapTransport = new TcpTransport(port);
> transports.add(ldapTransport);
> // add ssl port
> ldapTransport = new TcpTransport(sslPort);
> ldapTransport.setEnableSSL(**true);
> transports.add(ldapTransport);
> ldapServer.setTransports(**transports.toArray(new \
>     Transport[transports.size()]))**;
> [...]
>
>
> But it still accepts and processes unencrypted/plain requests. How can I
> make the server NOT answer these?
>
> Thank you very much for your help!
>
> Ute
>



-- 
Kiran Ayyagari
http://keydap.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message