[Klicken Sie auf den Stern, um dieses Thema zu verfolgen] how to differentiate inside...

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


- today I  have a PAM related question
  - lets say we have two linux boxes A and B
  - box B runs an Openssh server

- I have two use cases:
    - UC1: ssh login from box A to box B
    - UC2: transfer files from box A to box B
         using scp

- now my question:
  - I have to extend the PAM handling for box B in
   a way that I can distinguish at PAM level between
   use case UC1 and UC2 (need specific handling inside PAM)

- currently I have no idea how to find out inside my PAM code
  if the code runs UC1 or UC2
- my first plan was to differentiate via
    getenv("SSH_CLIENT")   and
  but both are "null" at the time I need the info

  any other idea ?


Site Timeline