From: "Rego, P." <pvrego@gmail.com>
Subject: Windows LDAP group-user checking in Ada 95
Date: Thu, 16 Feb 2012 12:38:54 -0800 (PST)
Date: 2012-02-16T12:38:54-08:00 [thread overview]
Message-ID: <29156956.1684.1329424734114.JavaMail.geo-discussion-forums@yndy9> (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.
next reply other threads:[~2012-02-16 20:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-16 20:38 Rego, P. [this message]
2012-02-16 20:55 ` Windows LDAP group-user checking in Ada 95 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox