/    Sign up×
Community /Pin to ProfileBookmark

OK I have this great little page made that hits each of our Active Directory ldap directories to see if a username and password match what was submitted. Now I have the task of replacing all my pages that are currently authenticating against a database.

The auth page basicly hits the ldap directory and sets a counter to 0 or 1, 1 allowing access 0 not allowing access. Which brings me to my questions.

  • 1.

    If I do an include(auth.php) can I pass variables around as if both pages where one? Or would I need a post or get method?

  • 2.

    If I have to move a variable from one page to another, what is the most secure method? (hidden input using post?)

  • to post a comment
    PHP

    1 Comments(s)

    Copy linkTweet thisAlerts:
    @Doc_ThirstauthorAug 23.2006 — I guess I should also mention I'm also using the above code to update the password stored in the database until I can get all the apps based on it updated. What is the perferred method of encryption for this. I would want to avoid displaying the password in plain text more then anything. So maybe just converting it to ansi would suffice. Too risky?
    ×

    Success!

    Help @Doc_Thirst spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.20,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...