Adding Users through script?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Guys,

I downloaded a script called USERADD from link:
http://www.redhat.com/f/pdf/rhas/NetgroupWhitepaper.pdf Page 9 and follow
 as follow:

It did create a new Users.ldif file as follow:

dn: uid=dave, cn=EnvOD,ou=IM,ou=Bangalore,dc=im,dc=sap,dc=com
changetype: add
uid: dave
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
objectClass: posixAccount
cn: Dave Meyer
sn: Meyer
givenName: Dave Meyer
gidNumber: 1000
uidNumber: 1003
userPassword: {clear}redhat
loginShell: /bin/bash
homeDirectory: /home/dave


But  if I import it into Directory Server as:

ldapmodify -h 389-ds.sap.com  -D "cn=Directory Manager" -w <password>  -f
Users.ldif
[1] 9443
-bash: -f: command not found
[root at 389-ds opt]# SASL/EXTERNAL authentication started
ldap_sasl_interactive_bind_s: Unknown authentication method (-6)
        additional ldapmodify -h 389-ds.sapient.com  -D "cn=Directory
Manager" -w Oracle123456& -f Users.ldif

No Idea why its behaving so?
Am I missing anything in the command.
I did provided -ZZ options for TLS but it dint work.

Note: I have configured SSL for the 389-Ds.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/389-users/attachments/20100115/2e305017/attachment.html 


[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux