LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-06-2018, 01:12 PM   #1
maniat1k
LQ Newbie
 
Registered: Sep 2011
Location: Montevideo, Uruguay
Distribution: LinuxMint
Posts: 7

Rep: Reputation: Disabled
ldap add newattribute error


So I need to add a new atribute in to an ldap: I'm getting this error.

Code:
~]# ldapmodify -x -c -h localhost -p 389 -D "cn=admin,dc=test,dc=site" -W  -f agregarcampo.ldif
Enter LDAP Password: 
modifying entry "uid=admin,ou=users,dc=test,dc=site"
ldap_modify: Undefined attribute type (17)
	additional info: sambaNTPassword: attribute type undefined

this this the ldif I'm created:

Code:
dn: uid=admin,ou=users,dc=test,dc=site
changeType: modify
add: sambaNTPassword
sambaNTPassword:
~                                                                                                                                                                                               
~
the thing is I'm not very sure wat's missing: I need only this atributte to do some test with a wifi but I'm do not whant to isntall and configure samba to do that: https://aput.net/~jheiss/samba/ldap.shtml
 
Old 07-07-2018, 02:11 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,
Quote:
Originally Posted by maniat1k View Post
So I need to add a new atribute in to an ldap: I'm getting this error.

Code:
~]# ldapmodify -x -c -h localhost -p 389 -D "cn=admin,dc=test,dc=site" -W  -f agregarcampo.ldif
Enter LDAP Password: 
modifying entry "uid=admin,ou=users,dc=test,dc=site"
ldap_modify: Undefined attribute type (17)
	additional info: sambaNTPassword: attribute type undefined

this this the ldif I'm created:

Code:
dn: uid=admin,ou=users,dc=test,dc=site
changeType: modify
add: sambaNTPassword
sambaNTPassword:
~                                                                                                                                                                                               
~
the thing is I'm not very sure wat's missing: I need only this atributte to do some test with a wifi but I'm do not whant to isntall and configure samba to do that: https://aput.net/~jheiss/samba/ldap.shtml
You should add the samba schema into your ldap. Read your distro's documentation to see what you need to do.
FYI the schema file can also be found here
 
2 members found this post helpful.
  


Reply

Tags
ldap



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LDAP authentication error [Can't contact LDAP server] from apache httpd jonathan_w_brown Linux - Server 6 12-28-2011 05:30 PM
LDAP configuration error, can't connect to LDAP server (-1) rdanielz Linux - Networking 3 06-01-2010 09:15 AM
LDAP How to add entries durgap Linux - Networking 4 11-10-2006 04:55 AM
Ldap how to add a new objectClass lhrt Linux - Software 0 11-02-2006 07:13 AM
LDAP: Cannot add objectClass? Hko Linux - Networking 0 08-17-2004 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration