[Date Prev][Date Next] [Chronological] [Thread] [Top]

ldapmodify doesnot allow to add

I set up an openldap server and added some entries
.Its ok but now I want to extend the ldiff files and
add new object classes but it gives some error some
body have any idea about it?

this is the current ldiff files i used to add entries
to my ldap.

dn: uid=james,ou=Users,dc=hosting,dc=net
uid: james
cn: james
objectClass: person
objectClass: organizationalPerson
objectClass: top
objectClass: inetOrgPerson
userPassword: mypassword
mail: james@hosting.net
givenname: james
sn: james
street: downtown
l: rubl
st:new stret
postalcode: 8547
pager: 111
homePhone: 12-123
mobile: 4578

Now i want to add the above user as a system user and
samba user so i created ldiff as

dn: uid=james,ou=Users,dc=hosting,dc=net
changetype: add
objectClass: account
objectClass: shadowAccount
objectClass: sambaSamAccount
objectClass: posixAccount
host: *
uid: james
uidNumber: 1049
sn: james
sambaLogoffTime: 2147483647
sambaPwdLastSet: 1162282281
sambaAcctFlags: [UX]
loginShell: /sbin/nologin
gidNumber: 1049
shadowMax: 99999
sambaPwdMustChange: 2147483647
sambaNTPassword: D137DEDB0DB6C8BDFB2D4E55CE8235CD
sambaPwdCanChange: 0
sambaSID: S-1-5-21-924209702-1057988766-553982440-3096
homeDirectory: /home/s4
sambaKickoffTime: 2147483647
shadowWarning: 7

ldapmodify -x -D "cn=Manager,dc=hosting,dc=net" -W -f

but it does not allow to add the objectclass and gives
error like uid exists


Sponsored Link

Mortgage rates near 39yr lows. $420k for $1,399/mo. 
Calculate new payment!