ldap_add: Already exists (68)

Diskusi tentang Ubuntu Server baik webserver, database server, samba server dan service lainnya serta jaringan menggunakan Sistem Operasi Ubuntu.
User avatar
dolphin
Posts: 22
Joined: 25 May 2010, 07:29
Location: palembang
Contact:

ldap_add: Already exists (68)

Postby dolphin » 30 Oct 2011, 21:45

salam ubuntu indonesiaaa....
saya mau tanya masalah OpenLDAP....
ini script yang saya buat dengan nama frontend.ldif

# Create top-level object in domain
# ex. leader.org
dn: dc=leader,dc=org
objectClass: top
objectClass: dcObject
objectclass: organization
o: Leader Organization
dc: Leader
description: LDAP Leader

dn: ou=people,dc=leader,dc=org
objectClass: organizationalUnit
ou: people

dn: cn=admin,dc=leader,dc=org
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
userPassword: password
dn: ou=groups,dc=leader,dc=org
objectClass: organizationalUnit
ou: groups

pada saat saya coba untuk tambahkan menjadi file ldif pake perintah:
# ldapadd -x -D cn=admin,dc=leader,dc=org -W -f frontend.ldif
Enter LDAP Password: password

hasilnya
adding new entry "dc=leader,dc=org"
ldap_add: Already exists (68)


saya sudah coba untuk mencari solusi nya pada mbah google...tapi dari kemaren2 masih belum ketemu....tolong ya Gan..
User avatar
dolphin
Posts: 22
Joined: 25 May 2010, 07:29
Location: palembang
Contact:

Re: ldap_add: Already exists (68)

Postby dolphin » 31 Oct 2011, 06:09

kesalahan dari script itu terletak dimanakah kira2????sudah saya coba hapus file frontend.ldif dan saya buat kan lagi tapi hasil tetep sama...tolong donkkkk
User avatar
blackshirt
Posts: 2336
Joined: 02 Jan 2010, 17:00
Location: Solo dan Kebumen
Contact:

Re: ldap_add: Already exists (68)

Postby blackshirt » 31 Oct 2011, 10:19

coba hapus
dn: dc=leader,dc=org
objectClass: top
objectClass: dcObject
objectclass: organization
o: Leader Organization
dc: Leader
description: LDAP Leader

dari frontend.ldif-nya kemudian jalanin lagi ldapadd-nya :grin:
User avatar
dolphin
Posts: 22
Joined: 25 May 2010, 07:29
Location: palembang
Contact:

Re: ldap_add: Already exists (68)

Postby dolphin » 31 Oct 2011, 17:27

gak bisa gan,,,karena baris itu merupakan objek domain-nya,,,baris itu udah berhasil (adding new entry "dc=leader,dc=org")...yang jadi masalah mulai baris
dn: ou=people,dc=leader,dc=org
objectClass: organizationalUnit
ou: people
kebawah...

adakah solusi lain???
User avatar
blackshirt
Posts: 2336
Joined: 02 Jan 2010, 17:00
Location: Solo dan Kebumen
Contact:

Re: ldap_add: Already exists (68)

Postby blackshirt » 31 Oct 2011, 17:54

biasanya kalau dah ada object-nya, saat ldap-add muncul error tersebut.
bisa dicantumin secara lengkap errornya, atau ldif-nya
User avatar
dolphin
Posts: 22
Joined: 25 May 2010, 07:29
Location: palembang
Contact:

Re: ldap_add: Already exists (68)

Postby dolphin » 31 Oct 2011, 19:15

root@server:/etc/ldap/# nano backend.ldif
# ex. leader.org dc=leader,dc=org
# Load dynamic backend modules
dn: cn=module,cn=config
objectClass: olcModuleList
cn: module
olcModulepath: /usr/lib/ldap
olcModuleload: back_hdb

