Citrix, MSGina.dll and Custom Problem

Posted on 2006-05-23
Last Modified: 2008-03-10

I have written a new custom gina that passes the commands onto the original microsoft gina, and now need to install this gina on a citrix machine.  However citrix also have there own custom gina. How can i get mine GINA to work with the Ctrix Gina.

i.e  Citrix Gina to call into MycustomGina to call into MSgina.dll

Please help?
Question by:lee_ingram
    LVL 8

    Accepted Solution

    Are you sure Citrix Gina calls into MSgina.dll at all? If it does, you should be able to achieve this by:

    - letting MycustomGina export the exact same functions as MSgina
    - rename MSgina.dll to e.g. OriginalGina.dll and MycustomGina.dll to MSgina.dll
    - load OriginalGina.dll dynamically so you can rename the functions in it to avoid collision with the ones you have in your Gina (with the exact same names).

    thereby tricking the Citrix Gina into thinking your Gina is the original one.
    LVL 1

    Author Comment


    I have tried what you have suggested, and for some reason it did not appear to work.  I have however fixed the problem.  

    It was either one of the two things i changed which were:

    1)... I placed the custom gina first and then passed all calls through to the Citrix Gina, then citrix onto the orginal MSGina.dll
    2).. I updated the dispatch table to support version 1.4 of the MSgina.  

    Thanks for you help.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
    Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
    The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
    The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now