Problem z logowaniem (funkcja crypt())
Witam,
mam problem z PHP. Od ostatniego czasu przestał mi chodzić LMS-UI. Objawia sie tym, ze przy wejściu na lmsa, lms nie prosi o logowanie, tylko od razu pokazuje główną stronę. Sprawdziłem że są problemy z funkcją crypt(), która działa dobrze tylko kiedy ma też podany parametr salt, bez niego zaś, cokolwiek byśmy nie kodowali zwraca pusty ciąg. Czy ktoś spotkał się z takim problemem? Jak go rozwiązać.
*Wersja LMS: http://www.lms.org.pl* 1.11-cvs (1.896/1.21) *Wersja LMSDB: http://www.lms.org.pl* 1.11-cvs (1.43/1.49) * Wersja MySQL: http://www.mysql.com * 5.0.45-log *Wersja PHP: http://www.php.net/* 5.2.5-pl1-gentoo *Wersja Smarty: http://smarty.php.net* 2.6.18
Mój system to Gentoo hardened:
hell ~ # emerge --info Portage 2.1.4_rc14 (hardened/x86/2.6, gcc-4.2.2, glibc-2.7-r1, 2.6.23-hardened-r5 i686) ================================================================= System uname: 2.6.23-hardened-r5 i686 AMD Athlon(tm) MP 1800+ Timestamp of tree: Sat, 05 Jan 2008 11:30:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.3 dev-lang/python: 2.5.1-r4 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-mp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/rc.d /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=athlon-mp -pipe" DISTDIR="/home/gentoo/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="pl_PL.utf8" LC_ALL="pl_PL.utf8" LINGUAS="pl en de" MAKEOPTS="-j3" PKGDIR="/home/gentoo/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/sunrise /usr/portage/local/layman/php-testing /usr/portage/local/layman/php-experimental /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext 7zip X a52 aac aalib ace acl acpi activefilter addbookmarks adns alias amrr apache2 apm ares arts async audiofile automount autoreplace bash-completion bcmath berkdb big-tables bind-mysql bittorrent branding bzip2 cairo caps cdparanoia cdr cdrom cdsound cgi clamav cli connectionstatus contactnotes cracklib crypt ctype cups curl curlwrappers dbi dga dhcp directfb doc dri dts dvd dvdnav dvdr dvdread eap-tls encode esd esfq exif exim exiscan expat extensions extraengine fam fbcon fbcondecor fbsplash ffmpeg firefox flac flash font-server foomaticdb force-cgi-redirect ftp gadu gd gdbm geoip gif gimpprint glitz glut gnome gnome-print gopher gpm groupwise gstreamer gtk h323 hal hardened hash highlight history ical iconv icq imagemagick imap imq injection ip4200 ip6600d ip7500 iproute2 ipv6 irc jabber java javascript jingle jpeg jpeg2k jpgraph kde kdepim kdgraphics l7filter lame latex libcaca libclamav lm_sensors logrotate logwatch mad madwifi magic matroska max-idx-128 mbox mcal memlimit metalink mhash midi mikmod mime ming mmap mmx mmxext mng mono mozilla mp3 mpeg mpeg2 mplayer mpm-itk msession msn mudflap multiuser musepack mysql nat ncurses netboot netmeeting nfs nis nls nntp nowlistening nptl nptlonly nsplugin oav ogg oggvorbis opengl openmp oss pam pam_chroot pam_timestamp pcre pdf pdo-external perl php pic png posix ppds profile pulseaudio python qt3 qt4 quotas radius rdesktop readline real realmedia reflection rtc samba scanner sdl sensord session shaper simplexml skey slang smp sms snmp soap sockets sound speex spell spl sqlite srvdir sse ssl statistics stream subversion suexec suhosin svg syslog sysvipc tcl tcpd test texteffect threads thunderbird tidy tiff tk tokenizer tools translator truetype unicode urandom usb userlocales utempter vcd vhosts vorbis webdav webpresence wifi win32codecs winbind winpopup wmf wxwindows x86 xcomposite xface xfs xine xinerama xml xml2 xmlreader xmlwriter xorg xosd xpm xprint xscreensaver xsl xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="itk" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en de" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Pozdrawiam
Jerzy Kołosowski
_______________________________________________ lms mailing list lms@lists.lms.org.pl http://lists.lms.org.pl/mailman/listinfo/lms
uczestnicy (1)
-
Jerzy Kolosowski