July 2009 Entries
Pasta acciughe e pan grattato
Algarve, Portugal
This is a simple but tasty recipe, made with simple and "poor" ingredients.

Ingredients (for four people):
- 160-200g of pasta (spaghetti, bucatini or linguine)
- 8 tablespoons of grated bread
- 8 fillets of anchovies
- 4 tablespoons olive oil
- some parsley

Cook the pasta in boiling salted water as described in the other pasta recipes.
While the pasta is cooking put the olive oil in a pan and heat it.
Add the anchovies and let them cook for a while. Then, using a wood spoon, crush them until they disappear inside the oil.
Reduce the heat a bit and add the bread. If the mix of oil and bread is getting too solid, add a couple of tablespoons of the pasta's water.
Drain the pot and put pasta inside the pan, mixing it well with the bread and oil sauce and with some finely chopped parsley.
Posted On Friday, July 17, 2009 6:59 AM | Comments (0)
Some help about AuthHelp
The Lake of Lugano
Some of the servers provided with Windows CE implement user authentication and can grant different level of access to different kinds of users or no access at all to unauthorized people.
You may use the same mechanism to grant access to your device features from your main application or from your own custom remote interface or WEB-based UI.
First of all you should add the NTLM authentication service to your OS image.
This will allow you to access the NTLM API and the NTLMSetUserInfo function.
Using this function you can create a new user and set his own password.
Users may be added to groups, allowing or preventing them to access some features.
The NTLM API is documented inside the Platform Builder help system.
Don't forget that your platform must be able to save the registry in a permanent way (hive-based registry on a mass-storage device, usually) to keep the user that you have created even after a cold boot.
Using the NTLM API you can create users and groups that can be associated to virtual directories for the FTP server, for example, or allowed to access the files and directory that you share using the SMB service.
But how can you use that same configuration inside your own application or server?
You need to use AuthHelp API. The functions of this helper API are declared inside authhlp.h and implemented in authhlp.lib, you can find those files under the PUBLIC\COMMON\SDK\INC and LIB subfolders of your Windows CE source root.
If you find the header file you have also found most of the documentation about this API...
UnderĀ  the \PUBLIC\SERVERS\SDK\SAMPLES directory you will find the implementation of telnet, FTP, HTTP and other Windows CE servers, those servers are also a good sample of how you may use the AuthHelp API inside your own software.
The first function you'll have to call is AuthHelpInitialize. You can call it when your application or service starts. A call to AuthHelpUnload will release all the resources used to manage user authentication (it's a good idea to call it only when you are sure that no more user authentication operations will be performed).
You'll have to use the AuthHelpValidateUser function to check if the username and password that your user entered are valid on your device.
There are two other versions of this function:
AuthHelpValidateUserA that accept username/password pairs in ASCII and AuthHelpValidateUserW that accepts unicode strings.
Using those functions inside your code you can use a single users/groups database to validate access to different parts of your system. This will avoid the need of keeping multiple copies of the username and password authentication information on your device or (worse) the need to configure different user accounts to access your system using different user interfaces.
Other AUTHHLP APIs handle ACLs. An ACL is a list of users and/or groups that are allowed or not allowed to access some specific resource and it's written using a specific syntax described here:
FTP Server User List
The IsAccessAllowedEx API (also with A and W "variants" for ASCII or UNICODE) allows you to check if a specific user is included in an ACL. This will allow you to configure access to some application features using ACLs in the same way you can use them to allow/deny access to specific FTP directories.
Posted On Friday, July 17, 2009 6:45 AM | Comments (0)
Toradex logo

Cookies in Use
Tag Cloud