Anonymous_User Absent Member.
Absent Member.
1244 views

c# add a user in to the edirectory wiht a template

Hello everybody,

i would like to use the "Novell.Directory.Ldap.dll.sources" to add user
in to the eDirectory. The question is: can i use a user template for this Process.

When i use the Web Managment then i can use the template for add the home directory automatically.

I search a way to implement this in my c# code.

Thanks for your Help!

Best regards
MZierold
0 Likes
3 Replies
Knowledge Partner
Knowledge Partner

Re: c# add a user in to the edirectory wiht a template

Probably, but using a template without using the standard tools (iManager,
IDM, etc.) probably means you will need to read the template object and
then just set those attributes you want on the user when it is created.
Via LDAP there is no way, even with Novell extensions as far as I know, to
tell eDirectory to create an object based on a template (or anything else)
but you could easily read the template (you'll have the DN already of
course) and then copy out the applicable (not object class) attributes to
the object you are about to create.


--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: c# add a user in to the edirectory wiht a template

Hello ab,
thanks for your suggestion! The problem waht i have is the create oft the folder in
the novell volume. When i use the template then i get this automaticlly.
0 Likes
Knowledge Partner
Knowledge Partner

Re: c# add a user in to the edirectory wiht a template

Yes, that's true, and you get that because the tools that you use are NOT
using LDAP, but instead are using NCP, so they can make a call to
whatever-the-server-it and tell it to create the directory there.

If you want that kind of functionality there are options but not limiting
yourself strictly to LDAP. For example you could use 'Storage Manager' to
manage storage automatically when a user is created, or IDM to create the
directory (as long as it's running on an OES box I think, so it can do
directory stuff... it's been a while since I've had to do this for a
client but it used to work), or you could have your code that is using
LDAP also, after that is done, go and create the directory structure for
that user on the NSS volume.



--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.