Le 2013-04-19 15:59, Jason 'XenoPhage' Frisvold a écrit :
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 04/19/2013 02:06 PM, Fabrice DURAND wrote:
>>> There is a better way to do that:
>>> Tmp-String-0 :=
>>> "%{ldap:ldap:///dc=domain,dc=com?Description?sub?uid=%{User-Name}}"
>>> Will return the Description attribute assigned to the username.
> Description being an LDAP attribute, correct? I need to make the
> network decision based on group membership, so I'll poke around a bit
> and see what I can come up with.
Yep like cn
Tmp-String-0 = Description value for the user User-Name
>
>>> In fact create some category in packetfence and in
>>> radius/custom.pm add something like that:
> Are categories something I can create on the fly, or do they need to
> be added to a config file somewhere?
In the packetfence configuration interface create some new categories
>>> Then after in the vlan/custom.pm uncomment the getnormalvlam
>>> function and add something like this:
> This looks simple enough, thanks. :)
>
> - --
> - ---------------------------
> Jason 'XenoPhage' Frisvold
> [email protected]
> - ---------------------------
>
> "Any sufficiently advanced magic is indistinguishable from technology.\"
> - - Niven's Inverse of Clarke's Third Law
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.13 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iEYEARECAAYFAlFxoggACgkQO80o6DJ8Uvn/XACfWsVus6rIum5ws7hh9ZUHRsXb
> ygQAnRQ+mYr0x6gdg3IHJU+lDsOlyfze
> =aDOd
> -----END PGP SIGNATURE-----
Regards
Fabrice
--
Fabrice Durand
[email protected] :: +1.514.447.4918 (x135) :: www.inverse.ca
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence
(http://packetfence.org)
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users