Go Back   Computer Forums > General Computing > Server Administration
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 02-14-2010, 11:14 AM   #1
Baseband Member
 
Wherebob's Avatar
 
Join Date: Jan 2006
Posts: 90
Default Saving a notepad text file as an LDIF file for using ldifde

I'm trying to add a group into my my mangement OU. I am using notepad to create a text file with the .ldf extension but I need to save the file as an LDIF file and not a text file. I don't have this option in my "save as" in either notepad, wordpad or word.
I have saved it as "all files" and "text file" types but when I use ldifde -i -f at the command prompt it can't read and import the file. I assume this is because the file though is saved with the .ldf extension the format of the file is not LDIF.

Any ideas how I can save the file in LDIF file type or get ldifde to open this file? I have tried online converters but none support LDIF or LDF

I using windows server 2003

Thanks

Notepad text file contents:
______________

dn: CN=Management,OU=Marketing,DC=contoso,DC=com
changetype: add
cn: Mangement
objectClass: group
samAccountName: Marketing
__________________________
Saved as Newgroup.ldf

I get "unable to read the import file newgroup.ldf."


I know there are other ways to create a group in an OU but this is for a class
__________________

__________________
* Dell OptiPlex GX279, Pentium 4 - 2.8GHZ Hyper-Threaded
150G drive, 500G external drive, 1.5GB Ram, XP Professional
* Dell Dimension 2400, Pentium 4 - 2.56GHZ
40G drive, 1.5GB RAM, Windows Server 2003 R2
Wherebob is offline   Reply With Quote
Old 02-15-2010, 05:14 AM   #2
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: Saving a notepad text file as an LDIF file for using ldifde

When saving it, put the name (including extention) in quotation marks. IE, save it as "newgroup.ldf".
__________________

j03 is offline   Reply With Quote
Old 02-15-2010, 12:35 PM   #3
Baseband Member
 
Wherebob's Avatar
 
Join Date: Jan 2006
Posts: 90
Default Re: Saving a notepad text file as an LDIF file for using ldifde

Do I type the quotation marks to import on the command line as well?

Thanks for the reply
__________________
* Dell OptiPlex GX279, Pentium 4 - 2.8GHZ Hyper-Threaded
150G drive, 500G external drive, 1.5GB Ram, XP Professional
* Dell Dimension 2400, Pentium 4 - 2.56GHZ
40G drive, 1.5GB RAM, Windows Server 2003 R2
Wherebob is offline   Reply With Quote
Old 02-15-2010, 02:18 PM   #4
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: Saving a notepad text file as an LDIF file for using ldifde

Nope, you shouldnt need to.

Allthought it depends on how the program was programmed...
j03 is offline   Reply With Quote
Old 02-15-2010, 10:50 PM   #5
Baseband Member
 
Wherebob's Avatar
 
Join Date: Jan 2006
Posts: 90
Default Re: Saving a notepad text file as an LDIF file for using ldifde

nope didn't work either way with or without quotes. Any idea how I can convert this file to LDIF format?

Thanks for your replies
__________________
* Dell OptiPlex GX279, Pentium 4 - 2.8GHZ Hyper-Threaded
150G drive, 500G external drive, 1.5GB Ram, XP Professional
* Dell Dimension 2400, Pentium 4 - 2.56GHZ
40G drive, 1.5GB RAM, Windows Server 2003 R2
Wherebob is offline   Reply With Quote
Old 02-15-2010, 11:11 PM   #6
In Runtime
 
Lennox's Avatar
 
Join Date: Jan 2010
Posts: 167
Default Re: Saving a notepad text file as an LDIF file for using ldifde

Quote:
Originally Posted by Wherebob View Post
nope didn't work either way with or without quotes. Any idea how I can convert this file to LDIF format?

Thanks for your replies
When going to save, choose All Files first. Then add .LDIF to the end of the file name.
__________________
Zotac 630i-Supreme Motherboard | Intel Pentium Dual-Core 2.5Ghz E5200 | ATI Radeon HD4850 512MB GDDR3 | 2x2GB DDR2 RAM | 1TB Western Digital Caviar Green Sata II | 300GB Seagate SATA II
28" Hanns-G Monitor HG281D | Logitech G15 Keyboard v2 | Trust MI-7700R Wireless Mouse | Saitek GH30 Headset
Lennox is offline   Reply With Quote
Old 02-17-2010, 09:26 AM   #7
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: Saving a notepad text file as an LDIF file for using ldifde

Quote:
Originally Posted by Lennox View Post
When going to save, choose All Files first. Then add .LDIF to the end of the file name.
That doesn't allways work. Sometime it will just save as filename.ldif.txt.

Try changing to all files and using Quotation marks. If that doesnt work, then there must be another problem.
j03 is offline   Reply With Quote
Old 02-17-2010, 12:02 PM   #8
Fully Optimized
 
jmacavali's Avatar
 
Join Date: Jun 2009
Posts: 4,867
Default Re: Saving a notepad text file as an LDIF file for using ldifde

In the folder the file is saved in, go into TOOLS>FOLDER OPTIONS>VIEW TAB>Un-check the box that says HIDE EXTENSION FOR KNOWN FILE TYPES. This will then show you if it did what j03 is saying about making it filename.ldif.txt. You can then rename it and delete the .txt off the end and see if that works.
__________________
****************************************
Don't take life too seriously -- no one gets out alive. Plus, who wants to arrive to the hereafter in pristine condition wearing a suit and tie?
I want to slide in sideways, worn out, used up, hair a mess, clothes tattered, & screaming, "Whooo! What a ride!"
****************************************
jmacavali is offline   Reply With Quote
Old 02-17-2010, 04:15 PM   #9
Fully Optimized
 
Spec's Avatar
 
Join Date: Aug 2005
Posts: 1,641
Default Re: Saving a notepad text file as an LDIF file for using ldifde

^should work. Was going to recomend to do that. You should first save it as a text file then make sure you computer shows file extensions. When done..just rename the extension from .txt to .ldif.

It will work.
__________________
Thermaltake ARMOR/ mATX intelG33 Motherboard/4gb G.SKILL High Gaming Performance ddr2-1200/Radeon 3870 1gb edition/850w Thermaltake superduty psu

PokerDegenerate: Don't listen to these guys, I like the IDE makes it look vintage like a 68 Camaro SS...
Spec is offline   Reply With Quote
Old 04-06-2010, 02:32 AM   #10
Beta Member
 
Join Date: Apr 2010
Posts: 2
Default Re: Saving a notepad text file as an LDIF file for using ldifde

well total interesting one
new trick
didn't know about saving file in this way
thanks for the information

interesting and catchy post there………………….. interesting read should be a sticky lol

(\_/)
(O.o)
(> <)
/_|_\
__________________

erwin.zeez is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 04:18 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0