🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2147

Re: Assistance with AccessCheck() requested

#2147
From: Andrue Cope
Date: Fri, 13 Apr 2007 08:08
33 lines
2281 bytes
Bob Gonder wrote:

> First thing I've noticed is that as soon as you hit
> 
>         while(pAttribute != NULL)
> 
> All returns leave the Connection Bound, and values allocated.

Doesn't surprise me. This is proof of concept code mostly grabbed from
the Web and hacked around a lot. That's the trouble with example code
from the web - it is nearly all ugly, poorly written stuff frequently
using hungarian notation.

So fear not - I already have plans to convert it to a nice RAII class
based solution but I first want to get it working :)

>       // AccessCheck is sensitive about what is in the SD; set
>       // the group and owner.
>       SetSecurityDescriptorGroup(psdAdmin, psidAdmin, FALSE);
>       SetSecurityDescriptorOwner(psdAdmin, psidAdmin, FALSE);

Aye but that example is /creating/ a DACL. I got my DACL from Active
Directory so I shouldn't be modifying it.

> I don't think I have login and domain details, nor MS Exchange
> (XPHome). No idea what to change to be meaningfull on my system.

Ah. You'd need to find another DACL attribute within the Active
Directory that you could query.
-- 
Andrue Cope
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <461f3a94$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <461cd310$1@newsgroups.borland.com> <remp1315lj4ontsa4qtu32e9rm0matb6rr@4ax.com> <461ceb64$1@newsgroups.borland.com> <vt8r1310fd4tgivoavro3ssdgadjomt8fr@4ax.com> <461deb89$1@newsgroups.borland.com> <5shs13l91e16l000sk5pkqq9j9fvfd9mg0@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8e080841c8729530
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Andrue Cope" <no.spam@not.a.valid.address>
Subject: Re: Assistance with AccessCheck() requested
Newsgroups: borland.public.cppbuilder.nativeapi
References: <461cd310$1@newsgroups.borland.com> <remp1315lj4ontsa4qtu32e9rm0matb6rr@4ax.com> <461ceb64$1@newsgroups.borland.com> <vt8r1310fd4tgivoavro3ssdgadjomt8fr@4ax.com> <461deb89$1@newsgroups.borland.com> <5shs13l91e16l000sk5pkqq9j9fvfd9mg0@4ax.com>
Date: Fri, 13 Apr 2007 09:08:51 +0100
User-Agent: XanaNews/1.18.1.1
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 217.207.223.34
Message-ID: <461f3a94$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1176451732 217.207.223.34 (13 Apr 2007 01:08:52 -0800)
Lines: 33
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail