Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5067

Raspberry Pi OS • Re: LDAP Server Installation

$
0
0
Thanks for you suggestion, hortimech. It looks like I am getting somewhere. FWIW, I have included the commands and their output below. As you can see, things look to install correctly now and the reconfiguration of slapd seems to work as well. I will continue using this guide to configure ldap.

Thank you DougieLawson and hortimech for helping me out!

Code:

$ sudo apt purge slapdReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneThe following package was automatically installed and is no longer required:  libodbc2Use 'sudo apt autoremove' to remove it.The following packages will be REMOVED:  slapd*0 upgraded, 0 newly installed, 1 to remove and 22 not upgraded.After this operation, 6,184 kB disk space will be freed.Do you want to continue? [Y/n] y(Reading database ... 135262 files and directories currently installed.)Removing slapd (2.5.13+dfsg-5) ...Saving current slapd configuration to /var/backups/slapd-2.5.13+dfsg-5...  Dumping to /var/backups/slapd-2.5.13+dfsg-5: Processing triggers for man-db (2.11.2-2) ...Processing triggers for libc-bin (2.36-9+rpt2+deb12u7) ...(Reading database ... 135021 files and directories currently installed.)Purging configuration files for slapd (2.5.13+dfsg-5) ...Removing slapd configuration... done.Purging OpenLDAP database... donedpkg: warning: while removing slapd, directory '/etc/ldap' not empty so not removed$ sudo rm -rf /etc/ldap$ sudo apt autoremoveReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneThe following packages will be REMOVED:  libodbc20 upgraded, 0 newly installed, 1 to remove and 22 not upgraded.After this operation, 447 kB disk space will be freed.Do you want to continue? [Y/n] y(Reading database ... 134986 files and directories currently installed.)Removing libodbc2:arm64 (2.3.11-2+deb12u1) ...Processing triggers for libc-bin (2.36-9+rpt2+deb12u7) ...$ sudo apt updateHit:1 http://deb.debian.org/debian bookworm InReleaseHit:2 http://deb.debian.org/debian-security bookworm-security InRelease        Hit:3 http://deb.debian.org/debian bookworm-updates InRelease                  Hit:4 http://archive.raspberrypi.com/debian bookworm InRelease                 Hit:5 https://apt.mopidy.com bookworm InRelease                                Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneAll packages are up to date.$ sudo apt upgradeReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneCalculating upgrade... Done0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.$ sudo apt install slapdReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneThe following additional packages will be installed:  libodbc2Suggested packages:  odbc-postgresql tdsodbc libsasl2-modules-gssapi-mit  | libsasl2-modules-gssapi-heimdalThe following NEW packages will be installed:  libodbc2 slapd0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.Need to get 132 kB/1,461 kB of archives.After this operation, 6,631 kB of additional disk space will be used.Do you want to continue? [Y/n] yGet:1 http://deb.debian.org/debian bookworm/main arm64 libodbc2 arm64 2.3.11-2+deb12u1 [132 kB]Fetched 132 kB in 0s (982 kB/s)   Preconfiguring packages ...Selecting previously unselected package libodbc2:arm64.(Reading database ... 134993 files and directories currently installed.)Preparing to unpack .../libodbc2_2.3.11-2+deb12u1_arm64.deb ...Unpacking libodbc2:arm64 (2.3.11-2+deb12u1) ...Selecting previously unselected package slapd.Preparing to unpack .../slapd_2.5.13+dfsg-5_arm64.deb ...Unpacking slapd (2.5.13+dfsg-5) ...Setting up libodbc2:arm64 (2.3.11-2+deb12u1) ...Setting up slapd (2.5.13+dfsg-5) ...  Creating initial configuration... done.  Creating LDAP directory... done.Processing triggers for man-db (2.11.2-2) ...Processing triggers for libc-bin (2.36-9+rpt2+deb12u7) ...$ ll /etc/ldap/schematotal 456drwxr-xr-x 2 root root   4096 Jul 19 19:31 .drwxr-xr-x 5 root root   4096 Jul 19 19:31 ..-rw-r--r-- 1 root root   2036 Feb  8  2023 collective.ldif-rw-r--r-- 1 root root   2180 Feb  8  2023 collective.schema-rw-r--r-- 1 root root   1845 Feb  8  2023 corba.ldif-rw-r--r-- 1 root root   2084 Feb  8  2023 corba.schema-rw-r--r-- 1 root root  21203 Feb  8  2023 core.ldif-rw-r--r-- 1 root root  21090 Feb  8  2023 core.schema-rw-r--r-- 1 root root  12006 Feb  8  2023 cosine.ldif-rw-r--r-- 1 root root  14030 Feb  8  2023 cosine.schema-rw-r--r-- 1 root root   3594 Feb  8  2023 dsee.ldif-rw-r--r-- 1 root root   3374 Feb  8  2023 dsee.schema-rw-r--r-- 1 root root   4842 Feb  8  2023 duaconf.ldif-rw-r--r-- 1 root root   6249 Feb  8  2023 duaconf.schema-rw-r--r-- 1 root root   3500 Feb  8  2023 dyngroup.ldif-rw-r--r-- 1 root root   3523 Feb  8  2023 dyngroup.schema-rw-r--r-- 1 root root   3481 Feb  8  2023 inetorgperson.ldif-rw-r--r-- 1 root root   3915 Feb  8  2023 inetorgperson.schema-rw-r--r-- 1 root root   2979 Feb  8  2023 java.ldif-rw-r--r-- 1 root root   3295 Feb  8  2023 java.schema-rw-r--r-- 1 root root   2082 Feb  8  2023 misc.ldif-rw-r--r-- 1 root root   2387 Feb  8  2023 misc.schema-rw-r--r-- 1 root root 121865 Feb  8  2023 msuser.ldif-rw-r--r-- 1 root root 113752 Feb  8  2023 msuser.schema-rw-r--r-- 1 root root   1218 Feb  8  2023 namedobject.ldif-rw-r--r-- 1 root root   1401 Feb  8  2023 namedobject.schema-rw-r--r-- 1 root root   6809 Feb  8  2023 nis.ldif-rw-r--r-- 1 root root   7640 Feb  8  2023 nis.schema-rw-r--r-- 1 root root   3308 Feb  8  2023 openldap.ldif-rw-r--r-- 1 root root   1514 Feb  8  2023 openldap.schema-rw-r--r-- 1 root root   6904 Feb  8  2023 pmi.ldif-rw-r--r-- 1 root root  21051 Feb  8  2023 pmi.schema-rw-r--r-- 1 root root   3380 Feb  8  2023 README$ sudo dpkg-reconfigure slapd  Backing up /etc/ldap/slapd.d in /var/backups/slapd-2.5.13+dfsg-5... done.  Moving old database directory to /var/backups:  - directory unknown... done.  Creating initial configuration... done.  Creating LDAP directory... done.

Statistics: Posted by 1marc1 — Fri Jul 19, 2024 9:45 am



Viewing all articles
Browse latest Browse all 5067

Trending Articles