ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am working on a project that captures the data from the camera and stores in the harddisk. in this project i am faced with logging with username and password to the linux machine that does all this work. the logging is to be done from machine that has windows and a small application is developed using visual basic.
In this application one is supplied with login form. so when one enters his /her information then only he can log in to the linux machine.
Now the real problem is the user authentication. how can i integrate the user's information in linux machine to my program. I am using C programming language for the linux machine.
Is there any sites or tutorials or forums for user management using c programming language..
So, if I understand your question correctly, the camera, its drivers and the application that grabs and stores images from it are to run on the Linux host, but users that access the camera application will be using Windows. You want to know how to control and log data from the linux hosted camera application through a Windows user interface.
If this is a correct summary, then I would suggest the following: run an X server (see list at http://www.rahul.net/kenton/xsites.html#XMicrosoft) and SSH client on your Windows system(s), and simply access the Linux host application that way. Then you only have to develop code on one platform, and any client with X can access it. This also solves your authentication problem, by using the existing and well known SSH/SSL system.
Alternatively, you will have to write a client-server application, where the server runs on the Linux host, and the client runs on the Windows hosts. This is probably best done using TCP or UDP to pass messages between the host applications. Your application can be free to define whatever protocol you wish to devise for this purpose. I don't think you provided enough detail for anyone to give a very detailed reply.
I have developed an application in linux that receives RTSP data from IP camera, and saves to Hard disk. This hard disk do hot have any filesystem. i have devised my own method of writing to Hard Disk. and all is going well.
This program is written in C and run on an embedded device which uses linux as a host.
Only one problem is left.the User authentication. I was thinking of integrating the users of the host linux to my program. so when users log in to my program, the user is logged to the linux machine. Is it possible?
Another option is just to create the user management in my program, devise my own protocol. but that is the last option for me.
Thanks for the suggestion.
PS: my program will run as daemon in linux host
PS: Sorry for my english.
So, your camera driver/daemon on the linux host is supplying all of the services required to access the data? If so, there are a few similar existing systems to use a model: SSH & all of the related family of services (sftp, scp, etc.), X, the older unencrypted family of remote access applications (rsh, rlogin, ftp, etc), and HTTP. Each of these systems provide their own authentication methods. Since all of these are open source protocols, there is code available for inspection and/or porting to your own application.
As I understand it, the SSL/SSH protocol is designed as an API to make it possible to drop into new applications such as yours. Using a documented library & protocol such as that has the advantage of being compatible with existing tools, simplifying your development process. SSL also gives you a relatively secure system.
Hope this helps.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.