20110225 reading a cookie or env variable for a php ldap search - plembo/onemoretech GitHub Wiki

title: Reading a cookie (or env variable) for a php-ldap search link: https://onemoretech.wordpress.com/2011/02/25/reading-a-cookie-or-env-variable-for-a-php-ldap-search/ author: lembobro description: post_id: 64 created: 2011/02/25 17:32:08 created_gmt: 2011/02/25 17:32:08 comment_status: open post_name: reading-a-cookie-or-env-variable-for-a-php-ldap-search status: publish post_type: post

Reading a cookie (or env variable) for a php-ldap search

Wrote a little script in php that takes an environment variable (or cookie) value and uses it to do an LDAP search. Result goes to STDOUT where they can read it using the same javascript they executed it with.

Just the code right now, will annotate with explainations later.

[code language="php"] [/code]

Copyright 2004-2019 Phil Lembo