Is it possible to add a user in Win NT using Java?
Hi,
Is it possible to add a new user to Win NT using Java, assuming that the user running the application is an administrator?
If it can't be done in Java, can anyone point me in the right direction to research this?
I appreciate your help.
Regards,
Liam.
Okay, I might have a solution already.
I'm going to try using JIntegra from www.linar.com as a COM bridge, to access the Win32 API function NetAddUser.
Regards,
Liam.
Similar Messages
-
Is it possible to add a user using the RESTful Web Services SDK
Others have asked before about user management features in the RESTful Web Services SDK. However I can find no answers or links which provide an answer to the question 'Is it possible to add a user using the BI 4.1 SP2 RESTful Web Services SDK'?
Any help would be appreciated.
Regards,
SteveHi Steve
Unfortunately, not possible. The BI RESTful can only get "stuff" that is already there. I suppose this would fall under some sort of "Object Creation" API and that is not there. Yet. Rumors abound, but nothing firm. Just as a BTW.; the Business Intelligence platform RESTful Web Service Developer Guide 4.1 is here:
http://help.sap.com/businessobject/product_guides/sbo41/en/sbo41_bip_rest_ws_en.pdf
SAP Web Intelligence RESTful web service SDK User Guide, SAP BusinessObjects Business Intelligence platform 4.1
SAP Crystal Reports RESTful web services - SAP Crystal Reports RESTful web services
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
Is it possible to add a user or license for just one app?
I have a complete Adobe Creative Cloud license. Is it possible to add a user or license for just one app? What are the monthly costs?
Cloud Plans https://creative.adobe.com/plans
-and subscription terms http://www.adobe.com/misc/subscription_terms.html -
How to print/list all the groups/users present in Weblogic using Java code
Hi,
Weblogic version : 11.1.1.5
How to print/list all the groups/users present in Weblogic using Java code
I want to make a remote connection to Weblogic server and print all the users/groups present in it.
I have gone through the below mentioned site, but I cannot use the same approach since most of the API' are deprecated for example "weblogic.management.MBeanHome;"
http://weblogic-wonders.com/weblogic/2010/11/10/list-users-and-groups-in-weblogic-using-jmx/
Thanks in advance,
Edited by: 984107 on 05-Feb-2013 05:26
Edited by: 984107 on 05-Feb-2013 22:59see this http://www.techpaste.com/2012/06/managing-user-groups-wlst-scripts-weblogic/
Hope this helps. -
Is It Possible to store an entire file in database using java?
Hi All,
I am new to Programming. please help he out Is It Possible to store an entire file in database using java? is possible, can u tell me the way to make this success? Thank you in advance.Thanks PhHein
i got that application. i stored one file in db, and i displayed that in browser. thank u very much. -
Is it possible to add a user to a role at run-time?
basically I need to be able to add a user to a role programmatically before the role-based content is displayed to the user.
Example: I have a role called 'Manager' created in the portal. When a user logs on, I detect that the user has the attribute 'job title' = 'Manager' so I add the user to the 'Manager' role and the portal shows the content for the 'Manager' role.Hi Umesh,
The assigning and unassigning of the users from the roles can be made dynamic using the IRole, IRoleFactory API's. The Blog below explains how users can be assigned or unassigned to a role programatically.
Restricting usage of iViews and Pages
Make some modifications to fit your requirement....
Hope this helps.
Regs,
jaga -
Add multiple users to AD Group using AddRange
All,
I am trying to add multiple users to an AD security group using AddRange method but no luck.
Reason why I am using AddRange method is, the memberlist is pretty big (30K users) and Quest or MSFT AD Cmdlets taking plenty of time to add them.
I am following the instruction per http://msdn.microsoft.com/en-in/library/ms180904(v=vs.80).aspx but no luck.
Code snippet:
$groupmembers = Get-Content C:\Temp\MemberDN.txt
$getgroup = [ADSI]"LDAP://CN=MYADGROUP,OU=GROUPS,DC=CONTOSO,DC=COM"
$getgroup.properties.member.AddRange($groupmembers)
#$getgroup.properties["member"].AddRange($groupmembers)
$getgroup.CommitChanges()
#$getgroup.SetInfo()
I tried using ADSPATH as well but no luck.
Any help or pointers are appreciated.
Thanks.Hi PSPR,
I agree with David .
Also I tested that on my server2012r2 , please refer to :
$user="cn=test1,cn=users,dc=test,dc=com","cn=test2,cn=users,dc=test,dc=com"
$obj=[adsi]"LDAP://cn=test,cn=users,dc=test,dc=com"
$obj.member.addrange($user)
$obj.commitchanges()
Hope it helps
Best Regards
Elton Ji
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
I want to download windows on the guest identity, so that I can play pc games (which only work on windows), but I dont want to have to use windows on my regular user identity. Does anyone know if it will only download for the one user?
no user is forced to use Windows.
-
Saving the password of a user in active directory using java
Hello, i am trying to use java to build a class that creates a user in Active directory 2012.But the problem is that when the user is created the password is not being saved.
Can anybody help on this knowing that i tried to save in the fields userPassword and unicodePwd.
Thanks.DirContext ctx = new InitialDirContext(pr);
BasicAttributes entry = new BasicAttributes(true);
String entryDN = "cn=CharbelHad,ou=test users,dc=test,dc=dev";
Attribute cn = new BasicAttribute("cn", "ChHad");
Attribute street = (new BasicAttribute("streetAddress", "Ach"));
Attribute loginPreW2k = (new BasicAttribute("sAMAccountName", "[email protected]"));
Attribute login = (new BasicAttribute("userPrincipalName", "[email protected]"));
Attribute sn = (new BasicAttribute("sn", "Chl"));
Attribute pwd = new BasicAttribute("unicodePwd", "\"Ch@341\"".getBytes("UTF-8"));
Attribute userAccountControl = new BasicAttribute("userAccountControl", "512");
Attribute oc = new BasicAttribute("objectClass");
oc.add("top");
oc.add("person");
oc.add("organizationalPerson");
oc.add("user");
// build the entry
entry.put(cn);
entry.put(street);
entry.put(sn);
entry.put(userAccountControl);
entry.put(pwd);
entry.put(login);
entry.put(loginPreW2k);
entry.put(oc);
ctx.createSubcontext(entryDN, entry); -
Is it possible to retrieve Address Book from MS Exchange using Java IMAP
My JSP is required to display all valid email address to end user.
Is there any way i can retrieve Name & Email information (Address Book) from M.S Exchange server using Java implementation of IMAP protocal?
I believe M.S Exchange server is IMAP compatible so i should'nt be required to do any configuration on mail server side ?
If somebody has recently done this please share the implementation details , thanks,.
Please also let me know how to attach duke dollars with this thread.No, because that Java implementation you refer to is completely oriented towards handling messages. The Exchange address book has nothing to do with that.
-
Possible to add a user that is just iChat?
Is is possible to setup an account in the system whose only purpose is to be an iChat client? Or should I just make a user and restrict its access to iChat?
Hi again
The ichat server requires an entry in the directory for validation of password, services, etc. You need to make a users and restrict them to iChat services only.
Tim -
Is it possible to add multiple iPhone 6's tonight using the Edge program?
I want to add several new iPhone 6 lines to my account tonight using the Edge program, but it seems to only allow one phone to be added this way. Is it at all possible to do this online or will I need to go in store to accomplish this (and possibly miss out on getting in on the initial release)?
Great question paulterp. We currently don't have information regarding this phone and the Edge program. I'm sorry. We wont have more information until the 12th. Please stay updated here http://bit.ly/n5snpq .
KinquanaH_VZW
Follow us on Twitter @vzwsupport -
How i get user info from ldap using java after authenticating user with SSO
Hi
I have one jsp/bean application as a partner application with SSO.
It works fine.
Now i need to get other attributes of user from LDAP who has logged into the application through SSO.
using SSO java APIs i only get username, userDN, subscriber info.
To get user's other attribute i have to user LDAP APIs for that i have to create on Directory Context, for the same i need userpassword.
so here i my question, how do i get user password after he has logged in thro SSO.
regards..
and thanking u in advance
samirValentina,
there's no way to get the password value from the directory (it's one way). Of course you can get the hashed (MD4,MD5,SHA-1) base64 encoded value (i.e. the value you see in OiD) but not the 'password'.
--Olaf -
How to add data in datatable by popup using java script?
Hi
I have a datatable in my jsp page. Onclick of button i am opening a popup window. On the popup window I am haveing list of data. I want to select data by checking the checkbox and the selected data need to be populated on the datatable. I am not getting any clue to proceed.
Can anyone suggest me any solution for this. Its very urgent.
Regards
Rishab.The following article might provide new insights: [Using datatables|http://balusc.blogspot.com/2006/06/using-datatables.html]. Checkout the chapter titled "Select multiple rows". Make use of this knowledge to select specific rows in the popup and gather them all in the bean.
Additional note: don't use Javascript to read/add/save data. It's pointless. Only use JS to open the popup window pointing to a JSF page with the datatable inside.
Edited by: BalusC on 14-mei-2008 16:36 -
Hi floks,
I had i trickey situation in which my application is creating the locks over the tables in the
DB(SQL server 2000) . Iam using Struts frame work 1.1 + jsp in our application.
Iam bit worried wether the locks can be removed with the java code which suits the Struts
framework...
Please help me with proper code snippet to over come the situation.
Thanks in anticipation
Shiviam looking to make a query in such a way that it can be triggered with
java code whish removes all the locks
is it possible...?
i tried the nolock situation even i cant get the situations
and the query where it is getting locked as our application is big enough with
numerous number of queries
Maybe you are looking for
-
Can't open ANY photos in Photoshop CS3
I cannot open any photos from my iPhoto or Aperture in Photoshop. When I attempt to do it, the images refresh and then it crashes, asking me to send an error report. When I click on an image that I want to open, the OPEN tab in the bottom right corne
-
Hello, Office 2010 32bit, VBA Is it possible to programmatically do the above while Outlook is running? If so, I'm hoping to make that change from a Word macro. I tried tinkering with the reg key and that doesn't work because it appears Outlook only
-
How can I close a webform by closing the browser first.
-
TS3899 how do I get deleted emails to stop reapprearing as new emails
Everytime I delete my email they pop back up as unread. Even If I login to AOL and delete from mail there they still pop up.
-
Smartforn Std text Paragraph format not getting picked up
Hi, I have to include Standard texts from SO10 in my smart forms. I am using Incude Text option. The issue is that my std texts are dynamic ( I pass std text name in the form ) and hence it has many paragraph formats. When I run my form I get the