LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-26-2015, 02:23 AM   #1
byran cheung
Member
 
Registered: Sep 2013
Posts: 321

Rep: Reputation: Disabled
import data


I just want to import the ldif file to openldap server by the command ldapadd

username : Mary
department : edp
phone :
location : US


when I load the file to openldap , it pops the value of phone is blank , it is rejected to import , I tried to add some words in phone field , it is fine to import , I also tried add "space" in phone field , it doesn't work.

would advise if I want to import it but still leave the phone field blank , what can I do ? is it ok to add any special character is it ?

thanks
 
Old 06-26-2015, 02:58 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,336

Rep: Reputation: 8091Reputation: 8091Reputation: 8091Reputation: 8091Reputation: 8091Reputation: 8091Reputation: 8091Reputation: 8091Reputation: 8091Reputation: 8091Reputation: 8091
Quote:
Originally Posted by byran cheung View Post
I just want to import the ldif file to openldap server by the command ldapadd

username : Mary
department : edp
phone :
location : US

when I load the file to openldap , it pops the value of phone is blank , it is rejected to import , I tried to add some words in phone field , it is fine to import , I also tried add "space" in phone field , it doesn't work. would advise if I want to import it but still leave the phone field blank , what can I do ? is it ok to add any special character is it ?
Since you've been working with LDAP for two years now, it's surprising you don't know how to handle such things.

And AGAIN, as you've been asked many, MANY times, PROVIDE DETAILS WHEN ASKING A QUESTION. You say NOTHING about how you're trying to add the records, provide a valid sample of the LDIF file, tell us anything about the openLDAP server (version?), or the version/distro of Linux you're using. The ldapadd command has many options...which are you using/trying?? Have you tried ldapmodify?? And you say when you put SOMETHING in the phone field, it works...so what's the question??? You obviously know you need to put some text in that field, so either do so, or don't import that record while it's incomplete.

You say that if you put white-space character, it doesn't work...then ask if you can put "special character" in it. Obviously not, since it isn't valid, as YOU proved when you tried it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Import data from MySQL to MSSQL xeon123 Linux - General 2 05-06-2010 12:32 PM
No settings or data to import??? buccaneere Linux - Newbie 1 12-28-2009 03:37 AM
import data from MS Outlook varun_saa Mandriva 2 06-16-2007 04:47 PM
mysql data import bijuhpd Linux - Newbie 1 03-05-2005 09:01 AM
data import into openoffice calc general4172 Linux - Software 0 09-24-2003 01:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:34 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