# Database settings
dn: olcDatabase=hdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: {1}hdb
olcSuffix: dc=leader,dc=org
olcDbDirectory: /var/lib/ldap
olcRootDN: cn=admin,dc=leader,dc=org
olcRootPW: password
olcDbConfig: set_cachesize 0 2097152 0
olcDbConfig: set_lk_max_objects 1500
olcDbConfig: set_lk_max_locks 1500
olcDbConfig: set_lk_max_lockers 1500
olcDbIndex: objectClass eq
olcLastMod: TRUE
olcDbCheckpoint: 512 30
olcAccess: to attrs=userPassword by dn="cn=admin,dc=leader,dc=org" write by anonymous auth by self write by * none
olcAccess: to attrs=shadowLastChange by self write by * read
olcAccess: to dn.base="" by * read
olcAccess: to * by dn="cn=admin,dc=leader,dc=org" write by * read

root@server:/etc/ldap/# ldapadd -Y EXTERNAL -H ldapi:/// -f backend.danbishop.org.ldif
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
adding new entry "cn=module,cn=config"

adding new entry "olcDatabase=hdb,cn=config"

(file backend.ldif berhasil)


root@server:/etc/ldap/# nano frontend.ldif

# ex. leader.org dc=leader,dc=org
# Create top-level object in domain
dn: dc=leader,dc=org
objectClass: top
objectClass: dcObject
objectclass: organization
o: Leader Organization
dc: Leader
description: LDAP Leader

# Admin user.
dn: cn=admin,dc=leader,dc=org
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
userPassword: secret

dn: ou=people,dc=leader,dc=org
objectClass: organizationalUnit
ou: people

dn: ou=groups,dc=leader,dc=org
objectClass: organizationalUnit
ou: groups

dn: uid=siti,ou=people,dc=leader,dc=org
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: shadowAccount
uid: siti
sn: Dolphin
givenName: siti
cn: Siti Dolphin
displayName: Siti Dolphin
uidNumber: 1000
gidNumber: 10000
userPassword: password
gecos: Siti Dolphin
loginShell: /bin/bash
homeDirectory: /home/siti
shadowExpire: -1
shadowFlag: 0
shadowWarning: 7
shadowMin: 8
shadowMax: 999999
shadowLastChange: 10877

dn: cn=leader,ou=groups,dc=leader,dc=org
objectClass: posixGroup
cn: leader
gidNumber: 10000


root@server:/etc/ldap/# ldapadd -x -D cn=admin,dc=leader,dc=org -W -f frontend.ldif
Enter LDAP Password: password
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
adding new entry "dc=leader,dc=org"
ldap_add: Already exists (68)


script itu yang udah saya buat...any solution??? :)
User avatar
dolphin
Posts: 22
Joined: 25 May 2010, 07:29
Location: palembang
Contact:

Re: ldap_add: Already exists (68)

Postby dolphin » 01 Nov 2011, 20:14

help meeee.......!!!!!!!!!!!!!
ada yang tau solusinyaaa????udah mentok neee nyari kemana2 lom dapet jugaaa
User avatar
bulugading
Posts: 217
Joined: 09 Jan 2010, 13:23
Location: Jember, Jawa Timur
Contact:

Re: ldap_add: Already exists (68)

Postby bulugading » 01 Nov 2011, 22:29

wew ldap ya, terus terang sudah pernah make tapi dak ikut nyetting, tadi sempet curi-curi pandang sama mbah google, berikut ada link thread dg kasus sama dan statusnya saat ini sudah solved, mudah2 an bermanfaat :
http://ubuntuforums.org/archive/index.p ... 13472.html
User avatar
blackshirt
Posts: 2336
Joined: 02 Jan 2010, 17:00
Location: Solo dan Kebumen
Contact:

Re: ldap_add: Already exists (68)

Postby blackshirt » 02 Nov 2011, 06:08


adding new entry "dc=leader,dc=org"
ldap_add: Already exists (68)

mungkin object dn tersebut sudah aja :d
saran saya sudah di coba ??

Return to “Ubuntu Server”

Who is online

Users browsing this forum: veryvan and 10 guests