Re: Tricky problem with ldap and primary groups in AD

2012-08-03 Thread Alan DeKok
Franks Andy (RLZ) IT Systems Engineer wrote: > It's working from the rlm_exec module as intended now, not sure what I > did wrong yesterday. No idea. > I tried output_pairs=control in the module but it didn't like it, - > should that work if =config is v1 stuff? It should, I guess. As alw

RE: Tricky problem with ldap and primary groups in AD

2012-08-03 Thread Franks Andy (RLZ) IT Systems Engineer
> That works fine. However I'm still intrigued about why the other > method fails, and I also presume this method doesn't allow multiple > attribute types to be updated as per the exec-program-wait script in > the example documentation? > Yes > Maybe it's not supported? Must admit I

Re: Tricky problem with ldap and primary groups in AD

2012-08-02 Thread Alan DeKok
Franks Andy (RLZ) IT Systems Engineer wrote: > That works fine. However I'm still intrigued about why the other > method fails, and I also presume this method doesn't allow multiple > attribute types to be updated as per the exec-program-wait script in the > example documentation? Yes > Maybe

RE: Tricky problem with ldap and primary groups in AD

2012-08-02 Thread Franks Andy (RLZ) IT Systems Engineer
lists.freeradius.org [mailto:freeradius-users-bounces+andy.franks=sath.nhs.uk@lists.freeradiu s.org] On Behalf Of Alan DeKok Sent: 02 August 2012 17:19 To: FreeRadius users mailing list Subject: Re: Tricky problem with ldap and primary groups in AD Franks Andy (RLZ) IT Systems Engineer wrote: > and am assi

Re: Tricky problem with ldap and primary groups in AD

2012-08-02 Thread Alan DeKok
Franks Andy (RLZ) IT Systems Engineer wrote: > and am assigning the Reply-Message attribute the value that should be > returned from the script using > > update reply { > Reply-Message := "%{control:My-Local-Integer}" > } You can just do: update reply { Reply-Message := `/path/t

RE: Tricky problem with ldap and primary groups in AD

2012-08-02 Thread Franks Andy (RLZ) IT Systems Engineer
Hi, I've got another query to do with this issue. I'm trying to follow up running an external script that could feasibly update a control value within freeradius. It's working fine to push the variable outwards, and recording that passed variable to a file using the bash redirect >> , however I'v

Re: Tricky problem with ldap and primary groups in AD

2012-08-02 Thread Phil Mayers
On 02/08/12 14:18, Franks Andy (RLZ) IT Systems Engineer wrote: >Correct. You can however check them in "unlang" > >authorize { > ... > ldap > if (Ldap-Group == mygroup) { > # they're a member via memberof > ...

RE: Tricky problem with ldap and primary groups in AD

2012-08-02 Thread Franks Andy (RLZ) IT Systems Engineer
On 08/01/2012 10:52 PM, Franks Andy (RLZ) IT Systems Engineer wrote: > user on a specific client machine. The Ldap-Group doesn't see the > primary group as it's set to do a"memberof" lookup. Other groups are > seen fine. >Yes. Sadly this is an AD-specific behaviour, and there's no way t

Re: Tricky problem with ldap and primary groups in AD

2012-08-02 Thread Phil Mayers
On 08/01/2012 10:52 PM, Franks Andy (RLZ) IT Systems Engineer wrote: user on a specific client machine. The Ldap-Group doesn’t see the primary group as it’s set to do a“memberof” lookup. Other groups are seen fine. Yes. Sadly this is an AD-specific behaviour, and there's no way to change it.

Re: Tricky problem with ldap and primary groups in AD

2012-08-01 Thread Alan DeKok
Franks Andy (RLZ) IT Systems Engineer wrote: > 2) Check the primarygroupid attribute out by mapping it using > ldap.attrmap and attributes in the dictionary file, but then as far as I > can tell I can’t use these as checkitems within the users file. So? See "man unlang". You can write pol