Instalacja konkretnej wersji pakietów

Pomoc dotycząca instalacji systemu
radziwil
Posty: 38
Rejestracja: 09 marca 2009, 13:17

Instalacja konkretnej wersji pakietów

Post autor: radziwil »

Witam

Czy można zainstalować konkretną wersję pakietu, która zostanie pobrana z listy dystrybucyjnej (sources.list)? Jeśli można, to jak powinno wyglądać polecenie aptitude? Rozważam możliwość instalacji starszej wersji LDAP-a.

Pozdrawiam.

Darek
fnmirk
Senior Member
Posty: 8273
Rejestracja: 03 grudnia 2007, 06:37

Post autor: fnmirk »

A jakbyś tak zajrzał wcześniej do podręcznika systemowego:

Kod: Zaznacz cały

man -L en aptitude
Lub do działu dla początkujących i ,,Debian Reference''.
W aktualnych tematach na forum, z ostatnich dwóch, trzech tygodni, przynajmniej dwa razy poruszana kwestia (/etc/apt/preferences).
bartek
Beginner
Posty: 129
Rejestracja: 01 maja 2006, 08:14

Post autor: bartek »

radziwil pisze:.. Rozważam możliwość instalacji starszej wersji LDAP-a.
masz problem z konfiguracją openldap po przejściu z lenny na squeeze? Jeśli tak to skopiuj plik konfiguracyjny slapd.conf i usuń katalog conf.d
Awatar użytkownika
Unit
Beginner
Posty: 356
Rejestracja: 27 marca 2007, 09:39

Post autor: Unit »

radex pisze:masz problem z konfiguracją openldap po przejściu z lenny na squeeze? Jeśli tak to skopjuj plik konfiguracyjny slapd.conf i usuń katalog conf.d
Edytuj też plik /etc/default/slapd:

Kod: Zaznacz cały

SLAPD_CONF="/etc/ldap/slapd.conf"
bartek
Beginner
Posty: 129
Rejestracja: 01 maja 2006, 08:14

Post autor: bartek »

Unit pisze:Edytuj też plik /etc/default/slapd:

Kod: Zaznacz cały

SLAPD_CONF="/etc/ldap/slapd.conf"

Nie jest to konieczne, sprawdź skrypt startowy.
Awatar użytkownika
Unit
Beginner
Posty: 356
Rejestracja: 27 marca 2007, 09:39

Post autor: Unit »

radex pisze:Nie jest to konieczne, sprawdź skrypt startowy.

Kod: Zaznacz cały

#/etc/init.d/slapd 
if [ -z "$SLAPD_CONF" ]; then
        if [ -e /etc/ldap/slapd.d ]; then
                SLAPD_CONF=/etc/ldap/slapd.d
        else
                SLAPD_CONF=/etc/ldap/slapd.conf
        fi
fi
Zgadza się wystarczy usunąć slapd.d i skopiować slapd.conf :-)
radziwil
Posty: 38
Rejestracja: 09 marca 2009, 13:17

Post autor: radziwil »

Hej.
Dziękuję za podpowiedzi, ale...
Po usunięciu katalogu slapd.d i skopiowaniu z katalogu /usr/share/slapd pliku slapd.conf do katalogu /etc/ldap ldap nie wstaje.

W logu pojawiają się następujące komunikaty:

Kod: Zaznacz cały

Mar  9 17:54:23 debian slapd[1917]: @(#) $OpenLDAP: slapd 2.4.23 (Nov 22 2010 23:39:34) $#012#011@biber:/build/buildd-openldap_2.4.23-7-i386-mi96UQ/openldap-$
Mar  9 17:54:23 debian slapd[1918]: slapd starting
Mar  9 17:54:50 debian slapd[1918]: daemon: shutdown requested and initiated.
Mar  9 17:54:50 debian slapd[1918]: slapd shutdown: waiting for 0 operations/tasks to finish
Mar  9 17:54:50 debian slapd[1918]: slapd stopped.
Mar  9 17:56:58 debian slapd[2019]: @(#) $OpenLDAP: slapd 2.4.23 (Nov 22 2010 23:39:34) $#012#011@biber:/build/buildd-openldap_2.4.23-7-i386-mi96UQ/openldap-$
Mar  9 17:56:58 debian slapd[2019]: lt_dlopenext failed: (back_@BACKEND@) file not found
Mar  9 17:56:58 debian slapd[2019]: slapd stopped.
Mar  9 17:56:58 debian slapd[2019]: connections_destroy: nothing to destroy.
Mar  9 18:00:47 debian slapd[2032]: @(#) $OpenLDAP: slapd 2.4.23 (Nov 22 2010 23:39:34) $#012#011@biber:/build/buildd-openldap_2.4.23-7-i386-mi96UQ/openldap-$
Mar  9 18:00:48 debian slapd[2032]: lt_dlopenext failed: (back_@BACKEND@) file not found
Mar  9 18:00:48 debian slapd[2032]: slapd stopped.
Mar  9 18:00:48 debian slapd[2032]: connections_destroy: nothing to destroy.
Awatar użytkownika
Unit
Beginner
Posty: 356
Rejestracja: 27 marca 2007, 09:39

Post autor: Unit »

Podstaw sobie w tym pliku konfiguracyjnym za zmienne np.: takie dane:

Kod: Zaznacz cały

@BACKEND@ = hdb
@SUFFIX@ = dc=example,dc=com
@ADMIN@ = cn=admin,dc=example,dc=com
radziwil
Posty: 38
Rejestracja: 09 marca 2009, 13:17

Post autor: radziwil »

Nie mogę sobie poradzić. Próbuję różnych ustawień, przeglądam innych porady i nadal nic nie wiem. Gdzie mam błąd w konfiguracji pliku slapd.conf

slapd.conf

Kod: Zaznacz cały

# This is the main slapd configuration file. See slapd.conf(5) for more
# info on the configuration options.

#######################################################################
# Global Directives:

# Features to permit
#allow bind_v2

# Schema and objectClass definitions
include         /etc/ldap/schema/core.schema
include         /etc/ldap/schema/cosine.schema
include         /etc/ldap/schema/nis.schema
include         /etc/ldap/schema/inetorgperson.schema


# Where the pid file is put. The init.d script
# will not stop the server if you change this.
pidfile         /var/run/slapd/slapd.pid

# List of arguments that were passed to the server
argsfile        /var/run/slapd/slapd.args

# Read slapd.conf(5) for possible values
loglevel        none

# Where the dynamically loaded modules are stored
modulepath	/usr/lib/ldap
#moduleload	back_@BACKEND@

# The maximum number of entries that is returned for a search operation
sizelimit 500

# The tool-threads parameter sets the actual amount of cpu's that is used
# for indexing.
tool-threads 1

#######################################################################
# Specific Backend Directives for @BACKEND@:
# Backend specific directives apply to this backend until another
# 'backend' directive occurs
backend		bdb


#######################################################################
# Specific Backend Directives for 'other':
# Backend specific directives apply to this backend until another
# 'backend' directive occurs
#backend		<other>

#######################################################################
# Specific Directives for database #1, of type @BACKEND@:
# Database specific directives apply to this databasse until another
# 'database' directive occurs
database	dbd

# The base of your directory in database #1
suffix          "dc=nzoz"

# rootdn directive for specifying a superuser on the database. This is needed
# for syncrepl.
# rootdn          "cn=admin,@SUFFIX@"

# Where the database file are physically stored for database #1
directory       "/var/lib/ldap"

# The dbconfig settings are used to generate a DB_CONFIG file the first
# time slapd starts.  They do NOT override existing an existing DB_CONFIG
# file.  You should therefore change these settings in DB_CONFIG directly
# or remove DB_CONFIG and restart slapd for changes to take effect.

# For the Debian package we use 2MB as default but be sure to update this
# value if you have plenty of RAM
dbconfig set_cachesize 0 2097152 0

# Sven Hartge reported that he had to set this value incredibly high
# to get slapd running at all. See http://bugs.debian.org/303057 for more
# information.

# Number of objects that can be locked at the same time.
dbconfig set_lk_max_objects 1500
# Number of locks (both requested and granted)
dbconfig set_lk_max_locks 1500
# Number of lockers
dbconfig set_lk_max_lockers 1500

# Indexing options for database #1
index           objectClass eq

# Save the time that the entry gets modified, for database #1
lastmod         on

# Checkpoint the BerkeleyDB database periodically in case of system
# failure and to speed slapd shutdown.
checkpoint      512 30

# The userPassword by default can be changed
# by the entry owning it if they are authenticated.
# Others should not be able to see it, except the
# admin entry below
# These access lines apply to database #1 only
access to attrs=userPassword,shadowLastChange
        by dn="cn=admin,dc=nzoz" write
        by anonymous auth
        by self write
        by * none

# Ensure read access to the base for things like
# supportedSASLMechanisms.  Without this you may
# have problems with SASL not knowing what
# mechanisms are available and the like.
# Note that this is covered by the 'access to *'
# ACL below too but if you change that as people
# are wont to do you'll still need this if you
# want SASL (and possible other things) to work 
# happily.
access to dn.base="" by * read

# The admin dn has full write access, everyone else
# can read everything.
access to *
        by dn="cn=admin,dc=nzoz" write
        by * read

# For Netscape Roaming support, each user gets a roaming
# profile for which they have write access to
#access to dn=".*,ou=Roaming,o=morsnet"
#        by dn="@ADMIN@" write
#        by dnattr=owner write

#######################################################################
# Specific Directives for database #2, of type 'other' (can be @BACKEND@ too):
# Database specific directives apply to this databasse until another
# 'database' directive occurs
#database        <other>

# The base of your directory for database #2
#suffix		"dc=debian,dc=org"
zapis w syslog

Kod: Zaznacz cały

Mar 10 17:26:28 debian slapd[2134]: @(#) $OpenLDAP: slapd 2.4.23 (Nov 22 2010 23:39:34) $#012#011@biber:/build/buildd-openldap_2.4.23-7-i386-mi96UQ/openldap-2.4.23/debian/build/servers/slapd
Mar 10 17:26:28 debian slapd[2134]: /etc/ldap/slapd.conf: line 42: <backend> failed init (bdb)!
Mar 10 17:26:28 debian slapd[2134]: slapd stopped.
Mar 10 17:26:28 debian slapd[2134]: connections_destroy: nothing to destroy.
bartek
Beginner
Posty: 129
Rejestracja: 01 maja 2006, 08:14

Post autor: bartek »

na początek:

Kod: Zaznacz cały

dpkg-reconfigure slapd
I napisz dlaczego chcesz instalować starszą wersje openldap?
Zablokowany