[if !mso]>[if gte mso 9]>

Re: [edk2] Study User Identification codes with Nt32Pkg

Subject: Re: [edk2] Study User Identification codes with Nt32Pkg

From: "Dong, Guo" <guo.dong@intel.com>

To: "edk2-devel@lists.sourceforge.net" <edk2-devel@lists.sourceforge.net>

Date: 2012-09-21 15:46:34

Hi, Nicolas

 

pUser should not be NULL.  You can try following code:

 

  EFI_USER_PROFILE_HANDLE     User;

 

    do{
          Status = BdsLibUserIdentify(&User);
    }while(EFI_ERROR(Status));

 

Thanks,

Guo

From: nicolas [mailto:nicolas1968@163.com]
Sent: Thursday, September 20, 2012 3:02 PM
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] Study User Identification codes with Nt32Pkg

 

 hi, Guo:

I want to test user identification sample code with Nt32Pkg.

I added these codes at line 401 in Nt32BdsLib/BdsPlatform.c as below:

    do{
       pUser = NULL;
 Status = BdsLibUserIdentify(pUser);
    }while(EFI_ERROR(Status));

 

After recompiled Nt32Pkg, run Nt32Pkg, it hanged.

It seems need to create a default user profile, so how to create it?

 

best wishes,

 


: Dong, Guo [mailto:guo.dong@intel.com]
: 2012920 13:21
: edk2-devel@lists.sourceforge.net
: Re: [edk2] Study User Identification codes with Nt32Pkg

 

Hi, Nicolas

 

From the log, Identify()  in User Manager Protocol is not properly invoked.

You can directly invoke BdsLibUseridentify() after console is ready in NT32BdsLib/BdsPlatform.c as below:

 

do {

Status = BdsLibUserIdentify (User);

} while (EFI_ERROR (Status));

 

Thanks,

Guo

 

From: nicolas [mailto:nicolas1968@163.com]
Sent: Thursday, September 20, 2012 11:32 AM
To: edk2-devel@lists.sourceforge.net
Subject: Re: [edk2] Study User Identification codes with Nt32Pkg

 

 hi, Eric:

I could find an "User Manager" item in Device Manager.

But i still could Not go into this "user manager" setup ui.

--------------------------

The command line tip info:

... ...

InstallProtocolInterface: 348C4D62-BFBD-4882-9ECE-C80BB1C4783B 0
InstallProtocolInterface: 348C4D62-BFBD-4882-9ECE-C80BB1C4783B 0
Error: current user does not exist!

 ... ...

 

Could you describe your steps explicitly?

 

best wishes,


: Dong, Eric [mailto:eric.dong@intel.com]
: 2012920 11:05
: edk2-devel@lists.sourceforge.net
: Re: [edk2] Study User Identification codes with Nt32Pkg

 

Hi Nicolas,

 

I verify the User Identification base on the tip code, it works. Do you base on the tip code to do your patch?

 

If yes, could you supply the patch you used, I can help to check it with your patch.

 

Thanks,

Eric

From: nicolas [mailto:nicolas1968@163.com]
Sent: Wednesday, September 19, 2012 5:45 PM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] Study User Identification codes with Nt32Pkg

 

hi, experts:

Sorry for sent it again!

------------------

I added User identification related drivers into Nt32Pkg.dsc.

I followed these instructions described in this webpage:

http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=How_to_Enable_Security

 

I could find an "User Manager" item in Device Manager.

But i could Not go into this "user manager" setup ui.

 

best wishes,