directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny (Jira) <>
Subject [jira] [Commented] (DIRSERVER-2332) Unexpected Session Termination (nslcd - libpam-ldapd
Date Tue, 22 Sep 2020 08:54:00 GMT


Emmanuel Lécharny commented on DIRSERVER-2332:

Hi !

So the received PDU in a more readable way gives  :

0x30 0x81 0xCB 
  0x02 0x01 0x02 
  0x63 0x81 0x91 
  0x04 0x2C 
    'd' 'c' '=' 'm' 'i' 'n' 'i' '-' 
    'c' 'l' 'u' 's' 't' 'e' 'r' ','
    'd' 'c' '=' 'c' 'o' 's' 'y', ',' 
    'd' 'c' '=' 'f' 'h' '-' 'm' 'u' 
    'e' 'n' 's' 't' 'e' 'r' ',' 'd' 
    'c' '='' 'd' 'e' 
  0x0A 0x01 0x02 
  0x0A 0x01 0x00 
  0x02 0x01 0x00 
  0x02 0x01 0x00 
  0x01 0x01 0x00 
  0xA0 0x2E 
    0xA3 0x19 
      0x04 0x0B 
        'o' 'b' 'j' 'e' 'c' 't' 'C' 'l' 
        'a' 's' 's' 
      0x04 0x0A 
        'p' 'o' 's' 'i' 'x' 'G' 'r' 'o' 
        'u' 'p' 
    0xA3 0x11 
      0x04 0x09 
        'g' 'i' 'd' 'N' 'u' 'm' 'b' 'e' 
      0x04 0x04 
        '9' '9' '9' '9'
  0x30 0x22 
    0x04 0x06 
      'm' 'e' 'm' 'b' 'e' 'r' 
    0x04 0x02 
      'c' 'n' 
    0x04 0x09 
      'm' 'e' 'm' 'b' 'e' 'r' 'U' 'i' 'd' 
    0x04 0x09 
      'g' 'i' 'd' 'N' 'u' 'm' 'b' 'e' 'r' 
  0xA0 0x32 
    0x30 0x30 
      0x04 0x19 
      0x04 0x13 
        0x30 0x11 
          0x30 0x0F 
            0x04 0x06 
              'm' 'e' 'm' 'b' 'e' 'r' 
            0x30 0x05 
              0x04 0x03 
                'u' 'i' 'd'

I spare you the details, but what is important is the end : {{''}}.
This is the control OID, and a quick look on The Internet gives :

We don't support this control in ApacheDS (

However, you should never get a NPE. The cause is those two lines of code :

           ControlFactory<?> factory = container.getControlFactory();
            factory.decodeValue( control, value.getData() );

At this point, I think the {{value}} is null (to be double checked).

We can add some check for such a use case and return a more accurate response.

> Unexpected Session Termination (nslcd - libpam-ldapd
> ----------------------------------------------------
>                 Key: DIRSERVER-2332
>                 URL:
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: asn1, core, ldap
>    Affects Versions: 2.0.0.AM26
>         Environment: - Raspbian Clients with nslcd
> - Apache Studio in Windows
> - ApacheDS running in Docker (self built image)
>            Reporter: D. Tervooren
>            Priority: Minor
>              Labels: NullPointerException, ldap, mina, nslcd
>         Attachments: Dockerfile.txt, capture_nslcd.pcap, capture_studio.pcap, debug.log
> I'm currently playing around with a small raspi-cluster - the intention is to have unified
LDAP login via libpam-ldapd and NFS mounted home-dirs.
> t
> While setting up libpam-ldapd together with apacheds worked like charm - during some
tests i noticed, that secondary group names don't work.
> Tinkering around with the log-levels revealed a NullPointerException
> _at
> I tried to isolate the cause of the error to build a test-case but while finding my way
through the code-base I stranded in the mina and ldap-api repo.
> I'm willing to provide every information that is needed to dive deeper into this issue.
> A Capture (pcap) of the ldap_search from nslcp aswell as (basically) the same search
from studio (which suprisingly works just fine) are attached aswell as the DEBUG log which
also contains the HEX for the network request.

This message was sent by Atlassian Jira

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message