Jump to content

webmin ldap module error on adding account


aioshin
 Share

Recommended Posts

Failed to save user : Failed to add user to LDAP database : no structural object class provided

 

I encountered the above error when trying to add a user, though I can add a group on ldap but when trying to add a user, that's the error.

Any idea on that one? really appreciate any help.. TIA

Edited by aioshin
Link to comment
Share on other sites

How are you trying to add the user? If using LDIF files, what items are you including in the file? What schemas are selected in your LDAP config?

 

You normally need to provide object classes, such as inetOrgPerson, and so on, based on what you're using LDAP for. If your not using already, phpLDAPAdmin is a really good way for adding users to the system. Just needs a bit of configuring to access the LDAP server before you can start with it. Alternatively, ldif files and the ldapadd command works well for me.

 

I've got some sample config files if you're stuck. Mine are currently what you need for a minimum user with some email addresses to add to them.

Link to comment
Share on other sites

Ah OK. When I've used via ldapadd (ldif) and phpLDAPAdmin, I've never had to use posixAccount unless using uidNumber, gidNumber, loginShell, etc. Providing your not selecting these entries, you shouldn't need it. But if you do need them for whatever your using LDAP for, then that's cool also :)

Link to comment
Share on other sites

Yeah, I need those, uid and gid since I used this as authentication on linuxes and mail server. We usually used command line but since some from the company needs to have a Web UI, so I have to make it with webmin. This ldap server now handles almost 3000 users authenticating on it. Yeah its cool.!

Link to comment
Share on other sites

  • 4 months later...

I know this is an old post but Might I ask how you fixed the problem? How did you add it to webmin? I am new to using ldap. We are trying to set it up for a friend and his Church. I have gotten everything working but adding users via webmin. Any help would be great.

 

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...