|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
Baseband Member
Join Date: Jan 2006
Posts: 87
|
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 |
|
|
|
|
|
#2 |
|
Cheesoid
|
When saving it, put the name (including extention) in quotation marks. IE, save it as "newgroup.ldf".
|
|
|
|
|
|
#3 |
|
Baseband Member
Join Date: Jan 2006
Posts: 87
|
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 |
|
|
|
|
|
#4 |
|
Cheesoid
|
Nope, you shouldnt need to.
Allthought it depends on how the program was programmed... |
|
|
|
|
|
#5 |
|
Baseband Member
Join Date: Jan 2006
Posts: 87
|
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 |
|
|
|
|
|
#6 |
|
In Runtime
Join Date: Jan 2010
Posts: 170
|
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 |
|
|
|
|
|
#7 | |
|
Cheesoid
|
Quote:
Try changing to all files and using Quotation marks. If that doesnt work, then there must be another problem. |
|
|
|
|
|
|
#8 |
|
Site Team
Join Date: Jun 2009
Posts: 2,345
|
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!" **************************************** |
|
|
|
|
|
#9 |
|
Fully Optimized
Join Date: Aug 2005
Posts: 1,641
|
^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... |
|
|
|
|
|
#10 |
|
Beta Member
Join Date: Apr 2010
Posts: 2
|
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) (> <) /_|_\ |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|