Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Unnamed
Wednesday, October 3rd, 2007 at 8:35:39am UTC 

  1. [root@comanche ~]# /etc/init.d/ldap2.4 start
  2. Starting slapd (ldap + ldaps):                                  [  OK  ]
  3. [root@comanche ~]# ldapadd2.4  -H ldapi:/// -f memberof.ldif
  4. SASL/EXTERNAL authentication started
  5. SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
  6. SASL SSF: 0
  7. adding new entry "dc=example,dc=com"
  8.  
  9. adding new entry "ou=Group,dc=example,dc=com"
  10.  
  11. adding new entry "ou=People,dc=example,dc=com"
  12.  
  13. adding new entry "uid=test1,ou=People,dc=example,dc=com"
  14.  
  15. adding new entry "cn=testgroup,ou=Group,dc=example,dc=com"
  16.  
  17. [root@comanche ~]# ldapsearch2.4 -LLL -H ldapi:/// "(uid=test1)" -b dc=example,dc=com memberOf
  18. SASL/EXTERNAL authentication started
  19. SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
  20. SASL SSF: 0
  21. dn: uid=test1,ou=People,dc=example,dc=com
  22. memberOf: cn=testgroup,ou=Group,dc=example,dc=com
  23.  
  24.  
  25.  
  26. [root@comanche ~]# cat memberof.ldif
  27. dn: dc=example,dc=com
  28. objectclass: domain
  29. dc: example
  30.  
  31. dn: ou=Group,dc=example,dc=com
  32. objectclass: organizationalUnit
  33. ou: Group
  34.  
  35. dn: ou=People,dc=example,dc=com
  36. objectclass: organizationalUnit
  37. ou: People
  38.  
  39. dn: uid=test1,ou=People,dc=example,dc=com
  40. objectclass: account
  41. uid: test1
  42.  
  43. dn: cn=testgroup,ou=Group,dc=example,dc=com
  44. objectclass: groupOfNames
  45. cn: testgroup
  46. member: uid=test1,ou=People,dc=example,dc=com
  47.  
  48.  
  49.  
  50. # egrep -v "^(#|$)" /etc/openldap2.4/slapd.conf
  51. include /usr/share/openldap2.4/schema/core.schema
  52. include /usr/share/openldap2.4/schema/cosine.schema
  53. include /usr/share/openldap2.4/schema/corba.schema
  54. include /usr/share/openldap2.4/schema/inetorgperson.schema
  55. include /usr/share/openldap2.4/schema/java.schema
  56. include /usr/share/openldap2.4/schema/krb5-kdc.schema
  57. include /usr/share/openldap2.4/schema/kerberosobject.schema
  58. include /usr/share/openldap2.4/schema/misc.schema
  59. include /usr/share/openldap2.4/schema/nis.schema
  60. include /usr/share/openldap2.4/schema/openldap.schema
  61. include /usr/share/openldap2.4/schema/autofs.schema
  62. include /usr/share/openldap2.4/schema/samba.schema
  63. include /usr/share/openldap2.4/schema/kolab.schema
  64. include /usr/share/openldap2.4/schema/evolutionperson.schema
  65. include /usr/share/openldap2.4/schema/calendar.schema
  66. include /usr/share/openldap2.4/schema/sudo.schema
  67. include /usr/share/openldap2.4/schema/dnszone.schema
  68. include /usr/share/openldap2.4/schema/dhcp.schema
  69. include /etc/openldap2.4/schema/local.schema
  70. include         /etc/openldap2.4/slapd.access.conf
  71. access to dn.subtree="dc=example,dc=com"
  72.         by group="cn=Replicator,ou=Group,dc=example,dc=com"
  73.         by users read
  74.         by anonymous read
  75. pidfile         /var/run/ldap2.4/slapd.pid
  76. argsfile        /var/run/ldap2.4/slapd.args
  77. modulepath      /usr/lib/openldap2.4
  78. moduleload      memberof.la
  79. authz-regexp "gidNumber=0\\\+uidNumber=0,cn=peercred,cn=external,cn=auth"
  80.         "cn=Manager,dc=example,dc=com"
  81. TLSCertificateFile      /etc/ssl/openldap2.4/ldap.pem
  82. TLSCertificateKeyFile   /etc/ssl/openldap2.4/ldap.pem
  83. TLSCACertificateFile    /etc/ssl/openldap2.4/ldap.pem
  84. database        bdb
  85. suffix          "dc=example,dc=com"
  86. rootdn          "cn=Manager,dc=example,dc=com"
  87. directory       /var/lib/ldap2.4
  88. checkpoint 256 5
  89. index   objectClass                                             eq
  90. index   cn,mail,surname,givenname                               eq,subinitial
  91. index   uidNumber,gidNumber,memberuid,member,uniqueMember       eq
  92. index   uid                                                     eq,subinitial
  93. index   sambaSID,sambaDomainName,displayName                    eq
  94. limits group="cn=Replicator,ou=Group,dc=example,dc=com"
  95.  size=unlimited
  96.  time=unlimited
  97.  
  98. overlay memberof

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right worth-right