Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Java - LDAP entry
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Java - LDAP entry




Suhas,

If I remember right NeST worked in 10.3 but not 10.4 or 10.5

I build a Java string like the one below and pass it to the command line. It will create an OpenDirectory password.

String addUserPassword = "dscl -u " + dirAdminUsername + " -P "+ dirAdminPassword + " /LDAPv3/127.0.0.1 -passwd /Users/" + username + " " + userPassword;
The variables dirAdminUsername , dirAdminPassword , username and userPassword  need to be set or you could replace them with hardcoded values.
Group memberships can also be added with dscl

I built a Java application/ SIF agent that creates users using JDBC LDAP and then uses the command line to set the password, password policies and group membership. The SIF environment is only used by K12 schools but I am working on a version that queries a SQL table to get a list of users to create, update or disable. If you are going to be maintaining a changing population of users this might be the ticket for you. Are you interested in beta testing it? If you are send me an email off list.

George
email@hidden

Date: Fri, 20 Jun 2008 20:54:33 +0530
From: "Suhas" <email@hidden>
Subject: RE: Java - LDAP entry
To: "'Matt Richard'" <email@hidden>
Cc: email@hidden
Message-ID: <010501c8d2e9$bdc0ef10$02260a0a@Suhaswin2k>
Content-Type: text/plain;                 charset="us-ascii"

Hi Matt Richard,

Thanks for your response.

I tried NeST -convertuser admin <clear_password> <admin_password>
in commandline. It created a new slot in password DB but could not
authenticate with this user/password. I am on Mac OS 10.4.10 Server.

Thanks and Regards
Suhas
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.