Create user on Ubuntu from Windows in C# [closed] - c#

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm already asked this question, but how I was told, I need to create a proggram without of using ssh clients. How do I say I need to write pure C# program using only different .dll's. And I don't know how I can do it.

If you want to implement a proper solution you want to use OpenLDAP.
You can then use C# to query the LDAP database and use that to create accounts remotely.

I don't think it can be done because you want to gain remote access to the linux system you need to use ssh to gain access to the command line to make your users. Look into ssh there are some good clients for windows that allow you this access and I am sure I found some tutorials on how to make a ssh program a while back.

So since you can't use ssh, it is time to get creative!
I'm assuming you have admin rights. Let me know if you don't.
Set up a database (MySQL) on the Ubuntu box, and create a db/table with the new users to be created. You can insert a row from C# into that table.
Set up a cron job, or some other application (in python, c++, w/e you like) that would periodically check for a new row in that table. If it finds one, extract the data, create the user based on that data, and remove the row. This would have to run as root so BE CAREFUL!
I have done something like this before and it is messy and convoluted, but it works, i guess.

Related

Client Server Application for daily report system [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I want to make one application in C# or VB.net which allow users(Clients) to fill there daily reports using there user account and allow admin (Server) to manage theme (i.e. Add, View, Edit Reports).
I want to make that kind of application.
Vague questions get vague answers. A very basic (and slightly tongue-in-cheek) strategy:
Create a web-page for presenting an interface where the users can enter or upload their reports (maybe have a look at Asp.Net MVC?)
Create a simple back-end system (maybe a service of some kind, using for instance WCF?) to accept and store incoming reports, and retrieve and return existing reports. This should include a database of some kind for storing the reports.
Connect your web-page to the back-end system, and use the former as an interface to the latter.
Create one or several AD groups to provide authentication throughout these systems and grant users the appropriate levels of access.
Once you have got started on this and have tried something, you can ask more precise questions here, to which it will be easier to give more constructive answers.

Developing .Net app and embed in CD [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have an application (Stand alone app) , that basically reads & writes data with UI . And i have to embed it in CD and make it auto-run.
But i have few confusions , needs your help for the same
Whether to choose Windows or web application of .Net?
Which Data Storage mechanism is preferable ?
How to handle the DB part , since app will be CD how to write the data.
Thanks
You can't run a web application from a CD. You probably want to use a Windows application.
You seem to be assuming a database, so I'd guess your storage mechanism is to use a database. Look at the data you need to store and how you need to use it, and make a decision based on that.
You can't write to a CD. You need to either write to a known location (say, the AppData folder) or ask the user to specify one in your application.
Also worth noting: you can't auto-run an application any more (since Windows 7, and I believe back-ported to Vista). The best you can do is have the auto-run dialogue include an option to run your application.

Accessing SQL Server remotely and generate report [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Actually I am bit of confused right now and need some guidance. I have been offer a project to create web portal to generate report. Scenario is something like this,
Client has a business and he need to check the report of hourly sale. What should I do, should I put the SQL Server online or is there any other way to excess server database remotely. I have no experience in creating web portal, how should I start doing it.
Can anyone guide me in proper manner? I have experience in C#.NET using Visual Studio 2010.
Thanks.
This suggestion is without completely understanding your situation but...
There is an open source package called nopcommerce which has an inventory system, sales and other canned reports and a basic CMS built in.
It also includes all source code in C# and works with SQL Server.
It's generic enough to use for most retail scenarios and going this route will save you TONS of time trying to start from scratch.
I would think you could just download, install and customize and get 95% of everything you need from it.

c# how do i programmatically create a replica [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I am developing winform app that runs in two differen pc's
I want to create a replica and get the changes over the internet
How can i do that?
& how can I create replica and sync it using C#?
any ideas will be appreciated
I assume that you are talking about replicating changes in one ms-access "database" such that two instances stay in sync, As such, you'd be better off abandoning ms-access and upscaling to a single centralised database.
this sounds like a bad idea all around.
The common patterns apply;
use GUID id's,
send offline datasets,
cross fingers and look for a job that allows you to use other free tools, suited for the job http://www.microsoft.com/sqlserver/en/us/editions/express.aspx
Avoid conflict resolution (don't edit the same entities on both ends)
Edit
PS. after visiting hamsaweb.net; if you need this to be web deployable on a shared host:
How to deploy SQL CE 4 CTP to shared hosting?

using RFID reader in a asp site [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I have create a web site and I need to read data which is created by rfid reader.
this device has some dll which can be use in windows application.
I want to know that is there any way to use those dll in my site in order that I read data from RFID reader? if not is there any way to use that device in web site?
Reading dll's on a clients machine is seen as big security risk and there is not really allowed. It is possible to use ActiveX controls (basically dll's compiled into cab files) which the user can then enable and download, this then will allow you to talk to the ActiveX control which talks to the dll's, which talks to the RFID.
I would rather suggest you use something like Silverlight with out of browser mode, which you can run on the client machine with elevated privilages, then you can talk to com object.
A much better way to go.
ASP.NET application is Server side application with specific security restrictions applied.
So basically, as the question is very generic so my answer too: you can do it, it's enough to be sure that your architecture fits yuor ASP.NET security/permission requirements.
Cause I immagine DLL is kind of COM component where you push signals and read alphanumeric characters specifying your RFID (passive or active) identifier.
Regards.

Categories