comp.lang.ada
 help / color / mirror / Atom feed
* Windows LDAP group-user checking in Ada 95
@ 2012-02-16 20:38 Rego, P.
  2012-02-16 20:55 ` Dmitry A. Kazakov
  2012-02-21 16:51 ` Pascal Obry
  0 siblings, 2 replies; 8+ messages in thread
From: Rego, P. @ 2012-02-16 20:38 UTC (permalink / raw)


I need a function in Ada 95 (or in C, which a pragma import can be used with no problem - I must not use the -gnat05 switch) to check if a user is present in a LDAP network group.

For getting the username, I have the function (in Ada 95):

function GetUsername return String is
   function GetEnv (Variable : String) return Interfaces.C.Strings.chars_ptr;
   pragma Import (C, GetEnv, "getenv");

   Command : constant String := "USERNAME";
   Answer_Ptr : constant Interfaces.C.Strings.chars_ptr := GetEnv (Command);
   Answer : constant String := Interfaces.C.Strings.Value (Answer_Ptr);
begin
   return Answer;
end GetUsername;

So I need a function Check_LDAP_Authentication (Username : String) return Boolean. How can I do it?

In stackoverflow someone suggested AWS or Savanna, but I think include them in the app could also include an unnecessary complexity to the system, because I don't have to use other network features, just a network group checking. 



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-02-23 17:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-16 20:38 Windows LDAP group-user checking in Ada 95 Rego, P.
2012-02-16 20:55 ` Dmitry A. Kazakov
2012-02-21 14:34   ` Rego, P.
2012-02-21 14:57     ` Dmitry A. Kazakov
2012-02-23 12:43       ` Rego, P.
2012-02-21 16:51 ` Pascal Obry
2012-02-23 12:58   ` Rego, P.
2012-02-23 17:44     ` Pascal Obry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox