Class LdapResponseHandler

java.lang.Object
io.milton.ldap.LdapResponseHandler

public class LdapResponseHandler extends Object
Author:
brad
  • Constructor Details

  • Method Details

    • isLdapV3

      public boolean isLdapV3()
    • sendRootDSE

      public void sendRootDSE(int currentMessageId) throws IOException
      Send Root DSE
      Parameters:
      currentMessageId - current message id
      Throws:
      IOException - on error
    • sendEntry

      public void sendEntry(int currentMessageId, String dn, Map<String,Object> attributes) throws IOException
      Throws:
      IOException
    • sendErr

      public void sendErr(int currentMessageId, int responseOperation, Exception e) throws IOException
      Throws:
      IOException
    • sendClient

      public void sendClient(int currentMessageId, int responseOperation, int status, String message) throws IOException
      Throws:
      IOException
    • sendResponse

      public void sendResponse() throws IOException
      Throws:
      IOException
    • sendBaseContext

      public void sendBaseContext(int currentMessageId) throws IOException
      Send Base Context
      Parameters:
      currentMessageId - current message id
      Throws:
      IOException - on error
    • sendComputerContext

      public void sendComputerContext(int currentMessageId, Set<String> returningAttributes) throws IOException
      Send ComputerContext
      Parameters:
      currentMessageId - current message id
      returningAttributes - attributes to return
      Throws:
      IOException - on error
    • getServiceInfo

      protected String getServiceInfo()
    • getCurrentHostName

      protected String getCurrentHostName() throws UnknownHostException
      Throws:
      UnknownHostException
    • dumpBer

      public void dumpBer(byte[] inbuf, int offset)
    • addIf

      protected void addIf(Map<String,Object> attributes, Set<String> returningAttributes, String name, Object value)
    • sendBindResponse

      public void sendBindResponse(int currentMessageId, int status, byte[] serverResponse) throws IOException
      Throws:
      IOException