title: LDIF file error?? Invalid Format?
body: <p>I am currently working with LDAP which is on a UNIX server. The main purpose for me right now is to modify two entries in the directory by Ldapmodify through command line. The <strong>command</strong> is as follows:</p>
  
  <pre><code>ldapmodify -a -D 'cn=ldap,dc=cs,dc=ttu,dc=edu' \
    -w *password* -H *server address* -f Documents/user.ldif
  </code></pre>
  
  <p><strong>user.ldif</strong> file is as follows:</p>
  
  <pre><code>dn: cn=*username*,cn=Users,dc=ttu,dc=edu  
  changetype: modify  
  replace: displayName  
  displayName:  abc  
  -
  replace: loginShell  
  loginShell: /bin/tc   
  -
  </code></pre>
  
  <p>I get the following <strong>error</strong> when i try to run it:</p>
  
  <pre><code>ldapmodify: invalid format (line 5) entry: "cn=*username*,cn=Users,dc=ttu,dc=edu"
  </code></pre>
  
  <p>I checked the "dn" and it is correct. Why am I getting this error then?</p>