From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,87e4cff27c09752d,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.213.68 with SMTP id nq4mr4691709pbc.2.1329424734650; Thu, 16 Feb 2012 12:38:54 -0800 (PST) Path: wr5ni33059pbc.0!nntp.google.com!news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: "Rego, P." Newsgroups: comp.lang.ada Subject: Windows LDAP group-user checking in Ada 95 Date: Thu, 16 Feb 2012 12:38:54 -0800 (PST) Organization: http://groups.google.com Message-ID: <29156956.1684.1329424734114.JavaMail.geo-discussion-forums@yndy9> NNTP-Posting-Host: 201.7.145.1 Mime-Version: 1.0 X-Trace: posting.google.com 1329424734 14282 127.0.0.1 (16 Feb 2012 20:38:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 16 Feb 2012 20:38:54 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=201.7.145.1; posting-account=TRgI1QoAAABSsYi-ox3Pi6N-JEKKU0cu User-Agent: G2/1.0 X-Google-Web-Client: true Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-02-16T12:38:54-08:00 List-Id: 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.